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

# Deploy via WhatsApp and SMS

> Connect your chatbot to WhatsApp or SMS through Twilio

You can make your chatbot reachable over WhatsApp and SMS by connecting it to Twilio. VectorShift provides a webhook URL that Twilio calls every time a message arrives. The chatbot processes the message through your workflow and sends the response back through Twilio.

This guide walks through the full setup using WhatsApp as the example. The same steps apply to SMS: you configure the webhook in the SMS section of your Twilio console instead of the WhatsApp sandbox.

## Prerequisites

Before you begin, make sure you have:

* A deployed chatbot in VectorShift (toggle **Deployment Enabled** in the Export tab). See [Share via link](/platform/interfaces/chatbots/export-link) for deployment details.
* A Twilio account. You can use Twilio's free sandbox for testing. Production use requires an approved WhatsApp Business Profile.
* Your VectorShift API key (found under your profile > **API Keys**).

## Step 1. Locate the Twilio webhook URL in VectorShift

In the chatbot builder, open the **Export** tab and navigate to the **WhatsApp / SMS** sub-tab. You will see a **Twilio Webhook URL** that VectorShift has generated for this chatbot. You will also see fields for your Twilio Account SID and Auth Token (you will fill these in Step 3).

<img src="https://mintcdn.com/vectorshift/2_iKgv2IsZjPIgPn/images/platform/interfaces/chatbots/export-whatsapp/chatbots-share-whatsapp-navigation.png?fit=max&auto=format&n=2_iKgv2IsZjPIgPn&q=85&s=c93f8468816fef741f18a1c4beb0056c" alt="WhatsApp / SMS Export tab" width="1100" height="490" data-path="images/platform/interfaces/chatbots/export-whatsapp/chatbots-share-whatsapp-navigation.png" />

## Step 2. Set up your Twilio account

### Step 2.1. Create a Twilio account

