Installation
Last updated
Last updated
There are two prerequisites for installing a Whatsapp bot in the CSML Studio.
you MUST have a verified Meta Business account
you MUST have a Meta Developer account
And more generally, you must be able to follow this guide to setup a Meta app correctly: https://developers.facebook.com/docs/whatsapp/business-management-api/get-started.
In your bot in CSML Studio, go to Channels > Connect a new channel, then select Whatsapp.
In the next screen, enter a name and description for your channel (it is purely informational and can be changed later) and add the required credentials.
The App ID and App Secret can be found in the app's Basic Settings page:
The User Access Token, Phone Number ID (and not the actual phone number!) and WhatsApp Business Account ID can be foud under Whatsapp > Getting Started. You can start with one of the Test numbers provided by Facebook, but in production you will want to change that to your own phone number once it is properly configured.
Then, click Save to setup the channel. In the following page, you will also receive your Webhook configuration parameters:
Use these parameters in the Whatsapp > Configuration page under Callback URL and Verify token. Make sure to also subscribe to the messages
Webhook field.
The final step before you can deploy this app to production is to verify your business (if not already done), and obtain the whatsapp_business_management
permissions.