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

# Drip Integration

> Connect Drip with ChatbotX to create or update a subscriber from contact data when the action runs in a Flow.

The **Drip** integration creates or updates a person from ChatbotX contact data directly within a Flow. The action uses the email address to identify the customer and can sync the phone number, Tags, and Custom Fields to Drip.

For example, after a customer requests product advice, ChatbotX sends their email address, phone number, and product interests to Drip for segmentation and personalized email marketing.

## Prepare your API Token

Get your **API Token** from Drip before connecting the integration. The token authenticates your Drip user and allows ChatbotX to send contact data to the Accounts that the user can access.

<Steps>
  <Step title="Sign in to Drip">
    Sign in with a user who can access the Account that you want to connect to ChatbotX.
  </Step>

  <Step title="Open User Settings">
    In Drip, select **Settings > User Settings** to open the settings for your user.
  </Step>

  <Step title="Open User Info">
    Select the **Settings** tab, then select **User Info** from the left menu.
  </Step>

  <Step title="Copy the API Token">
    Find the **API Token** field at the bottom of the page and select the copy icon. If API access is not enabled for your account, contact Drip support.

    See the official [User Settings: Settings and API Token](https://help.drip.com/hc/en-us/articles/4424695636237-User-Settings-Settings-and-API-Token) guide.

    <Frame>
      <img src="https://mintcdn.com/chatbotx/kD96VU4ZqlnYUPJ5/images/drip_api_token_user_settings.png?fit=max&auto=format&n=kD96VU4ZqlnYUPJ5&q=85&s=41b9b9be07de03def526e573ec97731c" alt="Drip API Token in User Settings" width="2107" height="1776" data-path="images/drip_api_token_user_settings.png" />
    </Frame>
  </Step>
</Steps>

<Warning>
  The API Token is a secret tied to your Drip user. Generating a new token invalidates the previous token, so you must update the connection in ChatbotX.
</Warning>

## Connect Drip to ChatbotX

<Steps>
  <Step title="Open Settings">
    In your ChatbotX workspace, select **Settings** from the left menu.
  </Step>

  <Step title="Select Integrations">
    Select the **Integrations** tab, then open **Drip**.
  </Step>

  <Step title="Open the connection window">
    Select **Connect** to open the **Connect Drip** window.
  </Step>

  <Step title="Enter the API Token">
    Paste the Drip token into the **API Token** field, then select **Confirm**.

    <Frame>
      <img src="https://mintcdn.com/chatbotx/kD96VU4ZqlnYUPJ5/images/connect_drip_in_chatbotx_integrations.png?fit=max&auto=format&n=kD96VU4ZqlnYUPJ5&q=85&s=c170e1339232ab54c2dc0b9d439dd8fa" alt="Connect Drip in ChatbotX Integrations" width="3188" height="1551" data-path="images/connect_drip_in_chatbotx_integrations.png" />
    </Frame>
  </Step>
</Steps>

After the token is verified, ChatbotX saves the connection and loads the Accounts and Tags available to the Drip user for use in Flows.

## Add Drip to a Flow

Place the Drip action after collecting the email address and other data that you want to sync. Drip requires an email address to identify a person.

<Steps>
  <Step title="Open the Flow">
    Select **Flows**, then open the Flow that you want to use to collect contacts.
  </Step>

  <Step title="Add Actions">
    In the Send Message node, select **+ Create**, then select **Actions**.
  </Step>

  <Step title="Select Email Actions">
    Open **Email Actions** and select **Add Contact to Drip**.

    <Frame>
      <img src="https://mintcdn.com/chatbotx/kD96VU4ZqlnYUPJ5/images/select_add_contact_to_drip_action.png?fit=max&auto=format&n=kD96VU4ZqlnYUPJ5&q=85&s=1c7997dac6a837a2ca33a258b0986cca" alt="Select Add Contact to Drip Action" width="3186" height="1886" data-path="images/select_add_contact_to_drip_action.png" />
    </Frame>
  </Step>

  <Step title="Open the configuration">
    Select **Edit** on the action to choose an Account and sync the contact data.
  </Step>
</Steps>

## Configure Add Contact to Drip

Configure the fields in the **Drip** window, then select **Save**.

| Field                     | Configuration                                                                                                                                             |
| ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Account**               | Select the Drip Account that receives the person. If the user can access multiple Accounts, confirm that you selected the correct business before saving. |
| **Email Field**           | Select the ChatbotX field that stores the customer's email address. Drip uses the email address to create a new person or identify an existing person.    |
| **Phone**                 | Select the phone number field to sync with the Drip profile. This field is optional.                                                                      |
| **Tags**                  | Select one or more Tags to categorize the person in Drip. This field is optional.                                                                         |
| **Custom Fields in Drip** | Select **+ Add Custom Field** to sync data from a ChatbotX field to the corresponding Custom Field in Drip.                                               |

<Frame>
  <img src="https://mintcdn.com/chatbotx/kD96VU4ZqlnYUPJ5/images/configure_add_contact_to_drip.png?fit=max&auto=format&n=kD96VU4ZqlnYUPJ5&q=85&s=948bb84bfc44e79c5e6bd8fcb832608d" alt="Configure Add Contact to Drip" width="3186" height="1885" data-path="images/configure_add_contact_to_drip.png" />
</Frame>

The action provides two outcomes that you can connect to the next nodes in the Flow:

* **Success**: Drip processed the request to create or update the person.
* **Error**: The request failed because the email address, API Token, Account, or synced data is invalid.

Connect each outcome to a different node to send a confirmation or handle the error.

<Note>
  The **Add Contact to Drip** action does not automatically add the person to a Workflow. You can use Tags or Custom Fields as trigger conditions in Drip after configuring the corresponding Automation.
</Note>

## Example: Collect customers who need product advice

A fashion retailer wants to save customers who are interested in its products and categorize them by their needs.

<Steps>
  <Step title="Collect customer information">
    Use Get User Data to ask for the customer's email address, phone number, and product interest.
  </Step>

  <Step title="Add the person to Drip">
    Run **Add Contact to Drip**, then select the correct Account, **Email** field, and **Phone** field.
  </Step>

  <Step title="Sync the customer's interests">
    Apply a relevant Tag and sync the product interest to a Custom Field in Drip.
  </Step>

  <Step title="Handle the result">
    Connect **Success** to a confirmation message. Connect **Error** to a branch that asks the customer to check their information or transfers the conversation to a team member.
  </Step>
</Steps>

## Test the integration

Before you Publish the Flow, test it with an email address that you can access.

* Open **People** in the correct Drip Account and confirm that the person appears.
* Confirm that the email address, phone number, Tags, and Custom Fields contain the correct data.
* Confirm that the Flow follows the **Success** branch for a valid email address.
* Enter an invalid email address to test the **Error** branch.
* If an Account or Tag does not appear, review the user's permissions and reconnect the integration.
* If the API Token is no longer valid, copy the current token and update the connection in ChatbotX.

<Warning>
  Send contacts to Drip for marketing only after they agree to receive messages. Creating or updating a person does not replace your consent and unsubscribe processes.
</Warning>
