Actions10
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 their user IDs.
Practical scenarios include:
- Moderating group membership by removing inactive or unwanted members.
- Automating group management workflows where users need to be dynamically removed based on certain conditions.
- Maintaining group hygiene in community or team chats on Zalo.
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, such as success confirmation or error details.
Example output structure:
{
"response": {
// API-specific response data confirming removal or detailing errors
}
}
No binary data is output by this operation.
Dependencies
- Requires an API key credential for authenticating with the Zalo API.
- The node depends on the
zca-jslibrary for interacting with Zalo services. - Proper configuration of credentials including cookie, IMEI, and user agent values is necessary for successful API calls.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause authentication failures.
- Incorrect group ID or user IDs can lead to errors or no changes applied.
- Network or API rate limits might interrupt the operation.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Resolution: Verify that the API key credential is correctly set up and not expired.- Errors related to invalid parameters usually indicate wrong group or user IDs; double-check these inputs.
- If the node throws errors but
continueOnFailis enabled, it will return error details per item instead of stopping execution.
Links and References
- Zalo Official API Documentation
- n8n Documentation on Credentials
- zca-js GitHub Repository (for underlying Zalo API client)