Actions10
Overview
This node manages Zalo groups by interacting with the Zalo platform's group-related features. 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 from a specified Zalo group.
Common scenarios where this node is useful include:
- Fetching current members of a Zalo group for monitoring or reporting.
- Integrating group member data into other workflows or systems.
- Automating group management tasks based on member lists.
For example, you might use this node to get up-to-date member information before sending targeted messages or analyzing group 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 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: A list representing current members (details depend on API response).updateMems: A list representing updated members (details depend on API response).totalMember: The total number of members in the group.
This structured output allows downstream nodes or processes to access comprehensive membership data for further processing.
Dependencies
- Requires valid Zalo API credentials including an API key credential that provides cookie, IMEI, and user agent information.
- The node uses an external Zalo SDK/library (
zca-js) to interact with the Zalo platform. - Proper configuration of these credentials in n8n is necessary for successful API communication.
Troubleshooting
- Invalid Credentials: If the node throws an error indicating no API instance found, verify that the provided credentials (cookie, IMEI, user agent) are correct and active.
- Group Not Found or Access Denied: Ensure the group ID is valid and that the authenticated user has permission to access the group's member list.
- Limit Exceeds Available Members: Setting the limit higher than the actual number of members will simply return all available members without error.
- Network or API Errors: Temporary network issues or API rate limits may cause failures; retrying after some time or checking API usage quotas can help.
- Continue On Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error details in the output JSON.
Links and References
- Zalo Official Developer Documentation
- n8n Documentation on Creating Custom Nodes
- Zalo SDK (zca-js) GitHub Repository (for reference on API methods used)