Actions10
Overview
This node manages Zalo groups, specifically allowing users to remove one or more members from a specified group. It is useful in scenarios where group administrators need to maintain or moderate group membership by removing inactive or unwanted participants.
Practical example:
- An admin wants to remove several users who are spamming or no longer relevant to the group discussion. By providing the group ID and the user IDs to remove, this node facilitates batch removal efficiently.
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 operation's success or failure and any relevant details returned by the API.
Example output structure:
{
"response": {
// API-specific response data confirming removal or detailing errors
}
}
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for authenticating with the Zalo platform.
- The node depends on the
zca-jslibrary to interact with the Zalo API. - Proper configuration of credentials including cookie, IMEI, and user agent 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 connectivity problems might prevent communication with the Zalo API.
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 contains valid authentication data.- Errors related to invalid parameters usually indicate incorrect group or user IDs; double-check these values.
- If the node throws errors but you want to continue processing other items, enable the "Continue On Fail" option.
Links and References
- Zalo Official Developer Documentation (for API reference and authentication details)
- n8n Documentation (for general usage of custom nodes and credentials setup)