> ## Documentation Index
> Fetch the complete documentation index at: https://koreai-ai-for-work-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-work-dev/hPMflewERfbZ7qP1/ai-for-service/integrations/actions/images/twilio-action-img2.png?fit=max&auto=format&n=hPMflewERfbZ7qP1&q=85&s=60acf2c969e451b9429776e2c04eeced" 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-work-dev/hPMflewERfbZ7qP1/ai-for-service/integrations/actions/images/twilio-action-img3.png?fit=max&auto=format&n=hPMflewERfbZ7qP1&q=85&s=7c1f50e4a3278fa58ed699c19b7682c0" 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-work-dev/hPMflewERfbZ7qP1/ai-for-service/integrations/actions/images/twilio-action-img4.png?fit=max&auto=format&n=hPMflewERfbZ7qP1&q=85&s=138096f86e03044e9860a3505c602b41" 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-work-dev/hPMflewERfbZ7qP1/ai-for-service/integrations/actions/images/twilio-action-img5.png?fit=max&auto=format&n=hPMflewERfbZ7qP1&q=85&s=d6f0d861dda1621ebc375424eae01138" 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-work-dev/hPMflewERfbZ7qP1/ai-for-service/integrations/actions/images/twilio-action-img6.png?fit=max&auto=format&n=hPMflewERfbZ7qP1&q=85&s=832ceddcd1cd6a6a2c981050da96692b" 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-work-dev/hPMflewERfbZ7qP1/ai-for-service/integrations/actions/images/twilio-action-img7.png?fit=max&auto=format&n=hPMflewERfbZ7qP1&q=85&s=7900990df8398982a7b4fd10a5d8d1c2" 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-work-dev/hPMflewERfbZ7qP1/ai-for-service/integrations/actions/images/twilio-action-img8.png?fit=max&auto=format&n=hPMflewERfbZ7qP1&q=85&s=1f5707185e24e745f222e659011b3a07" 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-work-dev/hPMflewERfbZ7qP1/ai-for-service/integrations/actions/images/twilio-action-img9.png?fit=max&auto=format&n=hPMflewERfbZ7qP1&q=85&s=69184f1132d72e9520ab0e8139783a2c" 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-work-dev/hPMflewERfbZ7qP1/ai-for-service/integrations/actions/images/twilio-action-img10.png?fit=max&auto=format&n=hPMflewERfbZ7qP1&q=85&s=df5383e500cc1452735aa2d396d7efa5" 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-work-dev/hPMflewERfbZ7qP1/ai-for-service/integrations/actions/images/twilio-action-img11.png?fit=max&auto=format&n=hPMflewERfbZ7qP1&q=85&s=0898620be3607a3ac12adb8d8c998208" 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-work-dev/hPMflewERfbZ7qP1/ai-for-service/integrations/actions/images/twilio-action-img12.png?fit=max&auto=format&n=hPMflewERfbZ7qP1&q=85&s=55d0505464606e06a81b6bd136f0f2a0" 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" />
