Zalo Poll icon

Zalo Poll

Quản bình chọn Zalo

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 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 into other systems or processes.

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.

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 data about the poll such as question, options, votes, status, etc.
  • poll_id: The ID of the poll requested.

No binary data output is produced by this operation.

Dependencies

  • Requires valid Zalo API credentials including a cookie, IMEI, and user agent string to authenticate requests.
  • Uses the external zca-js library to interact with the Zalo API.
  • The node expects these credentials to be configured in n8n beforehand.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials may cause authentication failures.
    • Providing a non-existent or incorrect poll ID will likely result in an error or empty response.
    • 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. Check your credential configuration.
    • 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 Continue On Fail is enabled, it will output the error message in the JSON under error.

Links and References

Discussion