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 triggers.
- Maintaining group hygiene in large communities by programmatically managing member lists.
Example: Removing several users from a group after an event ends, by specifying the group ID and a comma-separated list of user IDs to remove.
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) | Comma-separated list of user IDs representing the members to be removed from the group. |
Output
The output JSON contains the response from the Zalo API after attempting to remove the specified users from the group. This typically includes status information about the removal operation.
Example output structure:
{
"response": {
// API-specific response data confirming removal or detailing errors
}
}
No binary data is output by this operation.
Dependencies
- Requires a valid Zalo API credential with authentication details including cookie, IMEI, and user agent.
- Uses the external
zca-jslibrary to interact with the Zalo API. - The node expects these credentials to be configured properly in n8n for successful API communication.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause authentication failures.
- Incorrect group ID or user IDs can lead to errors or no changes.
- Network or API rate limits might interrupt the operation.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Means the node could not authenticate with Zalo API. Check that the API key/credential is correctly set up and valid.- Errors related to invalid parameters usually indicate wrong group or user IDs; verify these values.
- If the node throws errors but "Continue On Fail" is 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 the underlying Zalo API client used)