Actions10
Overview
This node manages Zalo groups by interacting with the Zalo platform's group-related features. Specifically, for the "Lấy Danh Sách Thành Viên" (Get Group Members) operation under the "Group" resource, it retrieves a list of members from a specified Zalo group.
Common scenarios where this node is useful include:
- Fetching current members of a Zalo group for monitoring or reporting.
- Integrating group member data into other workflows or systems.
- Automating group management tasks based on member lists.
For example, you might use this node to get up-to-date member information before sending targeted messages or analyzing group participation.
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 (limit). |
Output
The output JSON contains detailed information about the group's members and related metadata:
members: An array of member IDs limited by the specified "Giới Hạn".admins: An array of admin user IDs within the group.currentMems: A list representing current members (details depend on API response).updateMems: A list representing updated members (details depend on API response).totalMember: The total number of members in the group.
This structured output allows downstream nodes or processes to access comprehensive membership data for further processing.
Dependencies
- Requires valid Zalo API credentials including an API key credential that provides cookie, IMEI, and user agent information.
- The node uses an external Zalo SDK/library (
zca-js) to interact with the Zalo platform. - Proper configuration of the Zalo API credential in n8n is necessary to authenticate requests.
Troubleshooting
- Invalid Credentials: If the node throws an error indicating no API instance found, verify that the provided Zalo API credentials are correct and contain valid cookie, IMEI, and user agent values.
- Group Not Found or Access Denied: Errors may occur if the specified group ID does not exist or the authenticated user lacks permission. Double-check the group ID and ensure the account has access rights.
- Limit Exceeds Available Members: Specifying a limit higher than the actual number of members will simply return all available members without error.
- Network or API Issues: Temporary failures communicating with the Zalo API can cause errors; retrying after some time or checking network connectivity may help.