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

# Configuring the Drift Agent

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

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.

   <img src="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" alt="Drift Developer Platform" width="1893" height="843" data-path="ai-for-service/integrations/agents/images/configuring-the-drift-agent-img1.png" />

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**.

   <img src="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" alt="Add redirect URL" width="1832" height="885" data-path="ai-for-service/integrations/agents/images/configuring-the-drift-agent-img2.png" />

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`

   <img src="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" alt="Webhook scopes" width="1879" height="891" data-path="ai-for-service/integrations/agents/images/configuring-the-drift-agent-img3.png" />

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.

   <img src="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" alt="Generating access token" width="1914" height="634" data-path="ai-for-service/integrations/agents/images/configuring-the-drift-agent-img4.png" />

   <Note>This token is used to access your Drift data via API.</Note>

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**.

   <img src="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" alt="App Credentials" width="1510" height="892" data-path="ai-for-service/integrations/agents/images/configuring-the-drift-agent-img5.png" />

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

   <img src="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" alt="Drift agent credentials" width="1075" height="835" data-path="ai-for-service/integrations/agents/images/configuring-the-drift-agent-img7.png" />

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.</Note>

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

   <img src="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" alt="Customizing the channel" width="904" height="593" data-path="ai-for-service/integrations/agents/images/configuring-the-drift-agent-img8.png" />

7. Select the channels to use Drift for handovers.

   <img src="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" alt="Mapping channels to Drift agent" width="1074" height="833" data-path="ai-for-service/integrations/agents/images/configuring-the-drift-agent-img9.png" />

8. Click **Done**.

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

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

***

## Verify the Integration

1. Open the app with Drift enabled.

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

   <img src="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" alt="New Agent Transfer Node task" width="1919" height="823" data-path="ai-for-service/integrations/agents/images/configuring-the-drift-agent-img10.png" />

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);
   ```

   <img src="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" alt="Bot Action script" width="1913" height="851" data-path="ai-for-service/integrations/agents/images/configuring-the-drift-agent-img11.png" />

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.

   <img src="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" alt="Connection established" width="1908" height="907" data-path="ai-for-service/integrations/agents/images/configuring-the-drift-agent-img12.png" />
