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 want to maintain control over group membership by removing inactive, unwanted, or inappropriate members.
Practical examples:
- Removing multiple users who violated group rules.
- Cleaning up a group by removing inactive members.
- Managing group membership dynamically based on external criteria.
Properties
Name | Meaning |
---|---|
ID Nhóm | 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) | 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. This typically includes status information about the removal operation, such as success confirmation or details about any errors encountered.
Example output structure:
{
"status": "success",
"details": { /* additional response data from Zalo API */ }
}
If the operation fails and "Continue On Fail" is enabled, the output will contain an error message for the respective item.
Dependencies
- Requires a valid Zalo API credential with appropriate permissions to manage groups.
- The node uses the
zca-js
library 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 Zalo API credentials are correctly set and have not expired.- Errors related to invalid parameters usually indicate incorrect group or user IDs; double-check these values.
- If the node throws errors but "Continue On Fail" is enabled, errors will appear in the output JSON under the
error
field for each failed item.