send_message
Send a message to a contact via a specified channel, supporting text, attachments, WhatsApp templates, emails, and quick replies.
Instructions
Send a message to a contact through a specific channel.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | No | The message text, required for 'text' and 'email' message types. | |
| subject | No | The email subject, required for 'email' message types. | |
| channelId | No | The channel ID to send the message from. If null, the last interacted channel will be used. | |
| identifier | Yes | The contact's identifier. Can be the contact's ID, email, or phone number. | |
| messageType | Yes | The type of message to send. | |
| templateName | No | The name of the WhatsApp template, required for 'whatsapp_template' message types. | |
| attachmentUrl | No | The URL of the attachment, required for 'attachment' message types. | |
| attachmentType | No | The type of the attachment. | |
| templateLanguage | No | The language code of the WhatsApp template, e.g. 'en', 'en_US'. | |
| templateComponents | No | Dynamic components for the WhatsApp template. Use this to fill in variable values ({{1}}, {{2}}, etc.) in the template body, header, or buttons. Example: [{ type: 'body', parameters: [{ type: 'text', text: 'John' }, { type: 'text', text: 'ORDER-123' }] }]. Omit if the template has no dynamic variables. |