Actions13
Message → Send Template
AI-generatedSummary
Send a WhatsApp template message to a specified contact or phone number using an approved template, optionally filling in dynamic template variables.
Inputs
- Contact (required) — Select the contact to receive the message. Choose from existing contacts by list or ID, or specify a phone number to send to an automatically created new contact.
- Template (required) — Choose an approved WhatsApp message template by list or by specifying the template ID. After selection, refresh the Template Variables section to load required variables.
- Template Variables — Fill in dynamic variables required by the selected template. These may include header text, header media URL, positional or named body parameters, and button URL suffixes. Refresh variables after selecting a template to load these fields.
Output shape
a single record
Returns the API response for the sent template message including message identifiers and status. If an error occurs, an error will be thrown.
Examples
Example 1: Send a WhatsApp template message to a known contact with specified template variables.
Set Contact mode to select an existing contact, choose a Template from the approved templates list, fill in the required template variables, then execute the node to send the template message.
Example 2: Send a WhatsApp template message to a new phone number with dynamic variables.
Set Contact mode to 'By Phone Number' with the target number in E.164 format, select a Template by ID, define template variables as required, then run the node to send the message, which will automatically create the contact if it does not exist.