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.
Triggers
Troubleshooting
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.