Actions10
Overview
This node manages Zalo groups by interacting with the Zalo API. Specifically, for the "Group" resource and the "Lấy Danh Sách Thành Viên" (Get Group Members) operation, 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 activity.
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:
members: An array of member IDs limited by the specified "Giới Hạn".admins: An array of admin user IDs in 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 structure allows downstream nodes or processes to access both member and admin details along with metadata about membership status.
Dependencies
- Requires valid Zalo API credentials including an API key credential that provides cookie, IMEI, and user agent information.
- The node uses the
zca-jslibrary internally to interact with the Zalo API. - Proper configuration of the Zalo API credential in n8n is necessary for authentication.
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.
- Empty Member List: If the returned member list is empty, ensure the group ID is correct and that the authenticated user has permission to view the group members.
- Limit Exceeded: Setting a very high "Giới Hạn" value may cause performance issues or API rate limits; try reducing the limit if errors occur.
- API Errors: Any API-related errors will be surfaced as node execution errors unless "Continue On Fail" is enabled, in which case error details will be included in the output JSON.
Links and References
- Zalo Official API Documentation
- n8n Documentation on Credentials
- zca-js GitHub Repository (for the underlying Zalo API client library)