Actions90
- Sessions Actions
- Messages - Sending Actions
- Chats Actions
- Messages - Actions Actions
- Groups Actions
- List Groups
- Group Info
- Get Invite Link
- Revoke Invite Link
- Join via Link
- Preview via Link
- Create Group
- Delete Group
- Update Group Description
- Toggle Announcement Mode
- List Participants
- Add Participants
- Remove Participants
- Demote Participants
- Approve Join Request
- Reject Join Request
- List Join Requests
- Get Group Picture
- Set Group Picture
- Delete Group Picture
- Leave Group
- Update Group Name
- Lock Group Edits
- Promote Participants
- Profile Actions
- Server Actions
- Miscellaneous Actions
Overview
This node operation sends a button template message via WhatsApp using the WARest WhatsApp REST API. It allows users to specify a session, recipient, message body, optional footer, optional header image, and up to three interactive buttons of various types (reply, URL, call, copy). This is useful for creating interactive WhatsApp messages that prompt recipients to take specific actions, such as replying with a predefined text, opening a URL, making a call, or copying text.
Use Case Examples
- Sending a customer support message with quick reply buttons for common issues.
- Sending a promotional message with buttons linking to product pages or contact numbers.
Properties
| Name | Meaning |
|---|---|
| Session | The WhatsApp session ID to use for sending the message. Can be selected from a list or entered manually. |
| Recipient / Chat (to) | The phone number or JID of the message recipient. Can be a comma-separated list for multiple recipients. |
| Body Message | The main text message displayed above the buttons. |
| Footer | Optional footer text displayed below the buttons. |
| Image (URL/Data) | Optional header image URL or base64 data to display above the message and buttons. |
| Buttons | Up to three interactive buttons to include in the message. Each button can be of type Reply, URL, Call, or Copy, with corresponding properties such as title, ID, URL, phone number, or copy code. |
Output
JSON
json- The JSON response from the WARest API representing the result of the send button template message operation.
Dependencies
- Requires an API key credential for the WARest WhatsApp REST API and the base URL of the API server.
Troubleshooting
- Ensure the session ID is valid and active; otherwise, the message will not send.
- At least one button with a non-empty title must be added; otherwise, an error is thrown.
- If using binary data for images, ensure the binary property is correctly specified and contains valid base64 data.
- Check that the recipient phone number or JID is correctly formatted and reachable via WhatsApp.
Links
- WARest API - Send Button Template - Official documentation for sending button template messages using the WARest WhatsApp REST API.
