Actions3
Overview
This node integrates with the Zalo Poll service, allowing users to manage polls within the Zalo platform. Specifically, for the "Poll" resource and the "Lấy thông tin bình chọn" (Get poll information) operation, it retrieves detailed information about a specific poll by its ID.
Common scenarios where this node is useful include:
- Fetching poll results or details for reporting or analysis.
- Integrating poll data into workflows that require dynamic decision-making based on poll outcomes.
- Automating monitoring of poll statuses or responses in Zalo groups.
For example, a user can input a poll ID to retrieve all relevant information about that poll, such as questions, options, votes, and status, enabling further processing or notifications.
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 node outputs an array of items, each containing a json object with the following structure:
success: A boolean indicating whether the API call was successful.response: An object containing detailed information about the poll retrieved from Zalo. This includes poll questions, options, votes, expiration, and other metadata.poll_id: The ID of the poll requested.
No binary data output is produced by this operation.
Dependencies
- Requires valid Zalo API credentials including an API key credential with cookie, IMEI, and user agent information.
- The node depends on the external
zca-jslibrary to interact with the Zalo API. - Proper configuration of the Zalo API credentials in n8n is necessary for authentication and authorization.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause authentication failures.
- Providing an incorrect or non-existent poll ID will result in errors or empty responses.
- Network connectivity problems can prevent communication with the Zalo API.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Resolution: Verify that the Zalo API credentials are correctly set up and valid.- Errors related to poll retrieval typically indicate invalid poll IDs or permission issues. Ensure the poll ID exists and the authenticated user has access rights.
- If the node throws errors during execution, enabling "Continue On Fail" can help process subsequent items without stopping the workflow.
Links and References
- Zalo Official Developer Documentation (for general API reference)
- n8n Documentation (for configuring credentials and using custom nodes)