Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

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.

For example, you can use this node to:

  • Create a new Zalo group with a specified name and initial members.
  • Fetch detailed information about an existing group.
  • Add deputies or regular members to a group.
  • Change the group's avatar or rename it.
  • Retrieve lists of group members or all groups associated with the account.

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 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:

{
  "id": "123456789",
  "name": "My New Group",
  "members": ["userId1", "userId2", "..."]
}

No binary data output is produced by this operation.

Dependencies

  • Requires a valid Zalo API credential with authentication details including cookie, IMEI, and user agent.
  • Uses the external zca-js library to interact with the Zalo API.
  • The node expects these credentials to be configured properly in n8n before execution.

Troubleshooting

  • Invalid Credentials: If the node throws an error indicating no API instance found, verify that the provided Zalo API credentials are correct and include valid cookie, IMEI, and user agent values.
  • Malformed User IDs: Ensure the user IDs string is correctly formatted as a comma-separated list without extra spaces or invalid characters.
  • API Errors: Any errors returned by the Zalo API during group creation will be surfaced. Check the error message for details and confirm that the account has permission to create groups.
  • Continue on Fail: If enabled, the node will continue processing other items even if one fails, returning error details in the output JSON.

Links and References

Discussion