Actions13
Overview
This node manages Zalo groups, specifically allowing interaction with group members and other group-related functions. The "Lấy Danh Sách Thành Viên" (Get Group Members) operation retrieves a list of members from a specified Zalo group, including details about admins, current members, updated members, and the total number of members.
Common scenarios for this node include:
- Fetching member lists to monitor or manage group participation.
- Integrating group member data into workflows for notifications or analytics.
- Automating group management tasks such as auditing membership or syncing with other systems.
Example: You want to get up to 50 members of a specific Zalo group to send them a custom message or analyze their 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 the following fields:
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 not explicitly defined but likely user IDs).updateMems: An array representing members who have been recently updated or changed.totalMember: The total count of members in the group.
This structure provides comprehensive information about group membership status and composition.
Dependencies
- Requires an API key credential to authenticate with the Zalo API.
- Uses stored cookie, IMEI, and user agent values from credentials or input data for authentication.
- Depends on the external
zca-jslibrary for interacting with the Zalo API.
Troubleshooting
- No API instance found: This error occurs if the node cannot initialize the Zalo API client due to missing or invalid credentials. Ensure that valid API credentials with necessary cookies and device info are provided.
- Invalid group ID or limit: Providing an incorrect group ID or an invalid limit may result in empty or error responses. Verify the group ID exists and the limit is a positive number.
- Network or API errors: Temporary network issues or API rate limits might cause failures. Retrying or checking API quota can help.
- If the node is set to continue on fail, errors will be returned in the output JSON under an
errorfield instead of stopping execution.
Links and References
- Zalo Official API Documentation
- n8n Documentation
- zca-js GitHub Repository (for the Zalo API client library)