Actions9
Overview
This node manages Zalo groups by interacting with the Zalo API. It supports various group-related operations such as creating groups, retrieving group information, managing members and admins, changing group details, and more. The specific operation "Lấy Danh Sách Thành Viên" (Get Group Members) fetches a list of members in a specified Zalo group, including details about admins, current members, updated members, and total member count.
Practical scenarios include:
- Retrieving member lists for moderation or analytics.
- Synchronizing group membership data with other systems.
- Managing group membership dynamically based on external triggers.
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 retrieve (limit). |
Output
The output JSON object 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 within the group.currentMems: An array representing current members (context-specific meaning).updateMems: An array representing members who have been recently updated or changed.totalMember: The total number of members in the group.
This structured output allows users to access detailed membership information for further processing or decision-making.
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 information for successful API calls.
Troubleshooting
- Invalid Credentials: If authentication fails, ensure that the provided API key credential includes valid cookie, IMEI, and user agent values.
- No API instance found: This error indicates missing or invalid credentials; verify credential setup.
- Limit Exceeds Available Members: Specifying a limit higher than the actual number of members will simply return all available members without error.
- Network or API Errors: These may occur due to connectivity issues or changes in the Zalo API; check network status and update credentials if necessary.
- Continue On Fail: If enabled, errors for individual items will be captured in the output instead of stopping execution.
Links and References
- Zalo Official API Documentation
- n8n Documentation on Creating Custom Nodes
- zca-js GitHub Repository (for internal API client used)