Actions10
Overview
This node manages Zalo groups, specifically allowing operations such as creating groups, retrieving group info, managing members, and updating group details. The "Add User to Group" operation lets you add one or multiple users to an existing Zalo group by specifying the group ID and a list of user IDs.
Practical scenarios include automating group membership management in Zalo for community managers, marketing teams, or customer support groups. For example, when new users sign up on a platform, this node can automatically add them to relevant Zalo groups for communication.
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 users to the group. It typically includes details about the operation's success or failure per user added. The exact structure depends on the underlying API response but generally confirms which users were successfully added.
No binary data is output by this operation.
Example output structure:
{
"someApiResponseField": "...",
"addedUserIds": ["user1", "user2"],
"status": "success"
}
Dependencies
- Requires valid Zalo API credentials including authentication cookies, device IMEI, and user agent strings.
- The node uses an external Zalo API client library (
zca-js) to interact with Zalo services. - Credentials must be configured in n8n with appropriate API keys or tokens to authenticate requests.
Troubleshooting
Common issues:
- Invalid or expired credentials causing authentication failures.
- Incorrect group ID or user IDs leading to errors or no changes.
- Network connectivity problems affecting 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 that credentials are correctly set and valid.- Errors related to invalid parameters usually indicate wrong group or user IDs; verify these values.
- If the node fails but
continueOnFailis enabled, error details will appear in the output JSON undererror.