Prerequisites
Before you start, make sure you have the following in place:- A Meta Business account with access to business.facebook.com.
- A verified WhatsApp Business number registered under your Meta Business account.
- A WhatsApp Business API app created in the Meta Developer portal.
Step 1: Configure the Integration in BotSmith
1
Open the Integrations tab
In the BotSmith chatbot editor, click the Integrations tab at the top of the page.
2
Open WhatsApp configuration
Find the WhatsApp card and click Setup.
3
Enter your WhatsApp credentials
Fill in the following fields:
- Access Token — Your permanent or temporary access token from Meta Business Suite. Find it in your WhatsApp Business API app under API Setup.
- Phone Number ID — The numeric ID of your WhatsApp Business phone number. Find it in the Meta Developer portal under your app’s WhatsApp → API Setup section.
- Verify Token (optional) — A secret string you create yourself (for example,
my_verify_token). You will enter this same value in the Meta Developer portal when registering the webhook. Defaults tobotsmith_verify_tokenif left blank.
4
Save and copy your webhook URL
Click Save Integration. The integration panel displays your unique Webhook URL and Verify Token — copy both values for the next step.
5
Enable the integration
Toggle Enable Integration on to activate message handling.
Step 2: Register the Webhook in Meta
After saving in BotSmith, register the webhook in the Meta Developer portal so Meta forwards incoming messages to your agent.- In the Meta Developer portal, open your WhatsApp Business API app.
- Go to WhatsApp → Configuration.
- Under Webhook, click Edit and enter:
- Callback URL — Paste the BotSmith webhook URL (it looks like
https://YOUR_DOMAIN/api/whatsapp/webhook/YOUR_CHATBOT_ID). - Verify Token — Enter the exact Verify Token shown in BotSmith.
- Callback URL — Paste the BotSmith webhook URL (it looks like
- Click Verify and Save. Meta sends a verification request to BotSmith; if the tokens match, the webhook is confirmed immediately.
- Under Webhook Fields, click Manage and subscribe to the
messagesfield.
Step 3: Test the Integration
Send a text message to your WhatsApp Business number from any WhatsApp account. Your BotSmith agent should reply within a few seconds. If you do not receive a reply, check that:- The Verify Token in BotSmith matches the one entered in Meta exactly (no spaces or extra characters).
- Your Access Token has not expired. For production use, generate a permanent system-user token.
- The integration is toggled on in BotSmith.
- Your chatbot is set to Active in BotSmith settings.