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 member lists to analyze group composition.
- Synchronizing group members with other systems.
- Monitoring group membership changes or managing group-related workflows.
For example, you can use this node to get up to 50 members of a particular Zalo group by providing the group's ID and specifying the maximum number of members to retrieve.
Properties
| Name | Meaning |
|---|---|
| ID Nhóm | The unique identifier of the Zalo group from which to fetch members. |
| Giới Hạn | The maximum number of group members to retrieve (limit). |
Output
The output JSON contains detailed information about the group 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: An array representing current members (details depend on API response).updateMems: An array representing updated members (details depend on API response).totalMember: The total number of members in the group.
Each item in the output corresponds to an input item processed, paired by index.
Dependencies
- Requires valid Zalo API credentials including authentication cookie, device IMEI, and user agent string.
- The node uses an external Zalo API client library to perform operations.
- Credentials must be configured properly in n8n to allow authenticated API calls.
Troubleshooting
- Invalid Credentials: If the node throws an error about missing or invalid API instance, 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: The "Giới Hạn" property controls how many members are fetched; setting it too high might cause performance issues or API rate limits.
- API Errors: Any API errors will be caught and can either stop execution or be returned as error messages if "Continue On Fail" is enabled.
Links and References
- Zalo Official API Documentation
- n8n Documentation on Credentials
- Zalo Group Management Concepts (hypothetical link for context)