Twilio SMS Integration
Follow these steps to enable Twilio SMS integration.
Steps | Details | |
---|---|---|
1 | Get a Twilio account | Signup for a trial/paid account from Twilio Navigate to WhatsApp sandbox using the link. |
2 | Get a Twilio Phone Number |
|
3 | Configure Webhook |
Twilio uses this web-hook to push incoming SMS messages to Hybrid Chat. |
4 | Specify Twilio Phone Number in Hybrid Chat | Under (3.15 ) Customer Channel Manager (CCM) Environment Variables, specify the Twilio phone number for |
5 | 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. |
Environment Variables for Twilio Integration
Following CCM environment variables must be configured for Twilio integration. See (3.15 ) Customer Channel Manager (CCM) Environment Variables for a complete list of all environment variables.
Variable Name | Description | ||||
---|---|---|---|---|---|
TWILIO_API_ACCOUNT | Unique 34 character SID of the Twilio Account, e.g., AC496763443da6c75e0f1b5f27ddb3f515 | ||||
TWILIO_API_TOKEN | Twilio auth token example: 100865823c710ff641409f5703f50f98 | ||||
TWILIO_FROM_NUMBER | 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
CSS
| ||||
TWILIO_OUTBOUND_API_URL (optional) | Twilio Outbound SMS REST API URL If this variable is not set the default URL is constructed using | ||||
TWILIO_STATUS_CALLBACK | CCM receives SMS delivery status notification on http[s]://SMS-CONNECTOR-HOST:[PORT]/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)
| ||||
SMS_ROUTING_POLICY | A directive for Hybrid Chat to decide routing of requests from a Twilio SMS account.
|