Twilio SMS

The Twilio SMS output module allows you to write simple SMS messages through the Twilio API.

ParameterDefaultMeaning
ccode61Your international dialling code
sidYour Twilio security ID
tokenYour Twilio Auth Token
fromThe Twilio phone number to send messages from
toThe phone number to send messages to
format%MThe content of the message, with event substitutions

Example

[
   {
		"type": "event",
		"method": "twilio_whatsapp",
		"ccode": 61,
		"sid": "--Twilio Security ID--",
		"token": "--Twilio Auth Token--",
		"from": "--Your Twilio Phone Number--",
		"to": "--The Destination Phone Number--",
                "format": "Your ARDI code is %S",
	}
]

The above example would send a Whatsapp message containing the text to the phone number in the to parameter.

NOTE: Whatsapp is quite restrictive about the types of messages send on their platform, in an attempt to discourage bots. As such, you will have to establish 'templates' for each of the types of Whatsapp messages you will send through the Twilio API.

The 'format' above is an example of how you can test Whatsapp messaging by using one of the built-in message templates in their sandbox environment.

Performance/Spam Warning

Like all of the announcement modules, this module may take some time to execute and will block the process in the mean-time.

Server Internet Connection Required

The server needs to be able to establish a connection with services on the Internet to use this module.

Other Modules

Return to the list of output modules.