Actions16
Overview
This node interacts with Zalo Group functionalities, specifically managing and retrieving information about groups on the Zalo platform. The selected operation "Lấy Danh Sách Thành Viên" (Get Group Members) fetches a list of members belonging to a specified Zalo group.
Common scenarios where this node is beneficial include:
- Retrieving member lists for group management or analytics.
- Synchronizing group membership data with other systems.
- Monitoring group composition or roles such as admins and current members.
Practical example:
- You want to get up to 50 members from a specific Zalo group to send targeted notifications or analyze group activity.
Properties
| Name | Meaning |
|---|---|
| ID Nhóm | The unique identifier (ID) 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 contains detailed information about the group's members and related metadata:
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 (likely active or present members).updateMems: An array possibly representing recently updated members or changes in membership.totalMember: The total count of members in the group.
This structured output allows downstream nodes or workflows to process member lists, identify admins, or track membership changes.
Dependencies
- Requires an API key credential to authenticate with the Zalo platform.
- Uses stored credentials including cookie, IMEI, and user agent strings for API login.
- Depends on the external
zca-jslibrary for interacting with Zalo's API. - Proper configuration of the Zalo API credential in n8n is necessary before use.
Troubleshooting
- No API instance found: This error indicates invalid or missing credentials. Ensure that the API key credential is correctly configured and valid.
- Empty or incomplete member lists: Verify that the provided group ID is correct and that the authenticated user has permission to access the group.
- Limit parameter issues: If the limit is set too high or negative, the node might return fewer results or throw errors. Use reasonable limits.
- Network or API errors: Check network connectivity and Zalo API status if requests fail unexpectedly.
- Continue On Fail behavior: If enabled, errors per item will be returned as JSON error messages instead of stopping execution.
Links and References
- Zalo Official Developer Documentation
- n8n Documentation - Creating Custom Nodes
- zca-js GitHub Repository (for the underlying Zalo API client used)