Actions9
Overview
This node manages Zalo groups, specifically allowing users to perform various group-related operations such as creating groups, retrieving group information, managing members, and updating group details. The "Add User To Group" operation enables adding one or multiple users to an existing Zalo group by specifying the group ID and a list of user IDs.
Practical scenarios include:
- Automating the addition of new members to a team or community group on Zalo.
- Managing group membership dynamically based on external triggers or workflows.
- Integrating Zalo group management into broader communication or CRM automation processes.
Properties
| Name | Meaning |
|---|---|
| ID Nhóm (groupId) | The unique identifier of the Zalo group where users will be added. |
| Danh Sách ID Thành Viên (userIds) | A comma-separated list of user IDs to add to the specified group. |
Output
The output JSON contains the response from the Zalo API after attempting to add the specified users to the group. This typically includes confirmation details about the operation's success or any relevant data returned by the API regarding the updated group membership.
Example output structure:
{
"json": {
// API response confirming users were added to the group
},
"pairedItem": {
"item": 0
}
}
No binary data is produced by this operation.
Dependencies
- Requires valid Zalo API credentials including authentication tokens such as cookies, device IMEI, and user agent strings.
- The node depends on the
zca-jslibrary for interacting 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 IDs can lead to errors or no changes in group membership.
- Network or API rate limits might cause request failures.
Error messages:
"No API instance found. Please make sure to provide valid credentials."indicates missing or invalid authentication details.- Errors returned from the Zalo API are passed through; these often relate to invalid parameters or permission issues.
Resolutions:
- Verify that the Zalo API credentials are correctly set up and not expired.
- Double-check the group ID and user IDs for correctness.
- Ensure network connectivity and respect any API usage limits.
Links and References
- Zalo Official Developer Documentation
- n8n Documentation on Credentials
- zca-js GitHub Repository (for the underlying Zalo API client)