Connect WhatsApp to B6AI
Connect the WhatsApp channel end to end, set up WhatsApp, connect it in B6AI, publish your bot, and go live with confidence.
Overview
WhatsApp is the highest-engagement channel for many businesses. Connecting the WhatsApp Business Platform (Meta’s Cloud API) lets your bot answer customers on WhatsApp, hand off to human agents, and send proactive notifications using approved templates.
This guide covers the full setup on Meta’s side and in B6AI, plus the messaging rules that keep your number healthy.
What you can do on WhatsApp
Connecting WhatsApp lets your bot hold real conversations there, with full handoff to human agents when needed. On this channel you can:
- Answer inbound WhatsApp messages automatically with your bot.
- Hand off seamlessly to a live agent in the Chats inbox.
- Reply freely within the 24-hour customer-service window.
- Send approved template messages (order updates, reminders) outside the window.
- Share media (images, documents, location) and use interactive buttons and lists.
How the WhatsApp channel works
B6AI connects to the WhatsApp Business Platform (Meta Cloud API). Meta hosts your business phone number; when a customer messages it, Meta calls a webhook at B6AI, which runs your bot and replies using your Phone Number ID and a permanent access token.
Business-initiated messages sent outside the 24-hour window must use a message template that Meta has pre-approved.
Prerequisites
Have all of the following ready before you begin, each is required to complete the connection.
- A Meta Business account (business verification is required to raise messaging limits).
- A Meta app with the WhatsApp product added.
- A phone number that is not already registered on WhatsApp (or one you migrate in), plus a display name for it.
- The Enterprise Admin role in B6AI.
Set up WhatsApp on Meta
You configure the number and app on Meta’s side, then connect it to B6AI.
- Create a Meta Business account at business.facebook.com.
- At developers.facebook.com, create an app (type: Business) and add the WhatsApp product.
- In WhatsApp → API Setup, add or select your phone number and set its display name.
- Complete Business Verification (Business Settings → Security Center) to lift messaging limits.
- Create a System User (Business Settings → Users → System Users) and generate a permanent token with the whatsapp_business_messaging and whatsapp_business_management permissions.
Get your WhatsApp Business Platform credentials
These are the values you will paste into B6AI. Copy each one carefully.
- In WhatsApp → API Setup, copy the Phone Number ID and the WhatsApp Business Account (WABA) ID.
- Copy the permanent System User access token you generated (prefer this over the temporary 24-hour token).
- Choose a Webhook verify token: any strong random string. You’ll enter the same value in Meta and in B6AI.
Phone Number ID: 109xxxxxxxxxxxx
WABA ID: 102xxxxxxxxxxxx
Permanent token: EAAG… (System User token)
Verify token: <a-strong-random-string you choose>Required permissions
Grant exactly these permissions so B6AI can send and receive messages on WhatsApp.
| Scope / permission | What it allows | Why B6AI needs it |
|---|---|---|
| whatsapp_business_messaging | Send and receive WhatsApp messages | Core: reply to customers and send templates |
| whatsapp_business_management | Manage the WABA, numbers and templates | Register the number and submit message templates |
| business_management | Access the owning business | Link the number to your verified business |
Configure the webhook
Inbound WhatsApp messages reach B6AI through a Meta webhook. You paste B6AI’s callback URL and your chosen verify token into Meta so the two sides agree.
- In your Meta app → WhatsApp → Configuration → Webhooks, set the Callback URL and Verify token to the values B6AI shows during connection.
- Subscribe to the messages field.
- B6AI completes Meta’s verification handshake automatically once the values match.
Connect WhatsApp in B6AI
Channels are configured per bot. In B6AI, open Bots and choose the bot you want on WhatsApp, switch to its Channels tab, and click Configure on the WhatsApp card. Complete the form (every field is explained below), Save, then toggle Enable to turn the channel on.
- In B6AI, open Bots, choose your bot, and go to its Channels tab.
- Click Configure on the WhatsApp card.
- Enter the Phone Number ID, Business Account ID, permanent access token and your webhook verify token.
- Copy the callback URL B6AI shows and paste it into Meta’s webhook configuration (previous section).
- Save, then toggle Enable. B6AI validates the number and webhook.
{
"provider": "whatsapp",
"phone_number_id": "109…",
"waba_id": "102…",
"access_token": "EAAG…",
"verify_token": "…"
}| Field | What it is | Example value |
|---|---|---|
| Phone Number ID | Meta’s ID for your WhatsApp number | 109xxxxxxxxxxxx |
| Business Account ID | Your WhatsApp Business Account (WABA) ID | 102xxxxxxxxxxxx |
| Access token | Your permanent System User token | EAAG… |
| Webhook verify token | Shared secret set on both Meta and B6AI | a-strong-random-string |
Publish the bot to WhatsApp
Once the channel is configured and enabled on the bot, publish the bot so customers get answers on WhatsApp.
- On the bot’s Channels tab, confirm the WhatsApp channel shows Configured and is Enabled.
- Open the bot in Bot Builder and run it through the test simulator until it passes validation.
- Click Publish. The bot now serves conversations on WhatsApp.
Verify with a test conversation
Confirm the channel is live end to end before sharing it with customers.
- From your personal WhatsApp, send a message to the business number.
- Confirm the bot replies within the 24-hour session window.
- Check the conversation appears in the Chats inbox, and test a handoff to an agent.
Messaging rules & behavior
Every channel has its own rules about when and how businesses may message customers. Understanding these prevents blocked or undelivered messages.
- The 24-hour customer-service window: after a customer messages you, you can send free-form replies for 24 hours.
- Outside that window, business-initiated messages must use a message template that Meta has pre-approved (create templates in WhatsApp Manager → Message Templates).
- You need customer opt-in to message people proactively.
- Your messaging limit (250 → 1K → 10K → unlimited/day) and quality rating scale with business verification and good sending behavior.
Troubleshooting
If messages are not delivered or the bot does not reply, match the symptom below to its cause and fix.
| Symptom / error | Likely cause | How to fix it |
|---|---|---|
| Webhook verification failed | Callback URL or verify token mismatch | Enter the exact callback URL and verify token B6AI shows |
| Message not delivered outside 24h | No approved template used | Create and get a template approved, then send it |
| (#131030) recipient not in allowed list | The app/number is in development/test mode | Add the tester number, or move the app to Live |
| (#131047) re-engagement message | The 24-hour window has closed | Use an approved template to reopen the conversation |
| Token expired | A temporary 24-hour token was used | Generate a permanent System User token |
Limitations
Keep these constraints in mind when designing conversations for WhatsApp.
- Proactive messages require approved templates plus customer opt-in.
- Messaging limits are tiered and scale with verification and quality rating.
- One phone number per channel connection; media has size limits.
Security & compliance
- Grant only the scopes and permissions listed above, never request more “just in case”.
- Rotate your WhatsApp Business Platform credentials on a regular schedule, and immediately if you suspect exposure.
- Restrict the Enterprise Admin role (which manages integrations) to a small, trusted group.
- Prefer a dedicated service account or bot user over a personal login, so access survives staff changes.
- Review the integration’s activity in the B6AI Activity Logs periodically for unexpected calls.
- Disconnect the integration the moment a credential leaks; then rotate it in WhatsApp before reconnecting.
Recommendations
- Test against a sandbox or non-production WhatsApp account before connecting live data.
- Document which bots and flows depend on this integration so changes are predictable.
- Set a recurring reminder to review scopes and rotate credentials.
- Enable only the capabilities you actually use today; you can widen scopes later.