Skip to content

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
fromtextRequiredThe 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.
totextRequiredThe 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_sidtextOptionalThe SID of the pre-approved Twilio Content Template to send. Required for business-initiated messages.
content_variablesdynamic objectOptionalTemplate variable values keyed by their index position. For example, {"1": "22 July 2026", "2": "3:15pm"}.
bodytextOptionalFree-form message body. Can be used within the 24-hour customer service window without a template.

Outputs

Name Type Description
statusCodenumberHTTP status code from the Twilio API response
bodyobjectTwilio Messages API response body
sidtextUnique identifier for the message resource
statustextDelivery status of the message (e.g. queued, sent, delivered)
totextRecipient number used for the message
fromtextSender number used for the message
bodytextText content of the sent message
error_codetextTwilio error code if the message failed to send
error_messagetextTwilio error message if the message failed to send