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 chat 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 (userIds) Comma-separated list of member IDs to include in 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, members, and other metadata returned by the API.

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 "No API instance found," ensure that the provided Zalo API credentials are correct and contain valid cookie, IMEI, and user agent values.
  • Malformed User IDs: The userIds property must be a comma-separated string of valid user IDs. Incorrect formatting may cause API errors.
  • API Rate Limits or Permissions: Operations might fail if the authenticated user lacks permissions or if API rate limits are exceeded.
  • Continue on Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error messages in the output JSON.

Links and References

Discussion