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 "Thêm Phó Nhóm" (Add Group Deputy) operation specifically adds a user as a deputy (co-admin) to an existing Zalo group.
Practical scenarios include:
- Automating group management tasks in Zalo for community managers or businesses.
- Adding trusted users as deputies to help moderate or manage group activities.
- Integrating Zalo group management into broader workflows, e.g., syncing group membership with other systems.
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 to be added as a deputy in the group. |
Output
The output JSON contains:
status
: A string indicating the success of the operation, typically"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 output by this operation.
Dependencies
- Requires valid Zalo API credentials including cookie, device IMEI, and user agent strings.
- The node uses an external Zalo API client library (
zca-js
) to perform API calls. - Credentials must be configured in n8n with appropriate API authentication tokens.
Troubleshooting
Common issues:
- Invalid or expired credentials may cause login failure or API errors.
- Incorrect group ID or user ID can result in failed requests or no changes.
- Network connectivity problems can interrupt API communication.
Error messages:
"No API instance found. Please make sure to provide valid credentials."
indicates missing or invalid credentials.- API error messages returned in the
error
field ifcontinueOnFail
is enabled; otherwise, the node execution stops with an error.
Resolutions:
- Verify and refresh API credentials.
- Double-check group and user IDs for correctness.
- Ensure stable internet connection.
- Enable "Continue On Fail" to handle partial failures gracefully.
Links and References
- Zalo Official API Documentation
- n8n Documentation on Credentials
- zca-js GitHub Repository (Zalo Client API library used)