Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node allows users to manage groups on the Zalo platform, specifically focusing on creating new groups under the "Group" resource with the "Tạo Nhóm" (Create Group) operation. It is useful for automating group creation workflows where you need to programmatically set up a group and add members by their user IDs.

Practical examples include:

  • Automatically creating a discussion group for a project team and adding all relevant members.
  • Setting up customer support groups dynamically based on incoming requests.
  • Organizing event or community groups by batch-adding participants.

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 user IDs to be added to the group upon creation.

Output

The output JSON contains the response from the Zalo API after attempting to create the group. It includes details about the newly created group such as its ID, name, and members. Each item in the output corresponds to an input item processed.

Binary data output is not used in this operation.

Example output structure (simplified):

{
  "json": {
    "id": "group_id",
    "name": "Tên Nhóm",
    "members": ["userId1", "userId2", "..."]
  },
  "pairedItem": {
    "item": 0
  }
}

Dependencies

  • Requires an API key credential for authenticating with the Zalo platform.
  • Uses a Zalo API client internally that requires cookie, IMEI, and user agent information extracted from credentials.
  • No additional external dependencies beyond the Zalo API and n8n's credential management.

Troubleshooting

  • Common issues:

    • Invalid or missing API authentication credentials will cause failures.
    • Incorrectly formatted user ID lists (e.g., missing commas) may result in errors or incomplete member addition.
    • Network or API rate limiting issues can cause request failures.
  • Error messages:

    • Errors thrown by the node typically include the original error message from the Zalo API.
    • If the node is configured to continue on failure, errors are returned in the output JSON under an error field.
    • To resolve errors, verify API credentials, ensure correct formatting of inputs, and check network connectivity.

Links and References

Discussion