Actions9
Overview
This node allows you to manage Zalo groups by performing various operations on them. Specifically, the "Xóa Thành Viên Khỏi Nhóm" (Remove User(s) From Group) operation enables you to remove one or multiple users from a specified Zalo group. This is useful for automating group management tasks such as moderating membership, cleaning up inactive members, or enforcing group policies.
Practical examples:
- Automatically removing users who violate group rules.
- Cleaning up a group by removing users who have left an organization.
- Managing membership dynamically based on external triggers or workflows.
Properties
| Name | Meaning |
|---|---|
| ID Nhóm | 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) | The user ID(s) to remove from the group. Multiple IDs can be provided separated by commas. |
Output
The output is an array of JSON objects, each corresponding to an input item processed. For the "Remove User(s) From Group" operation, the json field contains the response from the Zalo API after attempting to remove the specified user(s) from the group.
The structure typically looks like:
{
"json": {
// Response data from the Zalo API about the removal operation
},
"pairedItem": {
"item": <index_of_input_item>
}
}
No binary data output is produced by this node.
Dependencies
- Requires valid credentials with access to the Zalo API, including authentication tokens such as cookies, IMEI, and user agent strings.
- The node uses an internal Zalo API client class to interact with the Zalo service.
- Proper configuration of these credentials in n8n is necessary for successful API calls.
Troubleshooting
Common issues:
- Invalid or expired credentials leading to authentication failures.
- Incorrect group ID or user IDs causing API errors.
- Network connectivity problems preventing communication with the Zalo API.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Means the node could not initialize the API client due to missing or invalid credentials. Verify your credential setup.- Errors returned from the Zalo API are passed through in the output's
errorfield when "Continue On Fail" is enabled. - If the node throws an error and stops execution, check the item index mentioned in the error for problematic input data.
Resolution tips:
- Double-check that the group ID and user IDs are correct and exist.
- Ensure your API credentials are up-to-date and have the required permissions.
- Enable "Continue On Fail" to handle partial failures gracefully.
Links and References
- Zalo Official API Documentation (for detailed API capabilities and requirements)
- n8n Documentation on Credentials (to configure API keys and tokens)
- n8n Community Forums and Support for troubleshooting custom nodes and integrations