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 fetching all groups.

The specific operation "Lấy Tất Cả Nhóm" (Get All Groups) retrieves a list of all Zalo groups accessible to 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 display in a dashboard.
  • Synchronizing group data with an external system.
  • Automating reports or notifications based on group membership.

Properties

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

Note: Although the property "Giới Hạn" (limit) is defined, the current implementation of the "getAllGroups" operation does not appear to use this limit parameter directly when calling the API. The full list of groups is fetched.

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 associated details as returned by the API.

No binary data output is produced by this operation.

Dependencies

  • Requires valid Zalo API credentials including cookie, IMEI, and user agent information.
  • Uses an external Zalo API client library (zca-js) to interact with the Zalo service.
  • The node expects these credentials to be configured in n8n under a generic API key credential type for authentication.

Troubleshooting

  • No API instance found error: This occurs if the node cannot create a valid API client instance due to missing or invalid credentials. Ensure that the Zalo API credentials are correctly set up and contain valid cookie, IMEI, and user agent values.
  • API call failures: Network issues or invalid parameters may cause errors during API calls. Check connectivity and verify input parameters.
  • Limit property ignored: The "Giới Hạn" (limit) property might not affect the number of groups returned by the "getAllGroups" operation if the underlying API does not support limiting results. Consider filtering results downstream if needed.

Links and References

Discussion