Actions9
Overview
This node manages Zalo groups, specifically allowing users to remove one or more members from a specified Zalo group. It is useful in scenarios where group administrators need to maintain or moderate group membership by removing inactive or unwanted participants.
Practical examples include:
- Removing users who violate group rules.
- Cleaning up group membership by removing inactive users.
- Managing group size by selectively removing 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. 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. This typically includes status information about the removal operation.
Example structure:
{
"response": {
// API response details confirming removal status
}
}
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for authenticating with the Zalo API.
- The node uses stored credentials including cookie, device IMEI, and user agent strings to establish a session with Zalo.
- The
zca-jslibrary is used internally to interact with the Zalo API.
Troubleshooting
- Invalid Credentials: If the node throws an error indicating no API instance found, verify that the provided API credentials (cookie, IMEI, user agent) are valid and have not expired.
- User Not Found in Group: Attempting to remove a user ID that does not exist in the group may result in an error or no change. Confirm user IDs are correct.
- Malformed User IDs: Ensure multiple user IDs are comma-separated without extra spaces or invalid characters.
- API Rate Limits: Frequent calls might hit Zalo API rate limits; consider adding delays or batching requests.
- Continue on Fail: If enabled, errors for individual items will be returned in the output JSON under an
errorfield instead of stopping execution.
Links and References
- Zalo Official API Documentation
- n8n Documentation on Creating Custom Nodes
- zca-js GitHub Repository (for internal API client library)