Actions10
Overview
This node manages Zalo groups, specifically allowing operations such as creating groups, retrieving group info, managing members, and modifying group details. The "Remove User From Group" operation enables users to remove one or multiple members from a specified Zalo group by their user IDs.
Practical scenarios include:
- Moderating group membership by removing inactive or unwanted members.
- Automating group management workflows where member lists need regular updates.
- Integrating with other systems to synchronize group membership dynamically.
Example: Removing several users from a group after an event ends to keep the group relevant.
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 more 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. It typically includes status information about the removal operation, such as success confirmation or error details.
Example output structure:
{
"response": {
// API-specific response data confirming removal or detailing errors
}
}
No binary data is output by this operation.
Dependencies
- Requires a valid Zalo API credential with appropriate permissions to manage groups.
- The node uses the
zca-jslibrary internally to interact with the Zalo API. - Proper configuration of credentials including cookie, IMEI, and user agent is necessary for authentication.
Troubleshooting
Common issues:
- Invalid or expired credentials leading to authentication failures.
- 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 set up and not expired.- Errors returned from the Zalo API in the response may indicate invalid parameters or permission issues. Check the group ID and user IDs for correctness.
- If the node fails on some items but continues on others, enable "Continue On Fail" to handle partial failures gracefully.
Links and References
- Zalo Official Developer Documentation
- Zalo Group Management API Reference
- n8n Documentation (for custom node development)