Wappfy icon

Wappfy

Interact with WhatsApp through Wappfy API

Poll → Send Poll

AI-generated

Overview

This node allows sending a poll message via WhatsApp using the Wappfy API. It is designed to create interactive polls within WhatsApp chats or groups, enabling users to gather opinions or votes from participants directly in their conversations.

Common scenarios where this node is beneficial include:

  • Conducting quick surveys or feedback collection in group chats.
  • Organizing event preferences or decisions among friends or colleagues.
  • Running informal voting sessions in community or team chats.

For example, you can send a poll asking "Which day works best for the meeting?" with options like "Monday, Wednesday, Friday" and allow recipients to select one or multiple answers depending on your configuration.

Properties

Name Meaning
Chat ID The identifier of the chat or group where the poll will be sent (e.g., 123456789@g.us).
Poll Question The question text that will be displayed as the poll's main prompt.
Poll Options Comma-separated list of answer options for the poll (e.g., "Option 1, Option 2, Option 3").
Multiple Answers Boolean flag indicating whether participants can select multiple answers (true or false).

Output

The node outputs the JSON response returned by the Wappfy API after sending the poll. This typically includes details about the created poll message such as its ID, status, and metadata confirming successful delivery.

If multiple input items are processed, the output is an array of JSON objects corresponding to each poll sent.

The node does not output binary data.

Dependencies

  • Requires an active Wappfy API account with valid credentials including:

    • Base URL of the Wappfy API instance.
    • Instance name identifier.
    • An API key credential for authentication.
  • The node uses HTTP requests to communicate with the Wappfy API endpoints.

  • Proper configuration of these credentials in n8n is necessary before using the node.

Troubleshooting

  • Invalid Chat ID: If the chat ID is incorrect or the bot is not part of the chat/group, the poll will fail to send. Verify the chat ID format and membership.

  • API Authentication Errors: Missing or invalid API key or instance name will cause authentication failures. Ensure credentials are correctly set.

  • Malformed Poll Options: Poll options must be provided as a comma-separated string. Empty or improperly formatted options may cause errors.

  • Multiple Answers Flag: Setting this incorrectly might affect how votes are accepted. Confirm if multiple selections are intended.

  • Network Issues: Connectivity problems to the Wappfy API endpoint will result in request failures.

Error messages from the API are passed through; reading them carefully helps identify the exact issue.

Links and References


This summary covers the "Poll" resource with the "Send Poll" operation based on the provided source code and property definitions.

Discussion