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

# Configuring the Drift Agent

[Back to Agent Transfer Integrations](https://koreai.mintlify.site/ai-for-service/integrations/overview.md#agent-transfer)

Drift is a conversation cloud platform for marketing and sales teams. The Drift Agent integration allows you to hand off AI Agent conversations to live agents on Drift.

The AI Agent acts as a proxy between users and Drift agents, facilitating seamless conversation handovers.

***

## Configuration

### Step 1: Create a Drift App

1. Log in to [https://dev.drift.com/apps](https://dev.drift.com/apps) with your Drift credentials.

2. Go to the App Store and click **Create New App**. Follow the [Drift quick-start guide](https://devdocs.drift.com/docs/quick-start) for instructions.

   ![Drift Developer Platform](https://mintcdn.com/koreai/9KUtydLTjNNARMze/ai-for-service/integrations/agents/images/configuring-the-drift-agent-img1.png?fit=max\&auto=format\&n=9KUtydLTjNNARMze\&q=85\&s=9388f85ccf5adcee35f2fe90d5228d81)

3. Go to **Settings > OAuth & Scopes**.

4. Add the redirect URL found on the **Configurations** tab of the Drift Agent in Kore.ai. Click **Add**.

   ![Add redirect URL](https://mintcdn.com/koreai/9KUtydLTjNNARMze/ai-for-service/integrations/agents/images/configuring-the-drift-agent-img2.png?fit=max\&auto=format\&n=9KUtydLTjNNARMze\&q=85\&s=55dfc2d2172a3cc4360bad1371e98c07)

5. Select the **WebHooks** tab and add the Kore.ai Drift Agent Webhook URL as the Request URL. Enable the following webhook scopes:

   * `new_message`
   * `new_conversation`
   * `conversation_status_updated`
   * `conversation_inactive`
   * `conversation_push`
   * `chat_to_call`

   ![Webhook scopes](https://mintcdn.com/koreai/9KUtydLTjNNARMze/ai-for-service/integrations/agents/images/configuring-the-drift-agent-img3.png?fit=max\&auto=format\&n=9KUtydLTjNNARMze\&q=85\&s=fc372fc93078eff19670d906550c3553)

6. Click **Create App**.

### Step 2: Retrieve the Access Token

1. Under **Activate Your App**, click **Installing to Drift** and copy the **Install App to Drift** link to generate a non-expiring access token.

   ![Generating access token](https://mintcdn.com/koreai/9KUtydLTjNNARMze/ai-for-service/integrations/agents/images/configuring-the-drift-agent-img4.png?fit=max\&auto=format\&n=9KUtydLTjNNARMze\&q=85\&s=d989e37e57d6c14f13c19ddab8402c24)

   > [!NOTE]
   >
   > This token is used to access your Drift data via API.

2. Copy the Access Token and save it for later.

### Step 3: Retrieve the Verification Token

1. Navigate to **Settings > App Credentials**.

2. Copy the **Client ID**, **Secret ID**, and **Verification Token**.

   ![App Credentials](https://mintcdn.com/koreai/9KUtydLTjNNARMze/ai-for-service/integrations/agents/images/configuring-the-drift-agent-img5.png?fit=max\&auto=format\&n=9KUtydLTjNNARMze\&q=85\&s=e52c5ae3eff7289fa11a78b45e35faf2)

3. Save these values for later.

### Step 4: Enable the Drift Agent

1. Log in to the Platform.

2. Select the app you want to configure.

3. Navigate to **App Settings > Integration > Agent Transfer** and click **Drift**.

4. Click the **Configurations** tab and enter:

   * **Access Token**: Copied in Step 2
   * **Verification Token**: Copied in Step 3

   ![Drift agent credentials](https://mintcdn.com/koreai/9KUtydLTjNNARMze/ai-for-service/integrations/agents/images/configuring-the-drift-agent-img7.png?fit=max\&auto=format\&n=9KUtydLTjNNARMze\&q=85\&s=6655ce9f5b4c7e69d8c1b7d5b4fbdfb3)

5. To make Drift the default agent, enable **Default Agent System for all app channels**.

   > [!NOTE]
   >
   > This option is only available when multiple agents are configured.

6. Click **Manage** to map channels to the Drift agent.

   ![Customizing the channel](https://mintcdn.com/koreai/9KUtydLTjNNARMze/ai-for-service/integrations/agents/images/configuring-the-drift-agent-img8.png?fit=max\&auto=format\&n=9KUtydLTjNNARMze\&q=85\&s=bfe6263849ad1ab8182c9303d25397ec)

7. Select the channels to use Drift for handovers.

   ![Mapping channels to Drift agent](https://mintcdn.com/koreai/9KUtydLTjNNARMze/ai-for-service/integrations/agents/images/configuring-the-drift-agent-img9.png?fit=max\&auto=format\&n=9KUtydLTjNNARMze\&q=85\&s=aaae7b3903b529ce88c11667100a53b0)

8. Click **Done**.

9. Click **Save** to enable the Drift agent.

10. Publish the app. See [Publishing your App](https://koreai.mintlify.site/ai-for-service/deployment/publishing-app).

***

## Verify the Integration

1. Open the app with Drift enabled.

2. Create a new Agent Transfer Node task (for example, a **Talk to Live Agent** task with a **LiveChats** node configured to use Drift). See [Agent Transfer Node](https://koreai.mintlify.site/ai-for-service/automation/dialogs/node-types/agent-transfer-node).

   ![New Agent Transfer Node task](https://mintcdn.com/koreai/9KUtydLTjNNARMze/ai-for-service/integrations/agents/images/configuring-the-drift-agent-img10.png?fit=max\&auto=format\&n=9KUtydLTjNNARMze\&q=85\&s=0c5ed9118dbcbbe8c17ad42f6f1eacaf)

3. Add an email entity node and bot action to capture the agent's email address.

4. In the Bot Action script, enter:

   ```
   agentUtils.setMetaInfo("email", context.entities.Entity0001);
   ```

   ![Bot Action script](https://mintcdn.com/koreai/9KUtydLTjNNARMze/ai-for-service/integrations/agents/images/configuring-the-drift-agent-img11.png?fit=max\&auto=format\&n=9KUtydLTjNNARMze\&q=85\&s=d4f272021841fb4721d0edb9b700a9f4)

5. Click **Talk to Bot** and enter **Help**.

6. When the agent transfer dialog is invoked, the Drift Developer Hub receives a notification.

7. The conversation transfers to the Drift agent, and the agent receives a notification on Drift.

8. The connection is established and the conversation continues.

   ![Connection established](https://mintcdn.com/koreai/9KUtydLTjNNARMze/ai-for-service/integrations/agents/images/configuring-the-drift-agent-img12.png?fit=max\&auto=format\&n=9KUtydLTjNNARMze\&q=85\&s=cbd9c789ad2471b7358e677092a3d380)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.