WAHA icon

WAHA

Connect with Whatsapp HTTP API

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 ask "How are you?" and offer buttons like "I am good!", "Call us", or "Copy code" to facilitate quick user responses.

Use Case Examples

  1. Sending a greeting message with buttons for user feedback.
  2. Providing quick action buttons in a chat for customer support.

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 in the message.
Header Image An optional image displayed in the header section of the message, specified as a JSON object with mimetype, filename, and URL.
Body The main body text of the message shown below the header and above the buttons.
Footer Footer text displayed at the bottom of the message.
Buttons A JSON array defining the interactive buttons to display, including types like reply, call, copy, and URL with their respective properties.
Request Options Optional settings for request handling such as batching, SSL validation, proxy, and timeout.

Output

JSON

  • session - The session identifier used for sending the message.
  • chatId - The chat recipient identifier.
  • header - The header text sent in the message.
  • headerImage - The header image object sent with the message.
  • body - The main body text of the message.
  • footer - The footer text of the message.
  • buttons - The array of buttons sent in the message.

Dependencies

  • Requires an API key credential or authentication token to connect to the chat service.

Troubleshooting

  • Ensure the session and chatId are valid and active to avoid message delivery failures.
  • Verify the buttons JSON structure is correctly formatted to prevent errors in rendering buttons.
  • If SSL errors occur, consider enabling the 'Ignore SSL Issues' option or check the SSL certificate validity.
  • Timeout errors can be resolved by increasing the timeout setting or checking network connectivity.

Discussion