Choose an available topic from the sidebar. More documentation is coming soon.

Integrations

Connect AI Chatbot to WhatsApp Business

Enable your AI chatbot to respond to WhatsApp messages using the WhatsApp Business API.

AI Chatbot integrates with WhatsApp Business to let your AI chatbot respond to customer messages on WhatsApp. This guide walks you through setting up the WhatsApp Business API and connecting it to your AI Chatbot chatbot.

WhatsApp integration is available on Pro Plus and Business plans.

Prerequisites

Before you begin, you’ll need:

The phone number you use for WhatsApp Business cannot be the same as an existing personal WhatsApp account. You’ll need a dedicated business number or a new number.

Set Up Meta Developer App

1

Create a Meta Developer account

Go to developers.facebook.com and log in with your Facebook account. If you don’t have a developer account, you’ll be prompted to create one.

2

Create a new app
Click My Apps in the top right, then Create App. Give it a name (e.g., “My Business WhatsApp Bot”), and click Next. Under Add Use Cases filter by Others, then select Other. Click Next.

3

Select an app type
Select the Business app type and click Next. Then select Create App on the next screen.

4

Add WhatsApp product
In your app dashboard, scroll down to Add products and click Set up on the WhatsApp card.

5

Select or create a Meta Business Account
You’ll be prompted to select an existing Meta Business Account or create a new one. This is required to use the WhatsApp Business API.

6

Add a phone number
In the WhatsApp section of your app, go to API Setup. Click Add phone number and follow the verification process. You’ll receive a code via SMS or voice call.

Get Your API Credentials

Meta provides the phone number ID, a permanent access token, and the app secret. Collect all three before you connect WhatsApp in AI Chatbot.

1

Get your Phone Number ID

In WhatsApp > API Setup, find your verified phone number. The Phone Number ID is displayed below the number (a long numeric string like 123456789012345).

2

Generate a Permanent Access Token

By default, Meta provides a temporary access token that expires in 24 hours. For production use, you need a permanent token:

  1. Go to Business Settings at business.facebook.com/ settings
  2. Navigate to Users > System Users
  3. Click Add to create a new system user (if you don’t have one)
  4. Give it a name like “WhatsApp API” and select Admin role
  5. Click Add Assets, select your WhatsApp app, and enable Full control
  6. Click Generate new token, select your app, and check whatsapp_business_messaging and whatsapp_business_management
  7. Copy the generated token – this is your permanent access token

3

Get your App Secret

Go back to your app in the Meta Developer Dashboard. Navigate to App settings > Basic. Click Show next to the App Secret field and copy it.

Connect to AI Chatbot

1

Go to Deploy & Install

In your AI Chatbot dashboard, select your chatbot and go to Deploy & Install.

2

Select WhatsApp

Click on the WhatsApp tab.

3

Enter your credentials

Fill in the three fields:

  • Phone Number ID – The numeric ID from Meta’s API Setup page
  • Access Token – Your permanent access token from the system user
  • App Secret – Your app secret from App Settings > Basic

4

Click Connect

Click the Connect button. AI Chatbot will generate a Webhook URL and Verify Token for you.

Configure the Webhook in Meta

After connecting in AI Chatbot, you need to configure the webhook in your Meta Developer App:

1

Go to WhatsApp Configuration

In your Meta Developer App, navigate to WhatsApp > Configuration.

2

Enter the webhook details
  • Callback URL: Paste the Webhook URL from AI Chatbot
  • Verify token: Paste the Verify Token from AI Chatbot

Click Verify and save.

3

Subscribe to messages

Navigate back to WhatsApp > Configuration. Under Webhook fields, find the messages field and click Subscribe.

Test Your Integration

Send a message to your WhatsApp number and confirm that the chatbot replies in the same thread.

During development, you can only send messages to phone numbers that have been added as test numbers in your Meta app. To message any WhatsApp user, you’ll need to complete Meta’s business verification process.

Troubleshooting

Messages not being received

Messages not being sent

Webhook verification failing

Going Live

To send messages to any WhatsApp user (not just test numbers), you’ll need to:

  1. Complete Business Verification – Verify your business in Meta Business Settings
  2. Request Production Access – In your app’s WhatsApp settings, request to go live
  3. Add a Payment Method – WhatsApp Business API charges per conversation (first 1,000 conversations per month are free)

For detailed information, see Meta’s WhatsApp Business documentation.

Ready to automate your customer service with AI?

Join over 1000+ businesses, websites and startups automating their customer service and other tasks with a custom trained AI agent.

On this page