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
Overview
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 group chats.
- Collecting user input or feedback through WhatsApp polls programmatically.
- Integrating poll voting into workflows that analyze or react to poll results.
For example, you can configure this node to cast votes on a poll message identified by its ID in a specific chat, submitting selected options as votes.
Properties
| Name | Meaning |
|---|---|
| Chat ID | Identifier of the chat where the poll is located (e.g., 123456789@c.us for direct chat or 123456789@g.us for group chat). |
| Poll Message ID | The unique ID of the poll message to which you want to send your vote. |
| Poll Server ID | Optional server-side identifier of the poll (may be used for additional poll context). |
| Votes | Comma-separated list of vote options to select in the poll. |
Output
The node outputs the JSON response returned by the Wappfy API after sending the poll vote. This typically includes confirmation details about the vote submission or any relevant status information from the API.
If multiple items are processed, the output will be an array of such JSON objects corresponding to each input item.
The node does not output binary data.
Dependencies
- Requires a valid Wappfy API credential with an API key and instance name configured in n8n.
- The node makes HTTP requests to the Wappfy API endpoints.
- Network access to the Wappfy API base URL is necessary.
Troubleshooting
Common issues:
- Invalid or missing Chat ID or Poll Message ID will cause the API request to fail.
- Incorrectly formatted votes string (e.g., empty or invalid option names) may result in errors.
- Missing or invalid API credentials will prevent successful communication with the Wappfy API.
Error messages:
- Errors from the API will be returned in the node's output JSON under an error field if "Continue On Fail" is enabled.
- Typical error messages might indicate unauthorized access (check API key), resource not found (verify chat and poll IDs), or bad request (validate votes format).
Resolution tips:
- Double-check all required fields are correctly filled.
- Ensure the API key and instance name are correct and active.
- Validate that the poll message exists and is accessible in the specified chat.
- Use the exact option names as they appear in the poll when specifying votes.
Links and References
- Wappfy API Documentation (for detailed API endpoint info)
- WhatsApp Polls feature overview (official WhatsApp resources)
- n8n documentation on creating custom nodes and using credentials