Actions10
Overview
This node manages Zalo groups, specifically allowing users to perform various group-related operations via the Zalo API. The "Remove User From Group" operation enables removing one or multiple users from a specified Zalo group by their user IDs.
Common scenarios where this node is useful include:
- Moderating group membership by removing inactive or unwanted members.
- Automating group management tasks in workflows that integrate with Zalo.
- Maintaining up-to-date group member lists in business or community groups.
For example, you can use this node to automatically remove users who have left your service from your Zalo group, ensuring only active members remain.
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 more user IDs to remove from the group. Multiple IDs should be separated by commas. |
Output
The output JSON contains the response from the Zalo API after attempting to remove the specified users from the group. It typically includes details about the success or failure of the removal operation.
Example output structure:
{
"success": true,
"removedUserIds": ["userId1", "userId2"],
"message": "Users removed successfully"
}
(Note: The exact fields depend on the Zalo API response.)
No binary data is output by this operation.
Dependencies
- Requires valid Zalo API credentials including an API key credential with cookie, IMEI, and user agent information.
- The node depends on the external
zca-js
library for interacting with the Zalo API. - Proper configuration of the Zalo API credential in n8n is necessary to authenticate requests.
Troubleshooting
- Invalid Credentials: If the node throws an error indicating no API instance found, verify that the Zalo API credentials are correctly configured and valid.
- Incorrect Group or User IDs: Ensure that the group ID and user IDs provided exist and are correct; otherwise, the API may return errors or fail silently.
- Multiple User IDs Format: When specifying multiple user IDs, separate them strictly by commas without extra spaces to avoid parsing issues.
- API Rate Limits or Permissions: If removal fails, check if the authenticated user has sufficient permissions to remove members from the group and that API rate limits are not exceeded.
Links and References
- Zalo Official API Documentation
- n8n Documentation - Creating Custom Nodes
- zca-js GitHub Repository (for the underlying Zalo API client used)