WAREST icon

WAREST

Interact with the WARest WhatsApp REST API

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

  1. Sending a customer support message with quick reply buttons for common issues.
  2. 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

Discussion