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 creating 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 using Zalo groups, you can automate adding trusted members as deputies to help moderate and manage the group efficiently.
Properties
| Name | Meaning |
|---|---|
| ID Nhóm | The unique identifier of the Zalo group where the deputy will be added. |
| 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 success of the operation, e.g.,"Thành công"(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.
- The node uses the external
zca-jslibrary to interact with the Zalo API. - Proper configuration of the Zalo API credential in n8n is necessary to authenticate requests.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause authentication failures.
- Incorrect group ID or user ID values will result in errors from the Zalo API.
- Network connectivity problems can prevent successful API calls.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Means the node could not authenticate with the provided credentials. Verify your API key and related parameters.- Errors returned from the Zalo API (e.g., user not found, insufficient permissions) will be thrown and can be caught if "Continue On Fail" is enabled.
Resolution tips:
- Double-check the group and user IDs are correct and exist.
- Ensure the API credentials are up-to-date and have the required permissions.
- Enable "Continue On Fail" to handle errors gracefully during batch processing.
Links and References
- Zalo Official API Documentation (for detailed API capabilities and parameters)
- n8n Documentation (for general usage of custom nodes and credentials)