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 poll data 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 an API key credential with cookie, IMEI, and user agent information.
  • The node uses the external zca-js library 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.
    • Missing required parameters (like poll ID) will throw validation errors.
  • 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 API key setup.
    • Errors related to the poll ID parameter usually indicate it was not provided or is invalid.
    • If the node throws errors during execution, enabling "Continue On Fail" allows processing subsequent items without stopping the workflow.

Links and References

Discussion