The SEND_SMS action sends a text message using the configured Twilio account. The message is delivered to a specified phone number through Twilio's messaging service.
Use this action to send notifications, reminders, approval updates, verification codes, and other time-sensitive communications to mobile devices.
The action sends a request to Twilio containing the sending phone number, the recipient phone number, and the message content. Twilio processes the request and returns information about the submitted message, including its delivery status and identifier.
The input parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| smsFrom | String | Required | The Twilio phone number used to send the SMS message. |
| smsTo | JSON | Required | A JSON array containing the recipient phone numbers that will receive
the SMS message. Each phone number should be specified in a format
supported by Twilio. For
example:[ "+15551234567", "+15557654321" ] |
| smsBody | String | Required |
The message content to send. The text supports FreeMarker expressions, allowing process variables to be inserted dynamically. For example: Hello ${fullName.lastName},
your approval request has been completed.
where ${fullName.lastName} can be used from the metadata parameter to include variables. For more information on using FreeMarker, refer to Apache FreeMarker documentation. |
| metadata | JSON | Optional | A JSON object containing values that can be referenced by FreeMarker expressions in the message text. For more information on using FreeMarker, refer to Apache FreeMarker documentation. |
The output parameters of the action are:
| Parameter | Type | Required | Description |
|---|---|---|---|
| smsResult | JSON | Optional | A JSON object containing the message identifiers returned by Twilio and the corresponding recipient phone numbers. This information can be used to track message delivery or reference sent messages in subsequent process steps. |