Actions10
Overview
This node manages personal Zalo groups, allowing users to perform various group-related operations such as creating groups, retrieving group information, managing members, and updating group details. It is particularly useful for automating workflows involving group management on the Zalo platform, such as syncing member lists, moderating group membership, or updating group metadata.
The specific operation "Lấy Danh Sách Thành Viên" (Get Group Members) retrieves a list of members from a specified Zalo group, including details about members, admins, current and updated members, and total member count. This can be used to monitor group composition, audit membership, or trigger actions based on group changes.
Practical Examples
- Automatically fetch and log the list of members in a Zalo group for reporting.
- Use the member list to send targeted messages or notifications.
- Monitor admin changes or membership updates in real-time workflows.
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 return in the response (minimum value is 1). |
Output
The output JSON contains the following fields:
members: An array of member IDs limited by the specified "Giới Hạn" property.admins: An array of admin user IDs within the group.currentMems: An array representing the current members of the group.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 downstream nodes or workflows to process detailed membership data efficiently.
Dependencies
- Requires an API key credential with valid authentication to the Zalo platform.
- Uses the
zalo-api-finallibrary internally to interact with Zalo's API. - Node configuration must include valid cookie, IMEI, and user agent values either from credentials or input data to authenticate API requests.
Troubleshooting
Common Issues:
- Invalid or expired credentials may cause authentication failures.
- Providing an incorrect or non-existent group ID will result in empty or error responses.
- Exceeding the maximum allowed limit for members might cause errors or truncated results.
Error Messages:
"No API instance found. Please make sure to provide valid credentials."
Resolution: Verify that the API key credential is correctly configured and contains valid authentication data.- Errors related to network or API calls typically indicate connectivity issues or invalid parameters; check the group ID and limit values.
Links and References
- Zalo Official API Documentation
- n8n Documentation on Creating Custom Nodes
- Zalo API Final GitHub Repository (for reference on the underlying API client)