Actions16
Overview
This node manages Zalo groups, specifically providing various group-related operations through the Zalo API. The "Giải Tán Nhóm" (Disperse Group) operation allows users to disband or dissolve a specified Zalo group by its ID. This is useful when a group is no longer needed and should be removed entirely.
Practical scenarios include:
- Automatically cleaning up inactive or obsolete groups.
- Managing group lifecycle in workflows that require dynamic group creation and removal.
- Administrative automation for Zalo group management within an organization.
Properties
| Name | Meaning |
|---|---|
| ID Nhóm | The unique identifier of the Zalo group to be dispersed (disbanded). |
Output
The output JSON contains:
status: A string indicating success, typically"Thành công"(meaning "Success").response: The raw response from the Zalo API confirming the group has been dispersed.
Example output structure:
{
"status": "Thành công",
"response": { /* API response object */ }
}
No binary data is output by this operation.
Dependencies
- Requires a valid Zalo API credential with authentication details including cookie, IMEI, and user agent.
- The node uses the external
zca-jslibrary to interact with the Zalo API. - Proper configuration of the Zalo API credentials in n8n is necessary for successful execution.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause login failure.
- Providing an incorrect or non-existent group ID will result in API errors.
- Network connectivity problems can prevent communication with the Zalo API.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Means the node failed to authenticate with Zalo API. Check your API credentials and ensure they are correctly configured.- Errors related to invalid group IDs usually come directly from the API response. Verify the group ID exists and is accessible by the authenticated user.
- If the node throws errors about missing parameters, ensure the required "ID Nhóm" property is provided and not empty.
Links and References
- Zalo Official API Documentation
- n8n Documentation on Credentials
- zca-js GitHub Repository (for the underlying Zalo API client used)