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 new group and add members by their user IDs.

Practical examples include:

  • Automatically creating a discussion group for a project team and adding all team members.
  • Setting up customer support groups dynamically based on incoming requests.
  • Organizing event participants into groups without manual intervention.

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 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. This typically includes details about the newly created group such as its ID, name, and the list of members added.

Example structure of the output JSON might look like:

{
  "groupId": "string",
  "name": "string",
  "members": ["userId1", "userId2", "..."]
}

No binary data output is produced by this node.

Dependencies

  • Requires an API key credential for authenticating with the Zalo platform.
  • The node internally uses a helper class that manages cookies, device identifiers (IMEI), and user agent strings to interact with the Zalo API.
  • Proper configuration of these credentials and environment variables in n8n is necessary for successful execution.

Troubleshooting

  • Common issues:

    • Invalid or expired API authentication token may cause authorization failures.
    • Incorrectly formatted user ID list (e.g., missing commas) can lead to errors when adding members.
    • Network connectivity problems may prevent communication with the Zalo API.
  • Error messages:

    • Errors related to authentication usually indicate issues with the provided API key or session cookie; re-authenticate or update credentials.
    • If the node throws an error about missing parameters, ensure that both the group name and user IDs are provided and correctly formatted.
    • Unexpected API responses or timeouts suggest checking network status or API availability.

Links and References

Discussion