Send WhatsApp Message
Twilio
Twilio
Send WhatsApp Message
Send a WhatsApp message via Twilio using an approved message template. Uses ContentSid for template-based messages (required for business-initiated messages outside the 24-hour customer service window).
ActionAI Tool
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
from | text | Required | The Twilio WhatsApp sender number in E.164 format. The whatsapp: prefix is optional — it will be added automatically if omitted. For example, +14155238886 or whatsapp:+14155238886. |
to | text | Required | The recipient WhatsApp number in E.164 format. The whatsapp: prefix is optional — it will be added automatically if omitted. For example, +16285550100 or whatsapp:+16285550100. |
content_sid | text | Optional | The SID of the pre-approved Twilio Content Template to send. Required for business-initiated messages. |
content_variables | dynamic object | Optional | Template variable values keyed by their index position. For example, {"1": "22 July 2026", "2": "3:15pm"}. |
body | text | Optional | Free-form message body. Can be used within the 24-hour customer service window without a template. |
Outputs
| Name | Type | Description |
|---|---|---|
statusCode | number | HTTP status code from the Twilio API response |
body | object | Twilio Messages API response body |
sid | text | Unique identifier for the message resource |
status | text | Delivery status of the message (e.g. queued, sent, delivered) |
to | text | Recipient number used for the message |
from | text | Sender number used for the message |
body | text | Text content of the sent message |
error_code | text | Twilio error code if the message failed to send |
error_message | text | Twilio error message if the message failed to send |