> **Photon Beta documentation**
> Browse all pages: https://photon.codes/docs/beta/llms.txt
> Search Beta docs via MCP: https://photon.codes/docs/beta/mcp (OAuth REST API MCP: https://mcp.photon.codes/mcp)

# Connect WhatsApp Business

> Connect a Photon SMS number to WhatsApp Business through Meta, then send your agent its first WhatsApp message.

> [!WARNING]
>
> **Beta is a preview.** The Beta (2.0) platform does not have all the features
> of [Stable](https://photon.codes/docs/spectrum-ts/introduction) yet. For example, iMessage on Beta
> supports text, attachments, voice messages, replies, read receipts, and typing
> indicators, but tapbacks, polls, and message effects are
> [only on Stable](https://photon.codes/docs/spectrum-ts/providers/imessage/messaging-features) for now.
> Use Stable for production agents, and confirm that Beta supports the features
> you need before you buy a plan.

WhatsApp Business lets people message your agent on WhatsApp. You pick one of
your project's SMS numbers and connect it to a WhatsApp Business Account
through Meta. That number is your agent's. Send it a WhatsApp message, and the
message reaches your project.

## Prerequisites

You need:

* A project from [Set up your project](/docs/beta/get-started/project.md).
* An SMS number in your project, from [Connect SMS](/docs/beta/get-started/sms.md).
* A Facebook account, to sign in to Meta's window.
* A card on file for your organization. Connecting is free, but Photon
  registers a number only after a card is on file.
* A phone with WhatsApp on a different number, to send the first message.

## 1. Choose your SMS number

Open [**WhatsApp Business**](https://app.beta.photon.codes/project/platforms/whatsapp-business)
in your project. Under **Connect WhatsApp**, choose **Use a Photon SMS
number**. Then pick your number from **Select a number**.

## 2. Connect through Meta

Select **Continue with Meta**. Meta's window opens. Sign in and follow its
steps to connect a WhatsApp Business Account and add your number.

Meta may text a code to the number to verify it. The code shows on the
**WhatsApp Business** page, not in the number's SMS Inbox. Copy it, enter
it in Meta's window, and finish there.

If your project already has a connected account, you see **Register**
instead of **Continue with Meta**. Leave **Display name** empty to use your
agent profile's name, and select **Register**. Photon verifies the number
for you, so there is no code to enter.

## 3. Message your agent's number

Photon registers the number with WhatsApp. This usually takes a few
seconds. Then the number appears under **Numbers**. This is your **agent's
number**.

On your phone, open WhatsApp and start a chat with the agent's number. Send
any message, such as **hi**.

## 4. Check that it arrived

Under **Numbers**, open the agent's number and select **Inbox**. Your
message appears there. WhatsApp messages to the agent's number now reach
your project.

## How a WhatsApp Business number works

* Each project connects one WhatsApp Business Account. To add another number,
  return to **WhatsApp Business** and pick it under **Connect WhatsApp**.
* A Photon SMS number registers for WhatsApp Business only through Photon. You
  can't register it with another WhatsApp provider.
* Meta's verification codes never appear in the number's SMS Inbox or SMS
  history. Read them on the **WhatsApp Business** page while you connect.
* Meta reviews the number's display name before recipients see it.

To connect a number you already control, choose **Bring your own number**
instead. Meta's window does the whole setup. To add SMS numbers to a connected
account from code, use
[Create WhatsApp VoIP sender](/docs/beta/api-client/sdk/projects/platforms/create-whatsapp-voip-sender.md).

## If your message doesn't arrive

| What you see | What to check |
| - | - |
| **Get a number** instead of a number to pick | Your project has no SMS number free to register. Select **Get a number** to buy one. |
| Your number shows **Activating** | A new SMS number takes about 15 minutes to activate. Wait, then pick it. |
| **Add a card** opens, or the page says **This organization has no card on file** | Photon needs a card on file to register a number. Owners and admins can add one. |
| **The WhatsApp window was closed before finishing** | Nothing was connected. Select **Open Meta's window** and finish there. |
| Your message isn't in **Inbox** | That you sent a WhatsApp message, not an SMS, to the agent's number. Then open the card under **Business account** and check that **Message subscription** reads **Subscribed**. |

## Next: receive messages

[Receive messages](/docs/beta/get-started/receive-messages.md)

Get each message to your agent's number as an event in your code.
