Actions3
Poll → Lấy thông tin bình chọn
AI-generatedOverview
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 to display in dashboards or reports.
- Automating workflows that depend on poll data from Zalo.
- Integrating Zalo poll data with other systems or services.
For example, a user can input a poll ID to retrieve the current status, options, votes, and other metadata of that poll.
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 if the API call was successful.response: The detailed poll information returned from the Zalo API. This includes all relevant poll data such as question, options, votes, status, etc.poll_id: The ID of the poll that was queried.
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 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.
- Network connectivity problems can prevent API calls from succeeding.
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 the poll ID parameter usually indicate it was missing or invalid. Ensure the poll ID is provided and is a number.
- If the node throws errors but
continueOnFailis enabled, it will output the error message in the JSON undererror.
Links and References
- Zalo Official Developer Documentation (for more details on poll API endpoints)
- n8n Documentation (for general usage of custom nodes and credentials)