Actions10
Overview
This node manages Zalo groups, specifically allowing you to add users to a Zalo group in this context. It connects to the Zalo API using provided credentials and performs operations such as adding one or multiple users to a specified group.
A common use case is automating group membership management in Zalo for marketing, community engagement, or team collaboration purposes. For example, when new members join an organization, this node can automatically add their Zalo IDs to a relevant group without manual intervention.
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 group. Multiple users can be added at once. |
Output
The output JSON contains the response from the Zalo API after attempting to add the specified users to the group. This typically includes details about the operation's success or failure and any relevant metadata returned by the API.
Example structure:
{
"response": {
// API-specific response data confirming addition of users
}
}
No binary data output is produced by this operation.
Dependencies
- Requires valid Zalo API credentials including cookie, IMEI, and user agent information.
- Uses the
zca-jslibrary to interact with the Zalo API. - The node expects these credentials to be configured in n8n beforehand.
- Network access to Zalo's API endpoints is necessary.
Troubleshooting
- Invalid Credentials: If the node throws an error about missing or invalid API instance, verify that the Zalo API credentials are correctly set up and have not expired.
- Incorrect Group ID or User IDs: Ensure the group ID and user IDs are accurate and correspond to existing entities in Zalo.
- API Rate Limits or Restrictions: Adding many users at once might hit API limits; consider batching requests if errors occur.
- Error Messages: Errors from the API are caught and returned as part of the output if "Continue On Fail" is enabled; otherwise, they stop execution. Check the error message for clues on what went wrong.
Links and References
- Zalo Official API Documentation
- n8n Documentation on Creating Custom Nodes
- zca-js GitHub Repository (for the underlying Zalo API client used)