Navigate to [twilio.com](https://www.twilio.com) and sign up for an account. You will start in a sandbox environment, which is enough for testing. You will move to production at the end of this guide.

<img src="https://mintcdn.com/vectorshift/2_iKgv2IsZjPIgPn/images/platform/interfaces/chatbots/export-whatsapp/chatbots-share-whatsapp-twilio-home.png?fit=max&auto=format&n=2_iKgv2IsZjPIgPn&q=85&s=f252e6ec9ff167ae1bd988867c6a807b" alt="Twilio homepage" width="1100" height="490" data-path="images/platform/interfaces/chatbots/export-whatsapp/chatbots-share-whatsapp-twilio-home.png" />

### Step 2.2. Create an API key

Go to the **Manage account** page and navigate to the API Keys section. Click **Create API Key**.

<img src="https://mintcdn.com/vectorshift/K-Xm0Esku05U7BNQ/images/platform/interfaces/chatbots/export-whatsapp/chatbots-share-whatsapp-twilio-keys.png?fit=max&auto=format&n=K-Xm0Esku05U7BNQ&q=85&s=95809b26fd9347d58af0d995c16b4057" alt="Twilio API Keys page" width="1100" height="490" data-path="images/platform/interfaces/chatbots/export-whatsapp/chatbots-share-whatsapp-twilio-keys.png" />

### Step 2.3. Configure the API key

Give your key a name (for example, "VectorShift Chatbot") and select a region. You can leave the key type set to **Standard**.

<img src="https://mintcdn.com/vectorshift/K-Xm0Esku05U7BNQ/images/platform/interfaces/chatbots/export-whatsapp/chatbots-share-whatsapp-twilio-new-key.png?fit=max&auto=format&n=K-Xm0Esku05U7BNQ&q=85&s=bc837918cf57e983683104327b9c1786" alt="Twilio new API key" width="1100" height="490" data-path="images/platform/interfaces/chatbots/export-whatsapp/chatbots-share-whatsapp-twilio-new-key.png" />

## Step 3. Connect Twilio to VectorShift

Copy your **Account SID** and **Auth Token** from Twilio and paste them into the corresponding fields in the VectorShift Export tab.

<img src="https://mintcdn.com/vectorshift/2_iKgv2IsZjPIgPn/images/platform/interfaces/chatbots/export-whatsapp/chatbots-share-whatsapp-paste.png?fit=max&auto=format&n=2_iKgv2IsZjPIgPn&q=85&s=c47593ddbfbfb9ec860cfb31944ecc4c" alt="Paste Twilio credentials into VectorShift" width="1100" height="490" data-path="images/platform/interfaces/chatbots/export-whatsapp/chatbots-share-whatsapp-paste.png" />

## Step 4. Configure the Twilio sandbox

### Step 4.1. Copy the Twilio webhook URL

Copy the webhook URL from the VectorShift Export tab.

<img src="https://mintcdn.com/vectorshift/2_iKgv2IsZjPIgPn/images/platform/interfaces/chatbots/export-whatsapp/chatbots-share-whatsapp-twilio-copy.png?fit=max&auto=format&n=2_iKgv2IsZjPIgPn&q=85&s=0788ade005192aff131ec75740aa83ab" alt="Copy Twilio Webhook URL" width="1100" height="490" data-path="images/platform/interfaces/chatbots/export-whatsapp/chatbots-share-whatsapp-twilio-copy.png" />

### Step 4.2. Paste it into the sandbox configuration

In the Twilio console, navigate to the WhatsApp Sandbox settings. Paste the webhook URL into the **"When a message comes in"** field. Leave the **"Status callback"** field empty.

<img src="https://mintcdn.com/vectorshift/K-Xm0Esku05U7BNQ/images/platform/interfaces/chatbots/export-whatsapp/chatbots-share-whatsapp-twilio-sandbox.png?fit=max&auto=format&n=K-Xm0Esku05U7BNQ&q=85&s=3c9c0c6207405ae66d99b100297e35a9" alt="Twilio Sandbox configuration" width="1100" height="490" data-path="images/platform/interfaces/chatbots/export-whatsapp/chatbots-share-whatsapp-twilio-sandbox.png" />

### Step 4.3. Append your VectorShift API key to the URL

The webhook URL contains a placeholder: `{VectorShift_API_Key_Here}`. Replace it with your actual VectorShift API key and click **Save**.

<Warning>
  The webhook URL contains your chatbot ID. Do not share it publicly. Anyone with the URL and a valid API key can send messages to your chatbot.
</Warning>

<img src="https://mintcdn.com/vectorshift/YURehCSPjELT1F4f/images/platform/interfaces/chatbots/export-whatsapp/chatbots-share-whatsapp-twilio-sandbox-key.png?fit=max&auto=format&n=YURehCSPjELT1F4f&q=85&s=88bcc486b989f03d424440233c97f180" alt="Add API key to webhook URL" width="1850" height="858" data-path="images/platform/interfaces/chatbots/export-whatsapp/chatbots-share-whatsapp-twilio-sandbox-key.png" />

## Step 5. Test in the sandbox

Follow Twilio's sandbox instructions to connect your phone to the sandbox (you will typically send a specific message to a WhatsApp number that Twilio provides). Once connected, send a message and verify that your chatbot responds.

<img src="https://mintcdn.com/vectorshift/YURehCSPjELT1F4f/images/platform/interfaces/chatbots/export-whatsapp/chatbots-share-whatsapp-twilio-sandbox-test.png?fit=max&auto=format&n=YURehCSPjELT1F4f&q=85&s=35878df5b6753845143ae97d834316d7" alt="Connect to WhatsApp sandbox" width="2918" height="1616" data-path="images/platform/interfaces/chatbots/export-whatsapp/chatbots-share-whatsapp-twilio-sandbox-test.png" />

<img src="https://mintcdn.com/vectorshift/2_iKgv2IsZjPIgPn/images/platform/interfaces/chatbots/export-whatsapp/chatbots-share-whatsapp-demo.png?fit=max&auto=format&n=2_iKgv2IsZjPIgPn&q=85&s=cb249d015ca996fa44ac28e54d224e7e" alt="Chatbot responding on WhatsApp" width="1100" height="490" data-path="images/platform/interfaces/chatbots/export-whatsapp/chatbots-share-whatsapp-demo.png" />

<Tip>
  Twilio splits outgoing messages at 1,600 characters. If your chatbot produces long responses, the user will receive them in multiple consecutive messages rather than one.
</Tip>

## Step 6. Move to production

The sandbox is for testing only. To use your chatbot with a real WhatsApp number, you need to apply for a WhatsApp Business Profile through Twilio. Fill out [Twilio's WhatsApp Request Form](https://www.twilio.com/whatsapp/request-access) to begin the approval process.

Once approved, update the webhook URL in your production Twilio configuration (the same URL you used in the sandbox, with your real API key appended).

## Next steps

<CardGroup cols={2}>
  <Card title="API access" icon="terminal" href="/platform/interfaces/chatbots/export-api">
    Run the chatbot programmatically from your own application
  </Card>

  <Card title="Analytics and conversation history" icon="chart-line" href="/platform/interfaces/chatbots/analytics">
    Track usage and review conversations across all channels
  </Card>
</CardGroup>
