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