> ## 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 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-ai-for-work-dev/0BCzEePeDgXQ2DGn/ai-for-service/integrations/agents/images/configuring-the-drift-agent-img1.png?fit=max&auto=format&n=0BCzEePeDgXQ2DGn&q=85&s=c55cd514f005759957e2596a5ec7e806" 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-ai-for-work-dev/0BCzEePeDgXQ2DGn/ai-for-service/integrations/agents/images/configuring-the-drift-agent-img2.png?fit=max&auto=format&n=0BCzEePeDgXQ2DGn&q=85&s=a37041137e22110f2d7fb9f83e271508" 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-ai-for-work-dev/0BCzEePeDgXQ2DGn/ai-for-service/integrations/agents/images/configuring-the-drift-agent-img3.png?fit=max&auto=format&n=0BCzEePeDgXQ2DGn&q=85&s=c62f36cb06e64d9ddcbd08e68e45f7b3" 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-ai-for-work-dev/0BCzEePeDgXQ2DGn/ai-for-service/integrations/agents/images/configuring-the-drift-agent-img4.png?fit=max&auto=format&n=0BCzEePeDgXQ2DGn&q=85&s=35c8f65b9a4fe66192590d5f3da25b4f" 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-ai-for-work-dev/0BCzEePeDgXQ2DGn/ai-for-service/integrations/agents/images/configuring-the-drift-agent-img5.png?fit=max&auto=format&n=0BCzEePeDgXQ2DGn&q=85&s=e31473e9411b749ea6753135b36afa0d" 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-ai-for-work-dev/0BCzEePeDgXQ2DGn/ai-for-service/integrations/agents/images/configuring-the-drift-agent-img7.png?fit=max&auto=format&n=0BCzEePeDgXQ2DGn&q=85&s=9423b978fc3cd6953416a26e3eb40c5f" 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-ai-for-work-dev/0BCzEePeDgXQ2DGn/ai-for-service/integrations/agents/images/configuring-the-drift-agent-img8.png?fit=max&auto=format&n=0BCzEePeDgXQ2DGn&q=85&s=ba6bbf7687fa8f158329f7b8cc018ee2" 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-ai-for-work-dev/0BCzEePeDgXQ2DGn/ai-for-service/integrations/agents/images/configuring-the-drift-agent-img9.png?fit=max&auto=format&n=0BCzEePeDgXQ2DGn&q=85&s=daaf4cce21af5e391f0ff97690a70244" 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 (for example, 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-ai-for-work-dev/0BCzEePeDgXQ2DGn/ai-for-service/integrations/agents/images/configuring-the-drift-agent-img10.png?fit=max&auto=format&n=0BCzEePeDgXQ2DGn&q=85&s=84b271b304de46a1a4e44fb745ca5bc5" 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-ai-for-work-dev/0BCzEePeDgXQ2DGn/ai-for-service/integrations/agents/images/configuring-the-drift-agent-img11.png?fit=max&auto=format&n=0BCzEePeDgXQ2DGn&q=85&s=5164402e7f9736f0ecfc23589341ba32" 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-ai-for-work-dev/0BCzEePeDgXQ2DGn/ai-for-service/integrations/agents/images/configuring-the-drift-agent-img12.png?fit=max&auto=format&n=0BCzEePeDgXQ2DGn&q=85&s=9242be20b03277c83aca8a99c38e3f84" alt="Connection established" width="1908" height="907" data-path="ai-for-service/integrations/agents/images/configuring-the-drift-agent-img12.png" />
