Actions27
- Activity Actions
- Conversation Actions
- Lead Actions
- Message Actions
- Person Actions
Message → Send Facebook/WA Template
AI-generatedSummary
Send a Facebook or WhatsApp template message within a specific conversation by providing the conversation ID and selecting a template. Customize the message by substituting template variables using macros and optionally include a media attachment via Media ID.
Inputs
- Conversation ID (required) — The ID of the conversation in which to send the template message.
- Template (required) — Select the Facebook/WhatsApp template to send. The template label shows variables in brackets, e.g., [primeironome]. Can be chosen from a list or by entering the template ID manually.
- Macros — Provide key-value pairs of variables to substitute in the template. Variable names must match those shown in the template label without braces.
- Additional Fields - Media ID — Optional media ID to attach to the template message.
Output shape
a single object representing the result of the send operation
The operation returns the API response data wrapped in an object. The response contains details about the message sent. In case of errors, an exception is thrown or an error object is returned if configured to continue on failure.
Examples
Example 1: Send a WhatsApp template message to a conversation with variables
Specify the existing Conversation ID, pick the template from the list or by ID, provide macros with variable substitutions, and optionally a media ID.