Actions16
Overview
This node integrates with the Zalo platform to manage polls within Zalo groups. Specifically, the "Poll" resource with the "Khóa bình chọn" (Lock Poll) operation allows users to lock a poll by its ID, preventing further voting or changes. This is useful in scenarios where a poll has reached its deadline or when the poll creator wants to finalize the results.
Practical examples include:
- Automatically locking a poll after a certain time period.
- Locking a poll once a decision has been made based on the votes.
- Preventing additional votes to ensure fairness in group decisions.
Properties
| Name | Meaning |
|---|---|
| ID bình chọn | The numeric ID of the poll to be locked. This identifies which poll will be locked. |
Output
The output JSON contains the following fields:
success: A boolean indicating whether the lock operation was successful (true).response: The raw response from the Zalo API regarding the lock operation. This typically includes confirmation details.poll_id: The ID of the poll that was locked.
Example output JSON structure:
{
"success": true,
"response": { /* API response object */ },
"poll_id": 123456
}
The node does not output binary data.
Dependencies
- Requires an API key credential for authenticating with the Zalo API.
- The node uses stored credentials including cookie, IMEI, and user agent strings to establish a session with Zalo.
- Proper configuration of these credentials in n8n is necessary for the node to function.
Troubleshooting
Common issues:
- Invalid or expired credentials can cause authentication failures.
- Providing an incorrect or non-existent poll ID will result in errors from the Zalo API.
- Network connectivity problems may prevent communication with the Zalo service.
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 related credential settings.- Errors related to poll ID usually indicate that the poll does not exist or the ID is malformed. Double-check the poll ID input.
- If the node throws errors about processing options or parameters, ensure all required inputs are provided and correctly formatted.
Resolution tips:
- Re-authenticate or update the stored credentials if authentication fails.
- Confirm the poll ID exists and is correct.
- Check network access and firewall settings to allow connections to Zalo's API endpoints.
Links and References
- Zalo Official Developer Documentation (for API details)
- n8n documentation on Credentials and Creating Custom Nodes