WAHA

Connect with Whatsapp HTTP API

Actions116

Overview

This node operation sends a poll message to a specified chat session. It is useful for gathering feedback or opinions from chat participants by presenting them with a question and multiple answer options. For example, a user can send a poll asking "How are you?" with options like "Awesome!", "Good!", and "Not bad!" to a chat group or individual.

Use Case Examples

  1. Sending a poll to a customer support chat to gather satisfaction feedback.
  2. Creating a quick survey in a team chat to decide on a meeting time.

Properties

Name Meaning
Session The chat session identifier to which the poll will be sent.
Chat Id The identifier of the chat where the poll will be posted.
Reply To The ID of the message to which this poll is a reply, allowing threaded conversations.
Poll The poll content including the question (name), answer options, and whether multiple answers are allowed.
Request Options Additional settings for the request such as batching, SSL validation, proxy, and timeout.

Output

JSON

  • messageId - The unique identifier of the sent poll message.
  • status - The status of the poll sending operation (e.g., success or failure).
  • pollDetails - Details of the poll sent, including question and options.

Dependencies

  • Requires an API key or authentication token for the chat service to send messages.

Troubleshooting

  • Ensure the session and chatId are correctly specified and valid to avoid message sending failures.
  • If the poll JSON is malformed, the node will fail to send the poll; validate the JSON structure before sending.
  • Network issues or proxy misconfiguration can cause request failures; verify proxy settings and network connectivity.
  • If SSL validation is disabled, be aware of potential security risks when accepting insecure certificates.

Discussion