Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node interacts with Zalo's Poll feature within Zalo Groups. Specifically, the "Lấy thông tin bình chọn" (Get poll information) operation retrieves detailed information about a specific poll by its ID. This is useful for scenarios where you want to programmatically access poll results or metadata in a Zalo group, such as monitoring poll status, analyzing votes, or integrating poll data into other workflows.

Practical examples:

  • Automatically fetching poll details after a poll ends to analyze voting patterns.
  • Integrating poll results into reports or dashboards.
  • Triggering follow-up actions based on poll outcomes.

Properties

Name Meaning
ID bình chọn (poll_id) The numeric ID of the poll to retrieve information for. This is required to specify which poll's details to fetch.

Output

The output JSON contains the following structure:

  • success: A boolean indicating if the request was successful (true).
  • response: An object containing detailed information about the poll retrieved from Zalo's API. This includes all poll metadata and results as provided by the API.
  • poll_id: The ID of the poll that was requested.

Example output JSON structure:

{
  "success": true,
  "response": {
    /* Detailed poll information object from Zalo API */
  },
  "poll_id": 123456
}

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to Zalo's API via an API key credential (referred to generically as "Zalo Credential").
  • The node uses authentication cookies, device IMEI, and user agent strings internally to authenticate requests.
  • Proper configuration of these credentials in n8n is necessary for the node to function.

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.
    • Network connectivity issues can prevent communication with Zalo's API.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node could not initialize the API client due to missing or invalid credentials. Solution: Verify and reconfigure your Zalo API credentials.
    • Errors related to poll retrieval usually indicate invalid poll IDs or permission issues. Double-check the poll ID and ensure the authenticated user has access rights.
    • If the node throws errors about processing options or parameters, verify that the input properties are correctly set and formatted.

Links and References

Discussion