Send Message
AI-generatedSummary
Send a message to a customer via WhatsApp, Instagram, or Messenger by specifying the customer identifier and message details.
Inputs
- Customer Lookup (required) — Choose how to identify the customer: by Customer ID, Phone Number, or Instagram Username.
- Customer ID (required) — The unique customer ID (required if lookup by Customer ID).
- Phone Number (required) — The customer's phone number with country code (required if lookup by Phone Number).
- Instagram Username (required) — The customer's Instagram username (required if lookup by Instagram Username).
- Channel (required) — The messaging platform to send the message through: WhatsApp, Instagram, or Messenger.
- WhatsApp Phone Number — Select which WhatsApp phone number to send from if multiple are connected (WhatsApp only).
- Instagram Account — Select which Instagram account to send from if multiple are connected (Instagram only).
- Facebook Page — Select which Facebook Page to send from if multiple are connected (Messenger only).
- Message Type (required) — Type of message for the selected channel. For WhatsApp: text, image, document, audio, video, template, interactive; for Instagram: text, image, media share; for Messenger: text, image, video, audio, file.
- Message Content (required) — Text content for text messages.
- Media URL (required) — Publicly accessible URL of the media file for media messages (image, document, audio, video, media share, file).
- Caption — Optional caption for media messages (image, document, video).
- Filename — Filename for document/file messages.
- Template Details — For WhatsApp template messages: select or manually enter template name, language, and variables or advanced JSON components; auto-create customer option applies for phone number lookup.
- Interactive Message Details — For WhatsApp interactive messages: specify type (CTA URL button, reply buttons, list menu), body text, optional header/footer, and action details including buttons or list items.
Output shape
a JSON response from the WaswuzPlatform API representing the sent message or error details
The operation may throw errors for invalid inputs such as missing required fields, invalid URLs, or improperly formatted JSON. On error, if 'Continue on Fail' is enabled, the error details are returned in the output for that item; otherwise, the node execution stops.
Examples
Example 1: Send a WhatsApp text message to a customer identified by phone number
Set Customer Lookup to Phone Number, provide the customer's phone number, select WhatsApp channel, choose message type Text, and enter the message content.
Example 2: Send an Instagram image message to a customer identified by Instagram username
Set Customer Lookup to Instagram Username, provide username, select Instagram channel, choose message type Image, and enter a valid Media URL and optional caption.
Example 3: Send a WhatsApp template message with variables to a customer with customer ID
Set Customer Lookup to Customer ID, provide customer ID, select WhatsApp channel, choose message type Template, select or enter template name and language, specify number of variables and their values, optionally enable auto-create customer if lookup is by phone number.