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 modifying group settings. Specifically, the "Thêm Phó Nhóm" (Add Group Deputy) operation allows you to add a deputy (co-admin) to an existing Zalo group.
Practical scenarios where this node is useful include:
- Automating group administration tasks in Zalo.
- Adding deputies to groups to delegate management responsibilities.
- Integrating Zalo group management into broader workflows for team collaboration or community management.
Example: Automatically add a user as a deputy to a specific Zalo group when triggered by an external event.
Properties
| Name | Meaning |
|---|---|
| ID Nhóm | The unique identifier of the Zalo group to which you want to add a deputy. |
| ID Người Dùng | The unique identifier of the user who will be added as a deputy to 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 JSON:
{
"status": "Thành công",
"response": { /* API response object */ }
}
No binary data output is produced by this operation.
Dependencies
- Requires a valid Zalo API credential with authentication details including cookie, IMEI, and user agent.
- Uses the
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 login failure.
- Incorrect group ID or user ID can lead to API errors.
- Network connectivity problems might prevent API calls.
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 correct and active.- Errors returned from the Zalo API during the add deputy call will be passed through. Review the error message for details such as invalid IDs or permission issues.
Resolution tips:
- Verify that the group ID and user ID exist and are correct.
- Ensure the API key/credential has sufficient permissions.
- Use the "Continue on Fail" option if you want the workflow to proceed despite individual item failures.
Links and References
- Zalo Official API Documentation
- n8n Documentation
- zca-js GitHub Repository (for the underlying Zalo API client used)