Actions10
Overview
This node manages Zalo groups, specifically allowing operations such as creating groups, retrieving group information, managing members, and updating group details. The "Lấy Danh Sách Thành Viên" (Get Group Members) operation fetches a list of members from a specified Zalo group, including admins and other member categories, with an option to limit the number of members returned.
Practical scenarios include:
- Retrieving current members of a Zalo group for monitoring or reporting.
- Managing group membership by fetching member lists before adding or removing users.
- Integrating group member data into workflows for notifications or analytics.
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 members to retrieve from the group. |
Output
The output JSON contains the following fields:
members: An array of member IDs representing the group's members, limited by the specified "Giới Hạn".admins: An array of admin user IDs within the group, also limited by the "Giới Hạn".currentMems: An array representing current members in some specific category or state, limited similarly.updateMems: An array representing members who have updated status or membership recently, limited similarly.totalMember: The total count of members in the group.
This structured output allows downstream nodes or processes to handle detailed group membership data effectively.
Dependencies
- Requires valid Zalo API credentials including an API key credential that provides cookie, IMEI, and user agent information.
- Uses the external
zca-jslibrary to interact with the Zalo API. - Node configuration must include these credentials to authenticate API requests.
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 Lists: If the returned member arrays are empty, ensure the group ID is correct and that the authenticated user has permission to access the group's member list.
- Limit Parameter Issues: Setting the "Giới Hạn" too high may cause performance issues or API rate limits; try reducing this value if errors occur.
- API Errors: Network or API errors will be surfaced as node errors. Enabling "Continue On Fail" can help process multiple items even if some fail.
Links and References
- Zalo Official API Documentation
- n8n Documentation on Creating Custom Nodes
- zca-js GitHub Repository (for the underlying Zalo API client used)