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

# Configuring the Twilio Action

<Badge icon="arrow-left" color="gray">[Back to Actions Integrations](/ai-for-service/integrations/overview#actions)</Badge>

Connect Twilio Verify to send SMS, start verification, and check verification. See [Twilio Verify](https://www.twilio.com/) for more information.

***

## Authorizations Supported

The Platform supports basic authentication for Twilio Verify. See [App Authorization Overview](/ai-for-service/app-settings#authorization-profiles) for details.

| Authorization Type                       | Basic Auth |
| ---------------------------------------- | ---------- |
| Pre-authorize the Integration            | Yes        |
| Allow Users to Authorize the Integration | Yes        |

***

## Step 1: Enable the Twilio Verify Action

**Prerequisites:**

* If you don't have Twilio Verify credentials, create a developer account. See [Twilio Verify Documentation](https://www.twilio.com/docs/sms).
* Copy the Account SID and Auth Token from your Twilio account.

**Steps:**

1. Go to **App Settings** > **Integrations** > **Actions**.
2. Select **Twilio Verify**.

### Pre-authorize the Integration

**Basic Auth**

1. Go to **App Settings** > **Integrations** > **Actions** and select **Twilio Verify**.

2. In **Configurations**, select the **Authorization** tab.

3. Set **Authorization Type** to **Pre-authorize the Integration** > **Basic Auth**.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/YY4NVo5LokNNFmVL/ai-for-service/integrations/actions/images/twilio-action-img2.png?fit=max&auto=format&n=YY4NVo5LokNNFmVL&q=85&s=61bcfda8d69dec2fb8c8687aa9bffa0f" alt="Auth type - Basic auth" width="792" height="845" data-path="ai-for-service/integrations/actions/images/twilio-action-img2.png" />

4. Enter the following details:

   * **Account SSID** - The account SID of your Twilio Verify account.
   * **Auth Token** - The authorization token of your Twilio Verify account.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/YY4NVo5LokNNFmVL/ai-for-service/integrations/actions/images/twilio-action-img3.png?fit=max&auto=format&n=YY4NVo5LokNNFmVL&q=85&s=602dba159bf50cb1c79b2031650ead32" alt="Account SSID and Auth Token" width="792" height="852" data-path="ai-for-service/integrations/actions/images/twilio-action-img3.png" />

5. Click **Enable**. The **Integration Successful** pop-up is displayed.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/YY4NVo5LokNNFmVL/ai-for-service/integrations/actions/images/twilio-action-img4.png?fit=max&auto=format&n=YY4NVo5LokNNFmVL&q=85&s=5a2dffe1a49cb4546546da953de14ab6" alt="Integration successful" width="589" height="233" data-path="ai-for-service/integrations/actions/images/twilio-action-img4.png" />

<Note>The Twilio Verify action moves from **Available** to **Configured** after enabling.</Note>

### Allow End User to Authorize

1. Go to **App Settings** > **Integrations** > **Actions** and select **Twilio Verify**.

2. In **Configurations**, select the **Authorization** tab.

3. Set **Authorization Type** to **Allow Users to Authorize the Integration** > **Basic Auth**.

4. Click **Select Authorization** > **Create New**.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/YY4NVo5LokNNFmVL/ai-for-service/integrations/actions/images/twilio-action-img5.png?fit=max&auto=format&n=YY4NVo5LokNNFmVL&q=85&s=422f507ab123d87d23d726d69a375627" alt="Create new authorization" width="797" height="852" data-path="ai-for-service/integrations/actions/images/twilio-action-img5.png" />

5. Select **Basic Auth** as the authorization mechanism. See [App Authorization Overview](/ai-for-service/app-settings#authorization-profiles).

6. Enter the following credentials:
   * **Name** - Name for the Basic Auth profile.
   * **Base URL** - Base tenant URL for the Twilio Verify instance.
   * **Authorization Check URL** - Authorization check URL for your Twilio Verify instance.
   * **Description** - Description of the profile.

7. Click **Save Auth**.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/YY4NVo5LokNNFmVL/ai-for-service/integrations/actions/images/twilio-action-img6.png?fit=max&auto=format&n=YY4NVo5LokNNFmVL&q=85&s=6a18fb0ad3942e02a66d42b6de269c12" alt="Save authorization profile" width="799" height="914" data-path="ai-for-service/integrations/actions/images/twilio-action-img6.png" />

8. Select the new **Authorization Profile**.

9. Click **Enable**.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/YY4NVo5LokNNFmVL/ai-for-service/integrations/actions/images/twilio-action-img7.png?fit=max&auto=format&n=YY4NVo5LokNNFmVL&q=85&s=dc30c3400e24631ec44e37365ef536de" alt="Integration Successful" width="791" height="849" data-path="ai-for-service/integrations/actions/images/twilio-action-img7.png" />

***

## Step 2: Install the Twilio Verify Action Templates

1. On the **Integration Successful** dialog, click **Explore Templates**.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/YY4NVo5LokNNFmVL/ai-for-service/integrations/actions/images/twilio-action-img8.png?fit=max&auto=format&n=YY4NVo5LokNNFmVL&q=85&s=a3cc951b93b8c39b4a1881b0394dadf7" alt="Explore Templates" width="591" height="233" data-path="ai-for-service/integrations/actions/images/twilio-action-img8.png" />

2. Click **Install** to begin installation.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/YY4NVo5LokNNFmVL/ai-for-service/integrations/actions/images/twilio-action-img9.png?fit=max&auto=format&n=YY4NVo5LokNNFmVL&q=85&s=c0e672c98a680715372328f8b09d1589" alt="Begin installation" width="593" height="467" data-path="ai-for-service/integrations/actions/images/twilio-action-img9.png" />

3. Once installed, click **Go to Dialog**. A dialog task for each template is auto-created.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/YY4NVo5LokNNFmVL/ai-for-service/integrations/actions/images/twilio-action-img10.png?fit=max&auto=format&n=YY4NVo5LokNNFmVL&q=85&s=b82cbcf02b2ab1019e216fcf21226f28" alt="A dialog task for each installed template is auto-created" width="1690" height="274" data-path="ai-for-service/integrations/actions/images/twilio-action-img10.png" />

4. Select the desired dialog task and click **Proceed**.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/YY4NVo5LokNNFmVL/ai-for-service/integrations/actions/images/twilio-action-img11.png?fit=max&auto=format&n=YY4NVo5LokNNFmVL&q=85&s=675c5b4f216b9eda3dabc3dd9aa45c8b" alt="Select the desired dialog task from the templates and Proceed" width="791" height="913" data-path="ai-for-service/integrations/actions/images/twilio-action-img11.png" />

5. The dialog task is auto-created and the canvas opens with all required entity nodes, service nodes, and message scripts.

   <img src="https://mintcdn.com/koreai-ai-for-service-dev/YY4NVo5LokNNFmVL/ai-for-service/integrations/actions/images/twilio-action-img12.png?fit=max&auto=format&n=YY4NVo5LokNNFmVL&q=85&s=007586d3a51fd6356ccd8d35d23511e2" alt="Dialog task is auto-created, and the canvas opens" width="1649" height="910" data-path="ai-for-service/integrations/actions/images/twilio-action-img12.png" />
