Actions16
Overview
This node interacts with Zalo's Poll feature within groups. Specifically, the "Lấy thông tin bình chọn" (Get poll information) operation retrieves detailed information about a specific poll by its ID. This is useful for scenarios where you want to programmatically access poll results or details in a Zalo group, such as monitoring poll outcomes, integrating poll data into reports, or triggering workflows based on poll status.
Practical example:
- Automatically fetch poll details after a poll ends to analyze voting patterns.
- Use poll information to notify group members of results via other communication channels.
Properties
| Name | Meaning |
|---|---|
| ID bình chọn | The numeric ID of the poll to retrieve information for. This is required to specify which poll's details to fetch. |
Output
The output JSON contains the following fields:
success: A boolean indicating if the request was successful (true).response: An object containing detailed information about the poll retrieved from Zalo's API.poll_id: The ID of the poll that was requested.
The exact structure of response depends on Zalo's API response for poll details and typically includes question, options, votes, expiration time, and other metadata related to the poll.
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential to authenticate with Zalo's API.
- The node uses a third-party library to interact with Zalo's services.
- Proper configuration of credentials including cookie, device IMEI, and user agent is necessary for successful API calls.
Troubleshooting
Common issues:
- Invalid or missing poll ID will cause errors.
- Expired or invalid credentials may result in authentication failures.
- Network or API downtime can cause request failures.
Error messages:
"Zalo API not initialized": Indicates missing or invalid credentials; ensure the API key and related authentication info are correctly set.- Errors related to poll ID usually mean the provided ID does not exist or is malformed; verify the poll ID input.
- If the node throws an error about no API instance found, check that credentials are properly configured and valid.
Links and References
- Zalo Official API Documentation (for detailed API specs and poll-related endpoints)
- n8n documentation on creating custom nodes