WasenderAPI icon

WasenderAPI

Manage WasenderAPI sessions, messages, contacts, and groups

Message → Send Poll

AI-generated

Overview

The node sends a poll message via the WasenderAPI. It allows users to specify the recipient, poll question, options, and whether multiple answers are allowed. This is useful for gathering feedback or opinions from contacts or groups on WhatsApp.

Use Case Examples

  1. Sending a poll to a WhatsApp group to decide on a meeting time.
  2. Sending a poll to individual contacts to gather preferences on a product feature.

Properties

Name Meaning
Recipient The phone number, group JID, or channel JID to which the poll will be sent.
Message Options Additional options for the message, such as replying to a specific message ID.
Question The question text of the poll to be sent.
Allow Multiple Answers Boolean flag indicating if the poll allows multiple answers.
Options The list of options available for the poll participants to choose from.
Options (Request) Request options such as retry behavior and max retries for the API call.

Output

JSON

  • to - The recipient identifier (phone number, group JID, or channel JID).
  • poll
    • question - The poll question text.
    • options - Array of poll options sent.
    • multiSelect - Boolean indicating if multiple answers are allowed.
  • replyTo - Optional message ID this poll is replying to.

Dependencies

  • WasenderAPI service with API key credentials

Troubleshooting

  • Ensure the recipient identifier is correctly formatted as a phone number, group JID, or channel JID.
  • At least two poll options must be provided; otherwise, the node throws an error.
  • Reply To Message ID, if provided, must be a positive integer.
  • Check API credentials and session selection to avoid authentication errors.

Discussion