> ## Documentation Index
> Fetch the complete documentation index at: https://koreai-content-gov.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-content-gov/uyUIYXvRKEknncMN/ai-for-service/integrations/actions/images/twilio-action-img2.png?fit=max&auto=format&n=uyUIYXvRKEknncMN&q=85&s=b1d455301c95c53f112bae0d65aa8532" 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-content-gov/uyUIYXvRKEknncMN/ai-for-service/integrations/actions/images/twilio-action-img3.png?fit=max&auto=format&n=uyUIYXvRKEknncMN&q=85&s=088707f460c28eb9c3a918acddac3ef6" 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-content-gov/uyUIYXvRKEknncMN/ai-for-service/integrations/actions/images/twilio-action-img4.png?fit=max&auto=format&n=uyUIYXvRKEknncMN&q=85&s=ce732dcda26f9e4f6d8ef09522e6c4c7" 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-content-gov/uyUIYXvRKEknncMN/ai-for-service/integrations/actions/images/twilio-action-img5.png?fit=max&auto=format&n=uyUIYXvRKEknncMN&q=85&s=8adacbb96bf29adee3cd6dae36219470" 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-content-gov/uyUIYXvRKEknncMN/ai-for-service/integrations/actions/images/twilio-action-img6.png?fit=max&auto=format&n=uyUIYXvRKEknncMN&q=85&s=8d3997b07a471350aadad50cc8e06ef3" 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-content-gov/uyUIYXvRKEknncMN/ai-for-service/integrations/actions/images/twilio-action-img7.png?fit=max&auto=format&n=uyUIYXvRKEknncMN&q=85&s=6d1efba981400514b6b577a7e4b60ffd" 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-content-gov/uyUIYXvRKEknncMN/ai-for-service/integrations/actions/images/twilio-action-img8.png?fit=max&auto=format&n=uyUIYXvRKEknncMN&q=85&s=28cc7fa4690f08762c5d4baf8af92f17" 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-content-gov/uyUIYXvRKEknncMN/ai-for-service/integrations/actions/images/twilio-action-img9.png?fit=max&auto=format&n=uyUIYXvRKEknncMN&q=85&s=6aa9faf382a361442ac26489ed0f28d1" 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-content-gov/uyUIYXvRKEknncMN/ai-for-service/integrations/actions/images/twilio-action-img10.png?fit=max&auto=format&n=uyUIYXvRKEknncMN&q=85&s=b12620f52f1585c6eceb0e9e4fb4d514" 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-content-gov/uyUIYXvRKEknncMN/ai-for-service/integrations/actions/images/twilio-action-img11.png?fit=max&auto=format&n=uyUIYXvRKEknncMN&q=85&s=f4f25593589611d7b196d759e5e37abe" 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-content-gov/uyUIYXvRKEknncMN/ai-for-service/integrations/actions/images/twilio-action-img12.png?fit=max&auto=format&n=uyUIYXvRKEknncMN&q=85&s=4253fc2251065a6e43b7187f84099f2c" 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" />
