Zalo Poll icon

Zalo Poll

Tạo và quản lý bình chọn Zalo - Hỗ trợ nhiều lựa chọn, ẩn danh và thiết lập thời hạn

Overview

This node integrates with the Zalo Poll service, allowing users to manage polls within Zalo groups. Specifically, the "Khóa bình chọn" (Lock Poll) operation locks an existing poll, preventing further votes or changes. This is useful when a poll has reached its deadline or when the poll creator wants to finalize the results.

Common scenarios include:

  • Automatically locking polls after a certain time period.
  • Manually locking polls before announcing results.
  • Managing poll lifecycle programmatically in workflows.

Example: After collecting votes for a group decision, use this node to lock the poll so no more votes can be added.

Properties

Name Meaning
ID bình chọn The numeric ID of the poll to lock

Output

The node outputs JSON data with the following structure:

{
  "success": true,
  "response": { /* API response object from Zalo */ },
  "poll_id": 123456
}
  • success: Boolean indicating if the lock operation succeeded.
  • response: The raw response from the Zalo API confirming the poll was locked.
  • poll_id: The ID of the poll that was locked.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for authenticating with the Zalo API.
  • The node uses a Zalo API client internally, which requires valid cookie, IMEI, and user agent values for authentication.
  • Proper configuration of these credentials in n8n is necessary for the node to function.

Troubleshooting

  • Common issues:

    • Invalid or expired API credentials will cause authentication failures.
    • Providing a non-existent poll ID will result in errors from the Zalo API.
    • Network connectivity problems may prevent communication with the Zalo service.
  • Error messages:

    • "Zalo API not initialized": Indicates missing or invalid credentials; verify your API key and related settings.
    • "Poll ID is required" or similar validation errors: Ensure the poll ID input is provided and is a valid number.
    • Other API errors are passed through; check the error message for details.
  • Resolution tips:

    • Double-check the poll ID value.
    • Refresh or re-enter API credentials.
    • Confirm network access to Zalo's API endpoints.

Links and References

Discussion