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 guide on YouTube for a step-by-step video guide.
- In Botpress Studio, select Explore Hub in the upper-right corner.
- Search for the WhatsApp integration, then select Install Integration.
- In the Configuration menu, select Authorize WhatsApp.
- Follow the instructions to connect Botpress to your WhatsApp account.
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.
You will need:
Visual learner?
Check out our WhatsApp guide on YouTube for a step-by-step video guide.
- In Botpress Studio, select Explore Hub in the upper-right corner.
- Search for the WhatsApp integration, then select Install Integration.
- In the Configuration menu, select Authorize WhatsApp.
- Follow the instructions to connect Botpress to your WhatsApp account.
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. Check out the Meta developer documentation to learn more about the setup process.
Install the integration
- In Botpress Studio, select Explore Hub in the upper-right corner.
- Search for the WhatsApp integration, then select Install Integration.
- In the Configuration menu, open the drop-down menu and select Manual Configuration.
Configure the integration
To configure the integration, you need to create a webhook endpoint for the WhatsApp integration. To do this, fill in the integration’s configuration fields:
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
- In your Meta App’s left sidebar, expand the WhatsApp menu and select API Setup.
- In the Access Token section, select Generate access token.
- Follow the instructions in the popup, then copy your access token.
Client Secret
Client Secret
- In your Meta App’s left sidebar, expand the App Settings menu and select Basic.
- In the App Secret field, select Show, then copy your secret.
Phone Number ID
Phone Number ID
- In your Meta App’s left sidebar, expand the WhatsApp menu and select API Setup.
- In the Send and receive messages section, copy your Phone Number ID.
When you’ve filled in all the fields, select Save Configuration. This will automatically enable your integration.
Add your webhook
Now that you’ve enabled your integration, you can add your webhook to your Meta app’s configuration:
- Copy the webhook URL and Verify Token from the Configuration section.
- In your Meta App’s left sidebar, expand the WhatsApp menu and select Configuration.
- Paste the webhook URL into the Callback URL field.
- Paste your Verify Token in the Verify Token field.
For more information, check out WhatsApp’s guide on getting started with Cloud API.
You’ve manually configured your WhatsApp integration!
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:
- In Botpress Studio, select Explore Hub in the upper-right corner.
- Search for the WhatsApp integration, then select Install Integration.
- Select Test your agent on WhatsApp.
- Follow the instructions to setup the playground.
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.