Actions10
Overview
This node manages Zalo groups, specifically allowing you to remove one or more users from a specified group. It is useful in scenarios where group membership needs to be updated dynamically, such as moderating group participants, managing team members, or automating user removals based on external triggers.
For example, if you have an automated workflow that detects inactive users or users who no longer meet certain criteria, this node can remove those users from the Zalo group automatically.
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 multiple 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. This typically includes status information about the removal operation.
Example structure:
{
"status": "success",
"details": { /* additional info returned by the API */ }
}
If the operation fails, the output may contain an error message describing the issue.
Dependencies
- Requires a valid Zalo API credential with appropriate permissions to manage groups.
- The node uses an API client initialized with authentication details such as cookie, IMEI, and user agent extracted from credentials or input data.
- No additional external services beyond the Zalo API are required.
Troubleshooting
Common issues:
- Invalid or expired credentials leading to authentication failure.
- Incorrect group ID or user IDs causing the API to reject the request.
- Network connectivity problems preventing communication with the Zalo API.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Resolution: Verify that the API credentials are correctly configured and valid.- Errors related to invalid parameters usually indicate incorrect group or user IDs; double-check these values.
- If the node throws errors for individual items but continues (when "Continue On Fail" is enabled), check the error messages in the output for specific causes.
Links and References
- Zalo Official API Documentation (for detailed API capabilities and requirements)
- n8n Documentation on Creating Custom Nodes