Message
Message is the WhatsApp Business component that sends messages from your WhatsApp Business number: text messages, Meta-approved templates with their details filled in, or files such as images and documents.
It can reply to the person who has just written to your number, when the flow starts with WhatsApp Business Webhook, or write to a number you set, for example to send a reminder or a confirmation.
When to use it
- An AI assistant answers on WhatsApp and you want to send its reply to the customer.
- You want to send each customer the confirmation of their appointment or order with an approved template.
- You want to send a customer their invoice or quote as a PDF.
- You want to alert a team member on WhatsApp when something important happens.
Configuration
You need a WhatsApp Business credential with the WhatsApp Business API key and your number’s identifier. See Credentials.
| Field | What it does |
|---|---|
| Credential (required) | The WhatsApp Business credential of the number you send from. |
| Operation | What the component does. See Operations. Default: Send Message. |
| Type Operation | Who the message goes to. Basic replies to the number that wrote to your flow on WhatsApp; Advanced shows Number Destination so you can type the number. Default: Basic. |
| Number Destination | Only with Advanced. The destination number with the country code and without the + sign, for example 34600111222. Required. |
| Message Body | Only in Send Message. The text of the message. Required. |
| WhatsApp Template | Only in Send Template. The template to send. The list loads when you choose the credential, with the templates approved in your Meta account. Once you pick one, a field appears for each variable in the template so you can fill it in. |
| Template Preview | Only in Send Template. The text of the chosen template, so you can see how it looks. It cannot be edited. |
| Media Content | Only in Send Media. The file to send: connect it from another component that delivers the file, or use its public address. Required. |
Operations
| Operation | What it does |
|---|---|
Send Message | Sends a text message. |
Send Template | Sends a Meta-approved template with its variables filled in. |
Send Media | Sends one or more files, such as images or documents. |
Text messages and templates you send are saved in the flow’s conversation history, in that number’s conversation.
Output
The Result output returns a delivery confirmation with the destination number and, in Send Template, the template and values used. In Send Media it returns WhatsApp’s answer with the ID of the message sent.
Example
A hair salon sends a reminder the day before each appointment.
- The flow reads the next day’s appointments from the calendar, with each customer’s name, phone number and time.
- Add Message with the
Send Templateoperation and the salon’s WhatsApp Business credential. - In Type Operation choose
Advancedand connect the phone number to Number Destination. - In WhatsApp Template choose the reminder template and fill in its variables with the name and time.
- Schedule the flow to run every afternoon.
Good practices
- WhatsApp only lets you send free-form messages to a number that has written to you in the last 24 hours. To write first, or after that time, use
Send Template. - New templates take time to be approved by Meta. If yours does not appear in WhatsApp Template, wait until it is approved and choose the credential again.
Related components
- WhatsApp Business Webhook: start a flow when you receive a WhatsApp message.