Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node manages Zalo groups, specifically allowing interaction with group members and group details. 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 those members.

Common scenarios where this node is useful include:

  • Extracting member lists for communication or analysis.
  • Managing group membership by viewing current participants.
  • Integrating group member data into other workflows or systems.

For example, you can use this node to fetch up to 50 members of a particular Zalo group to send targeted messages or to audit group membership.

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 retrieve (limit).

Output

The output JSON contains the following fields:

  • memberIds: An array of member IDs (strings) limited by the specified "Giới Hạn".
  • profiles: An object containing detailed profile information for each member ID retrieved.
  • totalMembers: The total number of members returned in this response.
  • limit: The limit value used for the number of members requested.
  • groupInfo: Detailed information about the group itself as retrieved from the API.

This structure allows downstream nodes to access both the raw member IDs and rich profile data for further processing.

Dependencies

  • Requires an API key credential to authenticate with the Zalo API.
  • Uses stored cookie, IMEI, and user agent values for session management.
  • Depends on the external zca-js library for interacting with the Zalo API.
  • The node expects valid credentials configured in n8n to establish a session.

Troubleshooting

  • Invalid Credentials or Session: If the node cannot create an API instance, it will throw an error indicating no API instance was found. Ensure that the provided API key credential includes valid cookie, IMEI, and user agent data.
  • Empty Member List: If the group has no members or the limit is set too low, the returned member list may be empty. Verify the group ID and increase the limit if necessary.
  • API Rate Limits or Network Issues: Failures during API calls may occur due to rate limits or connectivity problems. Use the "Continue On Fail" option to handle such errors gracefully.
  • Incorrect Group ID: Providing an invalid or non-existent group ID will result in errors or empty responses. Double-check the group ID input.

Links and References

Discussion