# Deploy on SMS and WhatsApp

> Connect your Twilio account, bind numbers to your agent for SMS and WhatsApp, set up webhooks and send a test message.

- Source: https://www.aui.io/help/deploying/messaging-channels
- Section: Deploying
- Last updated: November 23, 2026

You can let customers text your agent by SMS or WhatsApp. You bring your own Twilio account. The Playground binds a number from it to your agent and writes the webhooks into Twilio, so customers' messages reach the agent and its replies go back on the same channel. Customers get the agent's live commit.

Open **Deployment** > **Deploy via messaging app** in the side rail. The page reads its state live from your Twilio account and walks you through five steps. Each step shows a status: **Not started**, **Action needed**, **Pending review**, **Active** or **Error**. The first step that needs your attention opens on its own.

![Dark mode, ACME Air Rebooking Agent. The Deploy via messaging app page. Step 1, Connect Twilio, is open with an Action needed label and the fields Account SID, Label, Auth Token, API Key SID and API Key Secret, a help note about finding the Auth Token in the Twilio Console, and the Validate & connect and Raw response buttons. Steps 2 Numbers, 3 Webhooks, 4 WhatsApp settings and 5 Test the channel are collapsed and read Not started.](https://www.aui.io/assets/help/deploying/messaging-channels/messaging-steps.png)

*Connect Twilio comes first; the later steps show their status.*

## Before you start

- A Twilio account with at least one phone number.
- For SMS to US numbers, an approved A2P 10DLC campaign registered in your Twilio account. Only you can file it.
- For WhatsApp, a Twilio WhatsApp sender on the number, connected to your Meta Business Manager, and an approved Content template for opening conversations.
- A Client API key for the agent, used by the test step. See [API keys](https://www.aui.io/help/deploying/api-keys).
- A live commit. See [Make a commit live, lock a branch, and roll back](https://www.aui.io/help/branches/make-a-commit-live).

## 1. Connect Twilio

1. Enter your **Account SID** and the account's **Auth Token**. You'll find both in the Twilio Console, under API keys and tokens.
2. Optionally, add a **Label** such as "ACME support line", and an **API Key SID** with its secret. An API key can be revoked on its own, so changing it doesn't affect the whole account. Without one, the Auth Token is used.
3. Click **Validate & connect**.

Credentials are stored encrypted and are never displayed or sent back. Click **Replace** to change them or **Re-validate connection** to check them again.

> [!WARNING]
> **Disconnect account** removes the connected Twilio account and all of its senders and bindings. Messaging through that account stops at once, and this can't be undone. Your Twilio account itself isn't changed.

## 2. Numbers

The table lists the numbers in your Twilio account. **Compliance (A2P 10DLC)** shows whether each is registered for US SMS, pending review, not registered (with a **Register** link), or unknown, when your API key can't read that status.

- To use a number for SMS, click **Select for SMS**.
- To use a number for WhatsApp, click **Enable WhatsApp**. If the number has no WhatsApp sender yet, click **Set up WhatsApp** for instructions on Twilio's WhatsApp self sign-up. The page checks for the new sender every 30 seconds, or click **Check now**.

An agent has at most one SMS number and one WhatsApp sender. Selecting a channel binds that number to the agent. To remove one, click the **×** beside it and confirm with **Unbind** (SMS) or **Detach** (WhatsApp).

## 3. Webhooks

Webhooks tell Twilio where to send customers' messages. For each number, click **Configure webhooks**, and the Playground writes them into your Twilio account. **Webhook active.** confirms it worked.

- If the address was later changed in Twilio, the step shows the difference. Click **Restore webhook**.
- If automatic setup isn't possible, for example with a restricted API key, the step shows the addresses to paste into the number's settings in the Twilio Console, each with **Copy**.

## 4. WhatsApp settings

This step unlocks once WhatsApp is enabled on a number.

| Field | What it's for |
|---|---|
| **Start template SID** | Required. The approved template that opens a new WhatsApp conversation from your side. Its first variable is filled with the agent's display name. |
| **Continue template SID** | Optional. Reopens a conversation after 24 hours of silence. |
| **Follow-up list picker SID** | Optional. A list picker for follow-up suggestions. |
| **Profile about** and **Profile description** | Optional. The business profile customers see. |
| **Welcome message** | Optional. Sent to new users who message the number first. |

Template SIDs start with `HX` and come from the Content Template Builder in the Twilio Console.

## 5. Test the channel

1. If the agent has no Client API key, click **Create Client API key**.
2. Choose **SMS** or **WhatsApp**.
3. In **Send the test message to**, enter a phone number of your own.
4. For SMS, type a **Message**. For WhatsApp, enter the **Agent display name** to show in the start template.
5. Click **Send test message** (for WhatsApp, **Send start template**).
6. When "Test message sent." appears, check the phone and reply. The agent's answer shows that incoming messages reach it too.

When every connected channel is ready, the steps fold into a summary with one line per channel. Click **Expand** to see the steps again.

## After you connect

Conversations from these numbers appear in **All threads**. Set **Created from** to **SMS** or **WhatsApp** to find them. See [Find and filter threads](https://www.aui.io/help/testing/threads-and-filters).

Your own systems can also start a conversation on a channel, for example to send a delay notice, through the API. On WhatsApp, a conversation you start must open with an approved template. See [Channels](https://docs.aui.io/api/messaging/channels) in the developer docs.
