Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node manages Zalo groups by interacting with the Zalo API. It supports various group-related operations such as creating groups, retrieving group information, managing members and deputies, changing group avatars or names, and listing all groups.

A common use case is automating group management tasks in Zalo for marketing, community management, or customer support purposes. For example, you can automatically fetch all your Zalo groups to synchronize them with another system or add users to a group based on external triggers.

Specifically, the "Lấy Tất Cả Nhóm" (Get All Groups) operation retrieves all groups associated with the authenticated Zalo account.

Properties

Name Meaning
Giới Hạn (limit) The maximum number of groups to retrieve. This limits how many groups are fetched when listing group members or similar operations. Default is 50.

Note: For the "Lấy Tất Cả Nhóm" operation, the Giới Hạn property is defined but not used directly in the code snippet for limiting the number of groups returned.

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:

{
  "response": [
    {
      "groupId": "12345",
      "name": "Group Name",
      "membersCount": 100,
      ...
    },
    ...
  ]
}

No binary data output is produced by this node.

Dependencies

  • Requires valid Zalo API credentials including an API key credential that provides cookie, IMEI, and user agent information.
  • Uses the external zca-js library to interact with the Zalo API.
  • Requires proper configuration of the Zalo API credential in n8n to authenticate requests.

Troubleshooting

  • No API instance found: This error occurs if the node cannot create a valid API client instance, usually due to missing or invalid credentials. Ensure the Zalo API credential is correctly configured with valid cookie, IMEI, and user agent values.
  • API request failures: Network issues or invalid parameters may cause errors. Verify connectivity and parameter correctness.
  • Empty or incomplete group list: If the response does not include expected groups, check that the authenticated account has access to those groups and that the API credentials have sufficient permissions.

Links and References

Discussion