Actions3
Overview
This node integrates with the Zalo Poll API, 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 beneficial include:
- Fetching poll results or details for reporting or analysis.
- Integrating Zalo poll data into automated workflows or dashboards.
- Monitoring poll status or responses programmatically.
For example, a user can input a poll ID to retrieve all relevant details about that poll, such as questions, options, votes, and status.
Properties
| Name | Meaning |
|---|---|
| ID bình chọn (poll_id) | The unique numeric identifier of the poll to retrieve information for. This property is required. |
Output
The node outputs an array of JSON objects, each containing:
success: A boolean indicating if the request was successful.response: The detailed poll information returned from the Zalo API. This includes all data related to the poll such as question, options, votes, expiration, etc.poll_id: The ID of the poll requested.
No binary data output is produced by this operation.
Example output JSON structure:
{
"success": true,
"response": {
/* Detailed poll data object */
},
"poll_id": 123456
}
Dependencies
- Requires valid Zalo API credentials including an API key credential with cookie, IMEI, and user agent information.
- The node uses the external
zca-jslibrary to interact with the Zalo API. - Proper configuration of the Zalo API credentials in n8n is necessary for authentication.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause authentication failures.
- Providing an incorrect or non-existent poll ID will likely result in errors or empty responses.
- Missing required parameters (like poll ID) will throw validation errors.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Means the node could not initialize the Zalo API client due to missing or invalid credentials. Check your API key setup.- Errors related to poll retrieval usually indicate invalid poll IDs or network/API issues.
- If the node is set to continue on fail, errors will be returned in the output JSON under the
errorfield for each failed item.
Links and References
- Zalo Official Developer Documentation (for detailed API reference)
- n8n Documentation (for general node usage and credential setup)