Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node enables managing Zalo groups through various operations such as creating a group, retrieving group information, adding or removing members, changing group details, and posting notes within groups. It is particularly useful for automating group management tasks on the Zalo platform, which is a popular messaging app in Vietnam.

A common scenario would be automatically creating a new group with specified members or updating group membership without manual intervention. For example, a marketing team could use this node to create customer support groups dynamically based on incoming data or to maintain up-to-date member lists.

Specifically, the "Tạo Nhóm" (Create Group) operation allows users to create a new Zalo group by specifying the group's name and a list of user IDs to include 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 attempting to create the group. This typically includes details about the newly created group such as its ID and other metadata returned by the API.

Example output structure:

{
  "json": {
    // Response object from the 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 platform.
  • Uses the zca-js library 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 before using this node.

Troubleshooting

  • Invalid Credentials: If the node throws an error indicating no API instance found, verify that the provided API credentials are correct and contain 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 ensure the account has permission to create groups.
  • 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