Actions10
Overview
This node manages Zalo groups, specifically allowing operations such as creating groups, retrieving group info, managing members, and modifying group settings. The "Thêm Phó Nhóm" (Add Group Deputy) operation adds a user as a deputy (co-admin) to a specified Zalo group. This is useful for delegating group management responsibilities without transferring full ownership.
Practical examples:
- Adding a trusted member as a deputy to help moderate a large community group.
- Assigning deputies to assist in managing event or project groups on Zalo.
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 assigned as the deputy of the 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 JSON:
{
"status": "Thành công",
"response": { /* API response object */ }
}
No binary data is produced by this operation.
Dependencies
- Requires an API key credential to authenticate with the Zalo API.
- Uses the
zca-jslibrary internally to interact with Zalo services. - Node expects valid authentication cookies, device IMEI, and user agent strings either from credentials or input data.
- Proper configuration of the Zalo API credential in n8n is necessary.
Troubleshooting
Common issues:
- Invalid or expired authentication cookie may cause login failure.
- Incorrect group ID or user ID will result in API errors.
- Network connectivity problems can prevent communication with Zalo servers.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
Means the node could not authenticate; verify your API credentials and ensure they include valid cookies and device info.- API errors returned from Zalo (e.g., user not found, insufficient permissions) will be passed through; check that the user ID and group ID are correct and that the authenticated account has rights to add deputies.
To continue processing other items even if one fails, enable "Continue On Fail" in the node settings.
Links and References
- Zalo Official Developer Documentation
- n8n Documentation on Credentials
- zca-js GitHub Repository (for internal API client used)