Actions9
Overview
This node manages Zalo groups by interacting with the Zalo API. 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. This is useful for scenarios where you need to monitor or process group membership data, such as syncing group members with another system, auditing group composition, or managing group roles.
Practical examples:
- Fetching up to 50 members of a specific Zalo group to display in a dashboard.
- Retrieving current admins and total member count for reporting purposes.
- Using the member list to send targeted messages or notifications outside of Zalo.
Properties
| Name | Meaning |
|---|---|
| ID Nhóm | The unique identifier of the Zalo group whose members you want to retrieve. |
| Giới Hạn | The maximum number of group members to fetch (limit). |
Output
The output JSON object contains the following fields:
members: An array of member IDs limited by the specified "Giới Hạn" value.admins: An array of admin user IDs within 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.
This structure provides comprehensive information about group membership, including both regular members and administrators.
Dependencies
- Requires an API key credential to authenticate with the Zalo API.
- Uses the
zca-jslibrary internally to interact with Zalo services. - Node configuration must include valid credentials containing cookie, IMEI, and user agent details for successful authentication.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause authentication failures.
- Providing an incorrect group ID will result in empty or error responses.
- Exceeding API rate limits could lead to temporary blocking or errors.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Means the node failed to authenticate; verify that the API key credential is correctly configured and valid.- Errors related to invalid group ID or permissions typically come from the API response; ensure the group ID exists and the authenticated user has access rights.
Links and References
- Zalo Official API Documentation
- n8n Documentation (for custom node development)