WAHA

Connect with Whatsapp HTTP API

Actions116

Overview

This node operation sends a message with interactive buttons in a chat session. It is useful for engaging users by providing predefined response options such as replies, calls, copying codes, or opening URLs. For example, a customer support bot can use this to ask users how they are doing and offer quick response buttons.

Use Case Examples

  1. Sending a greeting message with buttons for quick replies.
  2. Providing buttons to call support, copy a code, or visit a URL from within a chat.

Properties

Name Meaning
Session The chat session identifier to which the message with buttons will be sent.
Chat Id The unique identifier of the chat recipient.
Header The header text displayed above the buttons.
Header Image An optional image displayed in the header, specified as a JSON object with mimetype, filename, and URL.
Body The main message body text shown with the buttons.
Footer Footer text displayed below the buttons.
Buttons A JSON array defining the interactive buttons, including types like reply, call, copy, and URL, each with relevant properties.
Request Options Optional settings for batching, SSL validation, proxy, and timeout to control request behavior.

Output

JSON

  • sentMessage - Details of the sent message including buttons and text content.

Dependencies

  • Requires an API key credential for authentication with the chat service.

Troubleshooting

  • Ensure the session and chatId are valid and active to avoid message delivery failures.
  • Validate the JSON format of buttons and headerImage to prevent parsing errors.
  • Check network connectivity and proxy settings if requests time out or fail.
  • If SSL errors occur, consider enabling the option to ignore SSL issues, but be aware of security risks.

Links

Discussion