system.twilio.sendFreeformWhatsApp
This function is used in Python Scripting.
Description​
Sends a free-form WhatsApp message. WhatsApp considers any message that is not a pre-approved template a free-form message. Free-form messages can only be sent with Ignition after a 24-hour Session opens. A user can open a 24-hour Session by simply sending a WhatsApp message to the Twilio account. Then, the Session remains open for 24 hours from the last inbound message received from the user.
Client Permission Restrictions​
This scripting function has no Client Permission restrictions.
Syntax​
system.twilio.sendFreeformWhatsApp(accountName, fromNumber, toNumber, message)
Parameters​
Type | Parameter | Description |
---|---|---|
String | accountName | The Twilio account to send from. |
String | fromNumber | The phone number configured with Twilio to use for making the calls. |
String | toNumber | The phone number of the recipient. |
String | message | The body of the free-form WhatsApp message. |
Returns​
Nothing
Scope​
Gateway, Vision Client, Perspective Session