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 associated with the authenticated user.

Common scenarios:

  • Automating group management tasks in Zalo for marketing or community engagement.
  • Synchronizing group data from Zalo into other systems.
  • Monitoring group membership or metadata changes programmatically.

Practical example:

  • Use this node to fetch all your Zalo groups and then process or export their details to a CRM or database for further analysis.

Properties

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

Note: Although the "Giới Hạn" property is defined, the current implementation of the "getAllGroups" operation does not appear to use this limit parameter directly in the code.

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 group object includes detailed information about a Zalo group 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.
  • The node uses the zca-js library internally to interact with Zalo services.
  • Credentials must include valid cookie, IMEI, and user agent values for authentication.
  • Proper configuration of these credentials in n8n is necessary for successful API calls.

Troubleshooting

  • No API instance found error: This occurs if the provided credentials are invalid or incomplete. Ensure that the API key credential includes valid cookie, IMEI, and user agent information.
  • Empty response or no groups returned: Verify that the authenticated user actually has groups in Zalo and that the API credentials have sufficient permissions.
  • Network or API errors: Check internet connectivity and Zalo API service status.
  • Limit parameter ignored: Although a limit input exists, it may not restrict the number of groups returned by the API. Consider filtering results downstream if needed.

Links and References

Discussion