Actions3
Overview
This node integrates with the Zalo Poll service, allowing users to manage and retrieve information about polls created on the Zalo platform. Specifically, the "Poll" resource with the operation "Lấy thông tin bình chọn" (Get poll information) fetches detailed data about a specific poll by its ID.
Common scenarios for this node include:
- Retrieving poll results or details for reporting or analysis.
- Monitoring poll status or responses in real-time.
- Integrating poll data into workflows for automated decision-making or notifications.
Practical example:
- A marketing team uses this node to automatically fetch poll results from a Zalo group poll and then sends summarized reports via email or stores them in a database.
Properties
| Name | Meaning |
|---|---|
| ID bình chọn (poll_id) | The unique numeric identifier of the poll whose information you want to retrieve. This is a required field. |
Output
The node outputs JSON data containing the detailed information of the requested poll. The output structure includes:
success: A boolean indicating if the request was successful.response: An object containing the full details of the poll as returned by the Zalo API. This typically includes poll question, options, votes, status, and other metadata.poll_id: The ID of the poll that was queried.
No binary data output is involved in this operation.
Example output JSON snippet:
{
"success": true,
"response": {
"question": "Your poll question here",
"options": [
{"optionId": 1, "text": "Option 1", "votes": 10},
{"optionId": 2, "text": "Option 2", "votes": 5}
],
"status": "active",
"createdTime": 1680000000,
...
},
"poll_id": 123456
}
Dependencies
- Requires an active connection to the Zalo API using valid credentials (an API key or token).
- The node expects proper authentication cookies, user agent strings, and device identifiers to be configured either through credentials or input data.
- The node depends on an internal Zalo API client library to communicate with the Zalo service.
Troubleshooting
Common issues:
- Invalid or missing poll ID: Ensure the poll ID is provided and is a valid number.
- Authentication errors: Verify that the API credentials are correctly set up and have not expired.
- Network or API downtime: Check internet connectivity and Zalo API status.
Error messages:
"Zalo API not initialized": Indicates failure to establish a connection with the Zalo API. Resolve by checking credentials and network access."Missing poll options"or"Poll options cannot be empty": Occurs if poll creation parameters are incomplete (not relevant for getPoll but may appear if mixing operations).- NodeOperationError with message
"Zalo API not initialized": Means the internal API client failed to initialize; verify credentials and input data.
Links and References
If you need further details on other operations or resources, feel free to ask!