Actions9
Overview
This node manages Zalo groups, allowing users to perform various group-related operations such as creating a new group, retrieving group information, managing members, and updating group details. It is particularly useful for automating group management tasks on the Zalo platform, such as setting up new groups with specific members or modifying existing groups without manual intervention.
A practical example is using this node to create a new Zalo group by specifying the group name and member IDs, which can streamline onboarding processes or community management workflows.
Properties
| Name | Meaning |
|---|---|
| Tên Nhóm (groupName) | The name of the new group to be created. |
| Danh Sách ID Thành Viên (userIds) | A comma-separated list of member IDs to be added to the group upon creation. |
Output
The output JSON structure after creating a group contains the response from the Zalo API's createGroup method. This typically includes details about the newly created group such as its ID, name, and member list.
Example output JSON snippet:
{
"json": {
"id": "123456789",
"name": "My New Group",
"members": ["user1", "user2", "user3"]
},
"pairedItem": {
"item": 0
}
}
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential to authenticate with the Zalo platform.
- Uses the
zca-jslibrary internally to interact with the Zalo API. - The node expects valid credentials including cookie, IMEI, and user agent strings either from the credential or input data.
- Proper configuration of the Zalo API credential in n8n is necessary for successful execution.
Troubleshooting
- Invalid Credentials: If the node throws an error indicating no API instance found, verify that the provided API authentication token and related credentials are correct and active.
- Malformed User IDs: Ensure the user IDs are correctly formatted as a comma-separated string without extra spaces or invalid characters.
- API Rate Limits or Permissions: The Zalo API may restrict certain actions based on permissions or rate limits; check your API usage and permissions if requests fail.
- Continue On Fail: If enabled, the node will continue processing other items even if one fails, returning error messages in the output JSON for failed items.
Links and References
- Zalo Official API Documentation
- n8n Documentation on Creating Custom Nodes
- zca-js GitHub Repository (for underlying Zalo API client)