Actions9
Overview
This node manages Zalo groups, specifically allowing operations such as creating groups, retrieving group info, managing members, and modifying group details. The "Remove User From Group" operation enables users to remove one or multiple members from a specified Zalo group by providing the group ID and user IDs.
Practical scenarios include:
- Moderators or group admins automating member management by removing inactive or unwanted users.
- Integrations where group membership needs to be dynamically updated based on external events or criteria.
- Batch removal of multiple users from a group in one operation.
Properties
| Name | Meaning |
|---|---|
| ID Nhóm (groupId) | The unique identifier of the Zalo group from which users will be removed. |
| ID Người Dùng (nếu nhiều người dùng vui lòng phân cách bằng dấu phẩy) (userIds) | One or more user IDs to remove from the group, separated by commas if multiple users. |
Output
The output JSON contains the response from the Zalo API after attempting to remove the specified users from the group. It typically includes status information about the removal operation.
Example structure:
{
"response": {
// API-specific details about the removal result
}
}
No binary data is output by this operation.
Dependencies
- Requires an API key credential for Zalo with appropriate permissions to manage groups.
- Uses the
zca-jslibrary internally to interact with the Zalo API. - Requires valid authentication cookies, device IMEI, and user agent strings either from credentials or input data.
- Must be configured with a valid Zalo API credential in n8n.
Troubleshooting
Common issues:
- Invalid or expired authentication credentials may cause failures in connecting to the Zalo API.
- Incorrect group ID or user IDs can lead to errors or no changes applied.
- Network connectivity problems can interrupt API calls.
Error messages:
"No API instance found. Please make sure to provide valid credentials."— Indicates missing or invalid authentication; verify your API credentials.- Errors returned from the Zalo API (e.g., user not found in group) will be passed through; check that user IDs are correct and belong to the specified group.
To resolve errors, ensure all required parameters are correctly set, credentials are valid, and the users exist in the target group.
Links and References
- Zalo Official API Documentation
- n8n Documentation on Credentials
- zca-js GitHub Repository (for underlying API client)