> ## Documentation Index
> Fetch the complete documentation index at: https://koreai-ai-for-process-dev.mintlify.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Adding the Twilio SMS Channel

<Badge icon="arrow-left" color="gray">[Back to Available Channels](/ai-for-service/channels/adding-channels-to-your-bot#available-channels)</Badge>

To add Twilio SMS as a channel, set up a messaging service in Twilio to manage message delivery and routing. Once the bot is added, end-users can interact with your bot through text messages.

Pursue the following steps to add a Twilio SMS channel:

1. Create a Twilio account and get the Phone Number.
2. Create a Twilio messaging service.

## Create a Twilio Account

1. Use the [https://www.twilio.com/try-twilio](https://www.twilio.com/try-twilio) to sign up and create a free *Twilio* trial account.

2. The Twilio **Account Dashboard** page is displayed. On the Account Dashboard page, click **Get phone number**.
   <img src="https://mintcdn.com/koreai-ai-for-process-dev/wsBwFLCbKfckaIk7/ai-for-service/channels/images/tw1.png?fit=max&auto=format&n=wsBwFLCbKfckaIk7&q=85&s=3f193f92923d62d3d7219128c04734d9" alt="Automations" width="1508" height="797" data-path="ai-for-service/channels/images/tw1.png" />

3. Your Twilio Phone Number is displayed.
   <img src="https://mintcdn.com/koreai-ai-for-process-dev/wsBwFLCbKfckaIk7/ai-for-service/channels/images/tw2.png?fit=max&auto=format&n=wsBwFLCbKfckaIk7&q=85&s=ca7dad7e4561ce67d669dd72e0e5a390" alt="Automations" width="1509" height="797" data-path="ai-for-service/channels/images/tw2.png" />

## Create a Twilio Messaging Service

This procedure requires an active *Twilio* account access. For more information, refer to *Create a Twilio Account*.
To add the Twilio Channel, pursue the following steps:

1. Login to XO Platform and navigate to **Flows & Channels** > **Digital** > **Twilio SMS** > **Configuration** tab.

2. [Login](https://www.twilio.com/) to the Twilio portal.

3. Under the Admin dropdown menu at the top right, select **Account Management** and then in the left-hand menu, under Keys & Credentials, click **API Keys & Tokens**.

4. Create your API credentials if you have not already set up your account.

5. Copy your **Account SID** and **Auth Token** and enter in the **Configurations** tab of the Twilio channel page.
   <img src="https://mintcdn.com/koreai-ai-for-process-dev/wsBwFLCbKfckaIk7/ai-for-service/channels/images/tw3.png?fit=max&auto=format&n=wsBwFLCbKfckaIk7&q=85&s=3de59240ab42028ec11074a316852aac" alt="Automations" width="1509" height="797" data-path="ai-for-service/channels/images/tw3.png" />

6. Go to **Account Dashboard > Develop > Messaging > Services** and click **Create Messaging Service**. The messaging service setup page is displayed.
   <img src="https://mintcdn.com/koreai-ai-for-process-dev/wsBwFLCbKfckaIk7/ai-for-service/channels/images/tw4.png?fit=max&auto=format&n=wsBwFLCbKfckaIk7&q=85&s=e3c59446a4a179f91d9b2715b2103b35" alt="Automations" width="1920" height="827" data-path="ai-for-service/channels/images/tw4.png" />

7. Enter the **messaging service name**, select the one of the messaging service from the dropdown list and click **Create Messaging Service**.
   <img src="https://mintcdn.com/koreai-ai-for-process-dev/wsBwFLCbKfckaIk7/ai-for-service/channels/images/tw5.png?fit=max&auto=format&n=wsBwFLCbKfckaIk7&q=85&s=540afe7b5776c4ab0a8154253adc5790" alt="Automations" width="1280" height="657" data-path="ai-for-service/channels/images/tw5.png" />

8. Click **Add Senders** and follow the steps.
   <img src="https://mintcdn.com/koreai-ai-for-process-dev/wsBwFLCbKfckaIk7/ai-for-service/channels/images/tw6.png?fit=max&auto=format&n=wsBwFLCbKfckaIk7&q=85&s=3fdcfeb015d75de9075ef24227b8d199" alt="Automations" width="1280" height="657" data-path="ai-for-service/channels/images/tw6.png" />

9. From the Add Senders pop-up, select **Phone Number** from the dropdown list and click **Continue**.
   <img src="https://mintcdn.com/koreai-ai-for-process-dev/wsBwFLCbKfckaIk7/ai-for-service/channels/images/tw7.png?fit=max&auto=format&n=wsBwFLCbKfckaIk7&q=85&s=87293326267c91fd216caf804e3c6b93" alt="Automations" width="1509" height="797" data-path="ai-for-service/channels/images/tw7.png" />

10. Select the **Select Phone Number** radio button and click **Step 3: Set up integration**.
    <img src="https://mintcdn.com/koreai-ai-for-process-dev/wsBwFLCbKfckaIk7/ai-for-service/channels/images/tw8.png?fit=max&auto=format&n=wsBwFLCbKfckaIk7&q=85&s=f22e28776b572a85791344ec5bb6d0f1" alt="Automations" width="1509" height="797" data-path="ai-for-service/channels/images/tw8.png" />

11. On the integration page, select **Send a Webhook**. Then, select the **Request URL**, **Fallback URL**, and **Status** **Callback URL** fields from the XO Platform Twilio SMS **Configurations** tab and enter them.
    <img src="https://mintcdn.com/koreai-ai-for-process-dev/wsBwFLCbKfckaIk7/ai-for-service/channels/images/tw9.png?fit=max&auto=format&n=wsBwFLCbKfckaIk7&q=85&s=e800d345455b8cfdd0e30f3d1d0e6b73" alt="Automations" width="1920" height="911" data-path="ai-for-service/channels/images/tw9.png" />

    <Note>    The callback URL includes the **streamId** in the API request to identify the AI Agent being accessed. When an incoming request is qualified with this identifier, it helps with traceability, troubleshooting, and remediation at the network level during anomalies like malicious calls or unusual bot activity.</Note>

12. Click **Step 4: Add compliance info**. The success message is displayed and then, click **Complete Messaging Service Setup**.
    <img src="https://mintcdn.com/koreai-ai-for-process-dev/wsBwFLCbKfckaIk7/ai-for-service/channels/images/tw10.png?fit=max&auto=format&n=wsBwFLCbKfckaIk7&q=85&s=b1e82e6e70a225776056ddffd749ef16" alt="Automations" width="1508" height="797" data-path="ai-for-service/channels/images/tw10.png" />

13. The setup complete pop-up appears. Click **View my new Messaging Service**.
    <img src="https://mintcdn.com/koreai-ai-for-process-dev/wsBwFLCbKfckaIk7/ai-for-service/channels/images/tw11.png?fit=max&auto=format&n=wsBwFLCbKfckaIk7&q=85&s=d446cc8feb971bba6fdb347d11079e72" alt="Automations" width="1345" height="663" data-path="ai-for-service/channels/images/tw11.png" />

14. Copy the **Messaging Service SID** and click **Save**.

15. On the Twilio Configuration tab, paste the **Messaging Service SID** and click **Save**. The configuration saved message is displayed.

**Related Link**

[How do I include an Image in an Outbound Twilio SMS (MMS)?](../kb/how-do-i-include-an-image-in-an-outbound-twilio-sms-mms.md)


Built with [Mintlify](https://mintlify.com).