Actions9
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 more.
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:
You have a Zalo group for your project team and want to assign a trusted member as a deputy to help moderate discussions and manage members. Using this node operation, you provide the group ID and the user ID of the member to promote them to deputy status.
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 result of the operation, typically"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 an active connection to the Zalo API via an API key credential.
- The node uses stored credentials including cookie, IMEI, and user agent strings to authenticate requests.
- The underlying implementation depends on the external
zca-jslibrary to interact with the Zalo API.
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 can prevent API calls from succeeding.
Error messages:
- If the API instance is not found or credentials are invalid, the node throws an error prompting to check credentials.
- Errors returned from the Zalo API (e.g., user not found, insufficient permissions) are surfaced in the node's output if "Continue On Fail" is enabled.
Resolution tips:
- Verify that the provided group ID and user ID are correct and exist.
- Ensure the API credentials are valid and have necessary permissions.
- Enable "Continue On Fail" to handle partial failures 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)