Green API icon

Green API

Send WhatsApp messages via Green API

Message → Send Poll

AI-generated

Overview

This node operation sends a poll message to a specified WhatsApp chat using the Green API. It allows users to create interactive polls with multiple options and optionally enable multiple answers. This is useful for gathering opinions or votes from chat participants in both private and group chats.

Use Case Examples

  1. Sending a poll to a group chat to decide on a meeting time with options like 'Morning', 'Afternoon', 'Evening'.
  2. Creating a poll in a private chat to get feedback on a product with options such as 'Like', 'Dislike', 'Neutral'.
  3. Allowing multiple answers in a poll to let participants select more than one option.

Properties

Name Meaning
Chat ID The identifier of the chat where the poll will be sent. For private chats, use phone@c.us format; for group chats, use chatId@g.us.
Message The text message that accompanies the poll, typically describing the poll question or context.
Poll Options Comma-separated list of poll options (between 2 and 12) that participants can choose from.
Multiple Answers Boolean flag indicating whether the poll allows multiple answers from participants.
Quoted Message ID Optional ID of a message to quote in the poll message, providing context or reference.

Output

JSON

  • idMessage - The ID of the sent poll message returned by the API.
  • status - The status of the poll message sending operation.
  • message - Additional message or information returned by the API about the poll sending.

Dependencies

  • Green API credentials including instance ID and API token for authentication.

Troubleshooting

  • Ensure the chat ID is correctly formatted for private or group chats to avoid sending errors.
  • Verify that the poll options are between 2 and 12 and properly comma-separated.
  • Check that the Green API credentials (instance ID and API token) are valid and have the necessary permissions.
  • Common error messages include failures to send the poll due to network issues or invalid parameters; reviewing the error message and the data sent can help resolve these.

Discussion