Twilio - WhatsApp
Send WhatsApp messages using Twilio. Include Twilio credentials and message details in the payload or tool config.
Required fields
to: recipient in the formatwhatsapp:+123...from_: sender number (Twilio WhatsApp-enabled number)body_message: text bodyTWILIO_SIDandTWILIO_AUTH_TOKEN
Example payload
{
"to": "whatsapp:+1415...",
"from_": "whatsapp:+1415...",
"body_message": "Hello from agent"
}
Notes
- The tool may accept
content_sidandcontent_variablesfor template messages.
YAML usage
tools:
tool_assigned:
- name: Twilio_whatsapp
config:
TWILIO_SID: ${TWILIO_SID}
TWILIO_AUTH_TOKEN: ${TWILIO_AUTH_TOKEN}
from_: whatsapp:+1415...
Invocation payload:
payload:
to: "whatsapp:+1415..."
body_message: "Hello from agent"
More details
WhatsApp messages may require template approvals on Twilio depending on the content and recipient region.