WhatsApp Twilio
WhatsApp Integration with Twilio
Twilio is used for WhatsApp integration, and the Twilio signup process must be completed before starting the integration with Kommunicate.
Instructions to set up a Twilio account and WhatsApp number
Sign up to Twilio
Please have the following information handy to start the process.
- Facebook Business Manager account ID
- You will need your Twilio Account SID
Request access to enable Twilio numbers for WhatsApp.
- To do the integration on Kommunicate one needs to have the WhatsApp number that is provided by Twilio, In order to get the number of WhatsApp, and fill out Twilio's "Request Access" form with accurate and up-to-date information, including the Facebook Business Manager ID.
- Please refer to Twilio’s documentation for more details
Submit a WhatsApp Sender request in the Twilio console
- Once you fill out the Request Access form and submit it, you will receive the pre-approval email from Twilio. Check out this reference link for the next steps.
Allow Twilio to send a message on your behalf in the Facebook Business Manager console.
Submit Facebook Business Manager account for Business Verification
Twilio completes WhatsApp Sender registration from their end
Once all of the above steps have been completed, the WhatsApp number can be retrieved to be added in Kommunicate. integration section, WhatsApp enabled number can be found in WhatsApp enabled senders section of the Twilio console, refer to the following screenshot for more details.
The instructions below will guide you through adding all of the necessary details to the Kommunicate dashboard and Twilio account.
- Copy Account SID, Auth Token from the Twilio console, and WhatsApp Enabled Number from WhatsApp enabled senders section and add it in the Kommunicate integration section.
- Navigate here in the dashboard to integrate with Kommunicate as shown below
- Once integration on Kommunicate is finished, visit WhatsApp enabled senders section on Twilio and click on Edit Sender.
- Now add the webhook URL and select the HTTP POST. Also, add a URL in the status callback URL textbox and Save/Update WhatsApp sender.
https://omni-channel.kommunicate.io/whatsapp/twilio/webhook
Now that Kommunicate is successfully integrated with your WhatsApp account, try sending messages to the number linked to the account and these messages will be sent to Kommunicate chat as well, if the chatbot is already integrated, the bot will start replying to the queries on your WhatsApp chat.
Conversation on the Kommunicate dashboard will be displayed in this format
Rich message buttons in WhatsApp
WhatsApp lets you add buttons to message templates. There are two types of buttons Quick Replies and Call to Action buttons.
Quick replies let businesses define buttons that users can tap to respond. When a Quick reply is tapped, a message containing the button text is sent in the conversation.
Call to action (CTA) buttons trigger a phone call or open a website when tapped.
To use buttons, you need to submit them as part of a message template to WhatsApp. Once approved, templates containing buttons can be sent by sending the message text in your API request.
Create Templates with Buttons
To implement the buttons, Navigate to the Twilio console, go to Programmable Messaging > Senders > WhatsApp Templates and click the New message template button. Here, a template containing the buttons must be submitted.
Send buttons as part of WhatsApp messages once the template with buttons has been approved. Send a message containing the template's body to send a button. The buttons are appended to the message automatically.