Zalo Group

Quản lý nhóm Zalo

Overview

This node integrates with the Zalo platform to manage Zalo groups. Specifically, for the "Group" resource and the "Lấy Tất Cả Nhóm" (Get All Groups) operation, it retrieves all Zalo groups associated with the authenticated user. This is useful for scenarios where you want to list or process all groups a user belongs to, such as syncing group data, monitoring group activity, or automating group-related workflows.

Practical examples:

  • Automatically fetching all groups to display in a dashboard.
  • Syncing group information into a CRM or database.
  • Triggering actions based on group membership changes.

Properties

Name Meaning
Giới Hạn Max number of results to return

Note: Although the provided property "Giới Hạn" (limit) exists in the input properties JSON, the bundled code for the "getAllGroups" operation does not explicitly use this limit parameter. It fetches all groups without limiting the count. The limit property might be relevant for other operations like fetching group members.

Output

The output JSON structure for the "Lấy Tất Cả Nhóm" operation contains:

  • response: An array or object representing all groups retrieved from the Zalo API.

Example output structure:

{
  "response": [
    {
      "groupId": "string",
      "groupName": "string",
      "otherGroupDetails": "..."
    },
    ...
  ]
}

The exact fields inside each group depend on the Zalo API response but generally include identifiers and metadata about each group.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential to authenticate with the Zalo platform.
  • Uses the zca-js library to interact with the Zalo API.
  • Requires valid authentication cookies, IMEI, and user agent strings either from credentials or input data.
  • Must configure the node with proper Zalo API credentials including cookie, IMEI, and user agent values.

Troubleshooting

  • No API instance found: This error indicates missing or invalid credentials. Ensure that the Zalo API credential is correctly configured with valid cookie, IMEI, and user agent values.
  • API call failures: Network issues or expired authentication tokens can cause errors. Refresh credentials or check network connectivity.
  • Empty response: If no groups are returned, verify that the authenticated user actually belongs to any groups.
  • Limit property ignored: For the "getAllGroups" operation, the limit property does not affect the result. Use it only with operations that support limiting results.

Links and References

Discussion