Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node manages Zalo groups by interacting with the Zalo API. It supports various group-related operations such as creating a new group, retrieving group information, managing members and deputies, changing group details, and posting notes within groups.

A common use case is automating group management tasks in Zalo for businesses or communities that use Zalo as a communication platform. For example, you can automatically create a group with specified members, update group names or avatars, add or remove users, and fetch detailed group member lists.

Specifically, the "Tạo Nhóm" (Create Group) operation allows you to create a new Zalo group by specifying the group's name and a list of user IDs to be added as members.

Properties

Name Meaning
Tên Nhóm 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) A comma-separated list of user IDs to be added as members of the new group.

Output

The output JSON contains the response from the Zalo API after creating the group. This typically includes details about the newly created group such as its ID, name, members, and other metadata returned by the API.

Example output structure:

{
  "json": {
    // Response object from Zalo API representing the created group
  },
  "pairedItem": {
    "item": 0
  }
}

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential to authenticate with the Zalo API.
  • The node uses stored credentials including cookie, IMEI, and user agent strings to establish a session with Zalo.
  • The external library zca-js is used internally to interact with the Zalo API.
  • Proper configuration of the Zalo API credential in n8n is necessary before using this node.

Troubleshooting

  • Invalid Credentials: If the node throws an error indicating no API instance found, verify that the provided API credentials (cookie, IMEI, user agent) are valid and have not expired.
  • Malformed User IDs: Ensure the user IDs list is correctly formatted as a comma-separated string without extra spaces or invalid characters.
  • API Rate Limits or Permissions: The Zalo API may restrict group creation or member additions based on account permissions or rate limits; check your Zalo account status if requests fail.
  • Error Handling: If the node is set to continue on failure, errors will be returned in the output JSON under an error field for each failed item.

Links and References

Discussion