Actions10
Overview
This node manages Zalo groups by interacting with the Zalo API. It supports various group-related operations such as creating groups, retrieving group information, managing members and deputies, changing group details, and posting notes within groups.
The specific operation "Thêm Phó Nhóm" (Add Group Deputy) allows you to add a user as a deputy (co-admin) of a specified Zalo group. This is useful for delegating group management responsibilities without transferring full ownership.
Practical example:
If you run a community or team chat on Zalo and want to assign trusted members as deputies to help moderate or manage the group, this operation lets you programmatically add those deputies by specifying their user IDs and the target group ID.
Properties
| Name | Meaning |
|---|---|
| ID Nhóm | The unique identifier of the Zalo group where you want to add a deputy. |
| ID Người Dùng | The unique identifier of the user who will be added as a deputy in the specified group. |
Output
The output JSON contains:
status: A string indicating the result of the operation, e.g.,"Thành công"meaning "Success".response: The raw response from the Zalo API after attempting to add the deputy user.
Example output structure:
{
"status": "Thành công",
"response": { /* API response object */ }
}
No binary data is produced by this operation.
Dependencies
- Requires valid Zalo API credentials including an API key credential that provides cookie, IMEI, and user agent information.
- Uses the external
zca-jslibrary to interact with the Zalo API. - The node expects these credentials to be configured properly in n8n before execution.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause authentication failures.
- Incorrect group ID or user ID can lead to errors or no effect.
- Network connectivity problems might prevent API calls from succeeding.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Means the node could not authenticate with Zalo API. Check your API credentials and ensure they are correctly set.- Errors thrown during the API call will be reported with their message. If "Continue On Fail" is enabled, the node will return the error message in the output JSON instead of stopping execution.
Resolution tips:
- Verify that the group ID and user ID exist and are correct.
- Refresh or re-enter your Zalo API credentials.
- Ensure your network connection is stable.
- Enable "Continue On Fail" to handle partial failures gracefully.
Links and References
- Zalo Official API Documentation (for understanding API capabilities and parameters)
- n8n Documentation (for general usage of custom nodes and credentials)
If you need further assistance with other operations or resources, feel free to ask!