WhatsApp Block
Send WhatsApp messages
The WhatsApp block sends messages to WhatsApp users through the WhatsApp Business API. Reach for it when a workflow needs to notify or reply to a user on WhatsApp, and pair it with the built-in webhook trigger to react to incoming messages.
Overview
| Property | Value |
|---|---|
| Type | whatsapp |
| Category | Tools |
| Color | #25D366 |
When to Use
- Send transactional notifications (order updates, alerts, reminders) to a WhatsApp user
- Reply to an inbound WhatsApp message captured by the WhatsApp webhook trigger
- Deliver workflow results or summaries straight to a customer's phone
- Build conversational automations that respond to user messages in real time
- Route AI-generated responses to a recipient via the WhatsApp Business API
Configuration
Recipient Phone Number (phoneNumber)
The destination number in full international format, including country code (e.g., +1234567890). Required.
Message (message)
The text body to send to the recipient. Supports {{block.field}} references so you can inject dynamic content from earlier blocks. Required.
WhatsApp Phone Number ID (phoneNumberId)
Your WhatsApp Business Phone Number ID used to authenticate and route the outbound message. Required.
Access Token (accessToken)
Your WhatsApp Business API access token. Stored as a password field. Required. Provide via {{WHATSAPP_ACCESS_TOKEN}} to avoid embedding credentials in plaintext.
Trigger Configuration (triggerConfig)
Configures the whatsapp_webhook trigger so the block can also receive inbound WhatsApp messages and start a workflow. When enabled, the block exposes the from, to, text, timestamp, and type outputs that carry the payload of the incoming message.
Inputs & Outputs
-
Inputs:
phoneNumber(string) — Recipient phone number with country codemessage(string) — Message text to sendphoneNumberId(string) — WhatsApp Business Phone Number IDaccessToken(string) — WhatsApp Business API access token
-
Outputs:
success(boolean) — Send success statusmessageId(string) — WhatsApp message identifier returned by the APIerror(string) — Error information if sending failsfrom(string) — Sender phone number (webhook trigger output)to(string) — Recipient phone number (webhook trigger output)text(string) — Message text content (webhook trigger output)timestamp(string) — Message timestamp (webhook trigger output)type(string) — Message type, e.g.text,image(webhook trigger output)
Tools
- WhatsApp (
whatsapp_send_message) — Sends a text message to a WhatsApp user via the WhatsApp Business API (graph.facebook.com/v22.0). RequiresphoneNumber,message,phoneNumberId, andaccessToken. Returnssuccess,messageId,phoneNumber,status, andtimestamp.
YAML Example
whatsapp_1:
type: whatsapp
name: "WhatsApp"
inputs:
phoneNumber: "+1234567890"
message: "{{start.input}}"
phoneNumberId: "123456789012345"
accessToken: "{{WHATSAPP_ACCESS_TOKEN}}"
connections:
outgoing:
- target: next-block-id