Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node manages Zalo groups, specifically focusing on group-related operations such as creating groups, managing members, and retrieving group information. The "Lấy Danh Sách Thành Viên" (Get Group Members) operation retrieves a list of members from a specified Zalo group, including detailed profile information for each member.

Common scenarios where this node is useful include:

  • Synchronizing group member lists with external systems.
  • Monitoring group membership changes.
  • Automating group management tasks like member retrieval or updates.

For example, you can use this node to fetch up to 50 members of a particular Zalo group by providing the group's ID and the maximum number of members to retrieve.

Properties

Name Meaning
ID Nhóm The unique identifier of the Zalo group from which to retrieve members.
Giới Hạn The maximum number of group members to fetch in one execution (limit).

Output

The output JSON contains the following fields:

  • memberIds: An array of member IDs retrieved from the group, limited by the specified number.
  • profiles: An object containing detailed profile information for each member ID.
  • totalMembers: The total number of members returned in this response.
  • limit: The limit value used for fetching members.
  • groupInfo: Detailed information about the group itself, including metadata.

This structure allows downstream nodes or workflows to process both the list of member IDs and their associated profile details conveniently.

Dependencies

  • Requires an API key credential to authenticate with the Zalo platform.
  • Uses the zca-js library internally to interact with Zalo's API.
  • Requires valid cookie, IMEI, and user agent values either from credentials or input data for authentication.
  • The node expects proper configuration of these credentials within n8n to function correctly.

Troubleshooting

  • Invalid Credentials: If the node throws an error indicating no API instance found, verify that the provided API key credential includes valid cookie, IMEI, and user agent values.
  • Empty Member List: If the group has no members or the limit is set too low, the returned member list may be empty. Adjust the limit or verify the group ID.
  • API Rate Limits or Network Issues: Errors during API calls might occur due to rate limiting or connectivity problems. Retry after some time or check network settings.
  • Incorrect Group ID: Providing an invalid or non-existent group ID will result in errors or empty responses. Double-check the group ID parameter.

Links and References

Discussion