Mtai Zalo Group icon

Mtai 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.

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

{
  "json": {
    "id": "string",          // Group ID assigned by Zalo
    "name": "string",        // Name of the created group
    "members": ["string"]    // Array of member IDs included in the group
  },
  "pairedItem": {
    "item": 0                // Index of the input item this output corresponds to
  }
}

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 zca-js library is used internally to interact with the Zalo API.

Troubleshooting

  • Invalid Credentials: If the node throws an error indicating no API instance found, verify that the provided API authentication token and related credentials (cookie, IMEI, user agent) are valid and not expired.
  • Malformed User IDs: Ensure the list of user IDs is correctly formatted as a comma-separated string without extra spaces or invalid characters.
  • API Rate Limits or Permissions: If the API returns errors related to permissions or rate limits, check your Zalo account's API access rights and usage quotas.
  • Continue on Fail: If enabled, the node will continue processing subsequent items even if one fails, returning error messages in the output JSON under the error field.

Links and References

Discussion