WAHA icon

WAHA

Connect with Whatsapp HTTP API

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 chat.

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 reply to, allowing the poll to be sent as a reply to a specific message.
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 certificate validation, proxy configuration, and timeout settings.

Output

JSON

  • messageId - The unique identifier of the sent poll message.
  • poll - The poll object sent, including question and options.
  • status - The status of the send operation, e.g., success or failure.

Dependencies

  • Requires an active chat session and chat ID to send the poll.
  • May require API authentication credentials for the chat service.

Troubleshooting

  • Ensure the session and chatId are valid and active; invalid IDs will cause failures.
  • If the poll JSON is malformed, the node will fail to send the poll.
  • Network issues or proxy misconfiguration can cause request timeouts or failures.
  • If SSL certificate validation fails and 'Ignore SSL Issues' is not enabled, the request will be blocked.

Discussion