To register a mobile number in Twilio, follow these steps:
Get a Twilio account
|Signup for a trial/paid account from Twilio Navigate to WhatsApp sandbox using the link.|
|2||Getting Started with Twilio for WhatsApp|
See Getting Started with Twilio for WhatsApp to setup Twilio to send and receive WhatsApp messages.
|3||Get a Twilio Phone Number|
|Navigate to the WhatsApp tab from the Programmable SMS section or use this link.|
Twilio will use this API to push any incoming Whatsapp messages.
|6||Specify Twilio Phone Number in Hybrid Chat|
Under Customer Channel Manager (CCM) Environment Variables, specify the Twilio phone number for
|7||Enable WhatsApp capability|
Add WhatsApp capability to the Twilio registered number.
|8||Add Twilio SSL certificate in Hybrid Chat trust store||If the CCM SSL_TRUST_STORE_PATH environment variable is set, then you will need to add a Twilio SSL certificate to our trust store. Open https://twilio.com in Chrome, export certificate and follow these steps to add the certificate to the trust store.|
|1||Opt-ins and Opt-outs are not supported yet.|
|2||Formatting a WhatsApp message is not supported.|
|3||WhatsApp notification message via Templates are not supported.|
Environment Variables for Twilio Integration
Following CCM environment variables must be configured for Twilio integration. See Customer Channel Manager (CCM) Environment Variables for a complete list of all environment variables.
Unique 34 character SID of the Twilio Account, e.g., AC496763443da6c75e0f1b5f27ddb3f515
Twilio auth token
Number registered with Twilio to send outbound SMS from. Use same format that is mentioned in Twilio dashboard.
Number registered with Twilio to send outbound WhatsApp messages from. It consisting of
Twilio Outbound SMS REST API URL
If this variable is not set the default URL is constructed using
CCM receives SMS delivery status notification on http[s]://CCM-HOST/sms-client/delivery-notification. When this variable is set, it is pushed with every outbound SMS to Twilio and Twilio uses this value a webhook to push SMS delivery notification back to CCM
For example, https://<FQDN>/sms-client/delivery-notification, where
A directive for Hybrid Chat to decide routing of requests from a WhatsApp number.