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 details, and listing all groups.

The "Lấy Tất Cả Nhóm" (Get All Groups) operation specifically retrieves a list of all Zalo groups associated with the authenticated user. This is useful for scenarios where you want to display or process all groups without specifying each group individually.

Practical examples:

  • Fetching all groups to synchronize them with another system.
  • Displaying a list of groups in a dashboard.
  • Automating batch operations on multiple groups.

Properties

Name Meaning
Giới Hạn Maximum number of groups to retrieve (limit). Default is 50.

Note: The provided property "Giới Hạn" (limit) is defined but not explicitly used in the "getAllGroups" operation in the source code. It might be intended for future use or filtering after retrieval.

Output

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

{
  "response": [ /* array of group objects */ ]
}
  • response: An array containing all the groups retrieved from the Zalo API. Each element represents a group with its details as returned by the API.

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential to authenticate with the Zalo API.
  • Uses the zca-js library to interact with Zalo services.
  • Requires valid credentials including cookie, IMEI, and user agent strings for authentication.
  • The node expects these credentials to be configured in n8n under a generic API key credential.

Troubleshooting

  • No API instance found: This error occurs if the node cannot create a valid API client instance, likely due to missing or invalid credentials. Ensure that the API key credential is correctly set up with valid cookie, IMEI, and user agent values.
  • API call failures: Network issues or invalid parameters can cause errors when calling Zalo API methods. Verify network connectivity and parameter correctness.
  • Empty response: If no groups are returned, confirm that the authenticated user actually has groups and that the credentials have sufficient permissions.

Links and References

Discussion