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 want to maintain control over group membership by removing inactive, unwanted, or inappropriate members.
Practical examples include:
- Removing users who have violated group rules.
- Cleaning up group membership by removing inactive participants.
- Managing group size limits by removing excess members.
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 (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 and any relevant details returned by the API.
Example structure (simplified):
{
"status": "success",
"details": { /* API response details */ }
}
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for authenticating with the Zalo platform.
- Uses the
zca-jslibrary internally to interact with the Zalo API. - Requires valid cookie, IMEI, and user agent information either from credentials or input data for authentication.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause authentication failures.
- Incorrect group ID or user IDs can result in errors or no changes.
- Network connectivity problems can prevent API calls from succeeding.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Means the node could not authenticate with Zalo. Verify that the API key credential is correctly configured and valid.- Errors related to invalid parameters usually indicate wrong or missing group/user IDs. Double-check the input values.
- If the node throws errors on specific items but continues on others, enable "Continue On Fail" to handle partial failures gracefully.
Links and References
- Zalo Official Developer Documentation
- n8n Documentation on Credentials
- zca-js GitHub Repository (for underlying API client)