Wappfy icon

Wappfy

Interact with WhatsApp through Wappfy API

Overview

This node enables sending polls via WhatsApp using the Wappfy API. It allows you to create interactive polls within WhatsApp chats or groups, where recipients can vote on provided options. This is useful for gathering opinions, making group decisions, or conducting quick surveys directly in WhatsApp conversations.

Practical examples:

  • A team lead sends a poll to a project group chat to decide on the best meeting time.
  • An event organizer polls attendees about preferred activities.
  • A community manager gathers feedback on new features or announcements.

Properties

Name Meaning
Chat ID Identifier of the WhatsApp chat or group where the poll will be sent (e.g., 123456789@g.us for groups).
Poll Question The question or topic of the poll that participants will see.
Poll Options Comma-separated list of answer choices for the poll.
Multiple Answers Boolean flag indicating whether participants can select more than one option.

Output

The node outputs the JSON response from the Wappfy API after sending the poll. This typically includes details about the created poll message such as its ID and status. The output is structured as an array of items, each containing a json field with the API response data.

No binary data is produced by this operation.

Dependencies

  • Requires a valid Wappfy API credential configured in n8n, including:

    • Base URL of the Wappfy API instance.
    • Instance name identifier.
    • API key for authentication.
  • The node makes HTTP POST requests to the /api/sendPoll endpoint of the Wappfy API.

Troubleshooting

  • Common issues:

    • Invalid or missing Chat ID: Ensure the chat ID is correctly formatted and corresponds to an active WhatsApp chat or group.
    • Incorrect API credentials: Verify that the API key, base URL, and instance name are correctly set in the node credentials.
    • Poll options formatting: Make sure poll options are separated by commas without trailing empty values.
  • Error messages:

    • Authentication errors: Check API key validity and permissions.
    • Validation errors from API: Confirm all required fields (chat ID, poll question, options) are provided and properly formatted.
    • Network or connectivity issues: Ensure the Wappfy API endpoint is reachable from your environment.

Links and References

  • Wappfy API Documentation (general reference for API endpoints)
  • WhatsApp Business API concepts for polls (for understanding poll usage in WhatsApp)

If you need further details on other operations or resources, feel free to ask!

Discussion