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 beneficial include:
- Fetching poll results or details for reporting or analysis.
- Integrating poll data into workflows that automate communication or decision-making processes.
- Monitoring poll status or responses programmatically.
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 display in other systems.
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 the detailed poll information returned from the Zalo API. This includes all data related to the poll such as questions, options, votes, and metadata.poll_id: The ID of the poll that was requested.
No binary data output is produced by this operation.
Example output JSON snippet:
{
"success": true,
"response": {
/* Detailed poll data from Zalo API */
},
"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 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.
- Missing required parameters like the 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. Verify your API key and credential setup.- Errors related to parameter handling or API calls will be thrown as node operation errors with descriptive messages.
- If the node is set to continue on fail, errors will be included in the output JSON under an
errorfield for each failed item.
Links and References
- Zalo Official Developer Documentation (for API details)
- n8n Documentation (for general node usage and credential setup)