Actions76
- Message Actions
- Chat Actions
- Contact Actions
- Group Actions
- Create
- List
- Get
- Delete
- Join
- Get Join Info
- Leave
- Get Picture
- Set Picture
- Delete Picture
- Update Subject
- Update Description
- Get Security Info Admin Only
- Set Security Info Admin Only
- Get Security Messages Admin Only
- Set Security Messages Admin Only
- Get Participants
- Add Participant
- Remove Participant
- Promote Admin
- Demote Admin
- Status Actions
- Channel Actions
- Poll Actions
- Profile Actions
- LID Actions
- File Actions
Poll → Send Poll Vote
AI-generatedOverview
This node enables interaction with WhatsApp via the Wappfy API, specifically allowing users to send votes on existing polls within WhatsApp chats. The "Send Poll Vote" operation lets you submit one or multiple votes to a poll message in a chat.
Typical use cases include:
- Automating responses to polls shared in WhatsApp groups.
- Collecting user input or feedback by programmatically voting on polls.
- Integrating WhatsApp poll voting into broader workflows, such as surveys or decision-making processes.
For example, if a poll is sent in a group chat asking "Which day should we meet?" with options "Monday, Tuesday, Wednesday," this node can cast a vote for "Tuesday" automatically based on external triggers.
Properties
| Name | Meaning |
|---|---|
| Chat ID | Identifier of the chat where the poll exists (e.g., 123456789@c.us for direct, or 123456789@g.us for group). |
| Poll Message ID | The unique ID of the poll message to which the vote will be submitted. |
| Poll Server ID | Optional server-side identifier of the poll (may be used for disambiguation or advanced scenarios). |
| Votes | Comma-separated list of vote options to select. Multiple votes allowed if the poll supports it. |
Output
The node outputs the JSON response returned by the Wappfy API after submitting the poll vote. This typically includes confirmation details about the vote submission, such as success status and any relevant metadata from the API.
No binary data output is involved in this operation.
Dependencies
Requires an active Wappfy API credential configured in n8n, including:
- Base URL of the Wappfy API instance.
- Instance name identifying the WhatsApp session.
- An API key or token for authentication.
The node makes HTTP POST requests to the Wappfy API endpoint
/api/sendPollVote.
Troubleshooting
Common issues:
- Invalid or missing Chat ID or Poll Message ID will cause the API call to fail.
- Providing vote options that do not exist in the poll may result in errors or ignored votes.
- If the poll does not allow multiple answers but multiple votes are provided, the API might reject the request.
- Network connectivity or incorrect API credentials will prevent successful communication.
Error messages:
- Errors from the API will be surfaced in the node's output under an error field if "Continue On Fail" is enabled.
- Typical error messages include "Poll message not found," "Invalid vote option," or "Unauthorized."
Resolution tips:
- Verify that the Chat ID and Poll Message ID correspond exactly to the poll you want to vote on.
- Ensure votes match the exact options available in the poll.
- Confirm API credentials and network access to the Wappfy API.
- Use the node's error output to debug specific API response messages.
Links and References
- Wappfy API Documentation (for detailed API endpoints and parameters)
- WhatsApp Polls feature overview (official WhatsApp documentation)
- n8n documentation on creating and using custom nodes and credentials