WhatsApp Setup
Add a bot to WhatsApp using the official integration.
The official WhatsApp integration allows your users to chat with your bot by messaging a WhatsApp number.
Setup
You will need:
Visual learner?
Check out our WhatsApp Setup guide on YouTube for a step-by-step video guide.
Additional requirements:
-
While setting up your WhatsApp integration, we will ask you to create or select:
-
After setup is complete, your business will undergo a verification process by Meta, the parent company of WhatsApp. This verification confirms the identity and eligibility of your business to use Meta’s platforms.
For advanced use cases, you can use your own Meta app with our integration.
You will need:
- A Meta developer app with the . Check out the Meta developer documentation to learn more about the setup process.
Step 1: Install the integration in Botpress
Step 2: Configure the integration
Next, fill in the integration’s configuration fields using information from your Meta app:
Verify Token
Verify Token
Used by Meta to verify that you’re the real owner of the provided webhook. Can be any alphanumeric string.
Access Token
Access Token
Client Secret
Client Secret
Default Bot Phone Number ID
Default Bot Phone Number ID
When you’ve filled in all the fields, select Save Configuration. This will automatically enable your integration.
Step 3: Add your webhook
Now that you’ve enabled your integration, you can add your webhook to your Meta app’s configuration:
You’ve manually configured your WhatsApp integration!
For more information, check out WhatsApp’s guide on getting started with Cloud API.
If you want to test your bot’s behaviour in WhatsApp before going through the actual setup process, you can use the WhatsApp integration playground.
You will need:
Cards
Some of the integration’s Cards use WhatsApp message templates to send messages to users.
In WhatsApp, these templates support both named and positional parameters. However, the integration currently only supports positional parameters. This means you’ll get an error if you try to provide named parameters in a Card’s conversation.templateVariablesJson field.
List Message Templates
Lists WhatsApp message templates from the connected WhatsApp Business Account, including parameter schemas and approval status
inputobjectoutputobjectSend Template Message
Sends a WhatsApp Message Template to a user in an existing conversation
inputobjectoutputobjectStart Conversation
Proactively starts a conversation with a WhatsApp user by sending them a message using a WhatsApp Message Template
inputobjectoutputobjectstartTypingIndicator
inputobjectstopTypingIndicator
inputobjectTriggers
event.payload after the Trigger fires.
Message Delivered
Triggered when a message is delivered to a user
This Trigger has no payload.
Message Failed
Triggered when a message fails to be delivered
payloadobjectMessage Read
Triggered when a user reads a message
This Trigger has no payload.
Message Sent
Triggered when a message is sent
This Trigger has no payload.
Message Template Components Update
Triggered when a template is edited
payloadobjectMessage Template Quality Update
Triggered when a template's quality score changes
payloadobjectMessage Template Status Update
Triggered when a template is approved, rejected or disabled
payloadobjectMessage Echo Received
Triggered when an outbound message sent through another channel (e.g. a human agent) is echoed back via the webhook
This Trigger has no payload.
Reaction Added
Triggered when a user adds a reaction to a message
payloadobjectReaction Removed
Triggered when a user removes a reaction from a message
payloadobjectTemplate Category Update
Triggered when the category of a WhatsApp template is changed — whether manually or by an automated process, or when such a change is about to occur.
payloadobjectTroubleshooting
Not receiving messages from bot on WhatsApp
Not receiving messages from bot on WhatsApp
Until Meta has verified your business, your bot won’t be able to send messages to WhatsApp users, even if you’ve configured it correctly.
If you need to test out your bot right away, you can use the WhatsApp Playground while waiting for business verification.
Meta business verification taking too long
Meta business verification taking too long
Unfortunately, we can’t help speed up Meta’s business verification process.
If you need to test out your bot right away, you can use the WhatsApp Playground while waiting for business verification.
Bot receiving WhatsApp messages, but not sending messages back
Bot receiving WhatsApp messages, but not sending messages back
There may be a problem with the payment method in your WhatsApp business account. Check the billing hub and make sure your payment method is configured correctly.