Actions9
Overview
This node manages Zalo groups by interacting with the Zalo API. It allows users to create new groups, retrieve group information, add or remove members, change group names or avatars, and list all groups. This is useful for automating group management tasks in Zalo, such as setting up new discussion groups with specific members or updating group details programmatically.
A practical example is creating a new Zalo group with a specified name and a list of member IDs, which can be used to quickly organize team chats or customer support groups without manual intervention.
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 (nếu nhiều người dùng vui lòng phân cách bằng dấu phẩy) (userIds) | A comma-separated list of member IDs to be added to the group upon creation. |
Output
The output JSON contains the response from the Zalo API after attempting to create a group. It typically includes details about the newly created group such as its ID, name, and members.
Example output structure:
{
"id": "string",
"name": "string",
"members": ["string", "string", "..."]
}
If an error occurs during execution, the output will contain an error field with the error message.
Dependencies
- Requires a valid Zalo API credential including authentication cookie, device IMEI, and user agent.
- Uses the external
zca-jslibrary to interact with the Zalo API. - The node expects these credentials to be configured properly in n8n before use.
Troubleshooting
- Invalid Credentials: If the node throws an error indicating no API instance found, verify that the Zalo API credentials are correctly set and valid.
- Malformed User IDs: Ensure the user IDs are provided as a comma-separated string without extra spaces or invalid characters.
- API Errors: Any errors returned by the Zalo API will be surfaced in the node output under the
errorfield if "Continue on Fail" is enabled; otherwise, they will cause the node to fail. - Network Issues: Connectivity problems may cause timeouts or failures; ensure stable internet access.