Twilio has updated its API, requiring all outbound messages to include the “ContentSid” and “ContentVariables” parameters. The traditional “Body” parameter is no longer supported, ensuring that only pre-approved templates are used for messaging.

https://help.twilio.com/articles/19816296822299

New Changes (Twilio): https://www.twilio.com/docs/content/send-templates-created-with-the-content-template-builder

To achieve this, we utilized webhooks within the notification system to create an internal webhook that triggers an outbound Twilio + WhatsApp message.

For instance, if you want to send a WhatsApp message when a ticket comment is added, you can modify the “21 – Notify customer when a public comment is added to any ticket” notification and include the following configuration.

MGR Webhook URL: https://www.mygadgetrepairs.com/external/outbound-whatsapp-msg.cfm

You need to implement this for all the notifications that require an outgoing WhatsApp message.

Twilio’s Content Template Builder: https://www.twilio.com/docs/content/create-templates-with-the-content-template-builder

How to find the “ContentSid” in the Twilio’s Content Template Builder

You can also set the default “ContentSid” for composing an SMS via the “Send SMS” interface and “Auto responders” via the integration setting.

For Auto Responders:

You can also assign “ContentSid” to each “Canned Response” as well.

Was this article helpful to you?

mm

John Smith

Leave a Reply

You must be logged in to post a comment.