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 in 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 or analyze member activity.
- Retrieving admin and current member lists to manage permissions or send targeted messages.
- Monitoring changes in group membership over time.
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 on the number of members returned). |
Output
The output JSON object 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 within the group.currentMems: An array representing the current members of the group.updateMems: An array representing updated members (likely recently changed or added).totalMember: The total number of members in the group.
This structure allows users to access not only the basic member list but also administrative and membership update details.
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 Zalo API credentials with cookie, IMEI, and user agent information for 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 or permission restrictions can cause errors.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Means the node could not authenticate with Zalo API. Check that the API key credential is correctly configured and valid.- Errors related to invalid group ID or insufficient permissions typically come from the API response and should be verified by checking the group ID and user permissions.
Links and References
- Zalo Official API Documentation
- n8n Documentation (for custom node development)