When building an application you may have use cases where you want to trigger the sending of an SMS message to your users.

For example, a user that has called into your IVR system you may want to trigger a confirmation SMS at the end of the experience or share a confirmation code for an action they have just completed.

If you are using Twilio you can leverage the Twilio APIs to trigger an outbound SMS message for a given configured Phone Number in your account.

<aside> ⚠️ A2P 10DLC registration is required for US messaging. You will need to register the phone number you want to use for this use case and campaign so that you can successfully send messages.

https://console.twilio.com/us1/develop/sms/regulatory-compliance/a2p-10dlc-overview

</aside>

Setting Up Your API Call

Twilio uses x-www-form-urlencoded calls to send a new outgoing message. For more information, you can visit the Twilio API reference for creating a message resource

In your Zammo application you will want to structure your call as follows:

  1. Create a new Send an HTTP request activity

Your final request should look similar to the following:

Screenshot 2023-09-13 at 10.31 1.png

Sample

You can also use the below template dialog as a starting point.

TwilioSMSViaAPI_dialog_sendSMSToPhoneAPI_export.zip