Zalo Group icon

Zalo Group

Quản lý nhóm Zalo

Overview

This node manages Zalo groups, specifically allowing operations such as creating groups, retrieving group info, managing members, and updating group details. The "Add User to Group" operation lets you add one or multiple users to an existing Zalo group by specifying the group ID and a list of user IDs.

Practical scenarios include:

  • Automating the addition of new members to a team or community group on Zalo.
  • Managing group membership dynamically based on external triggers or workflows.
  • Integrating Zalo group management into broader communication or CRM automation.

Example: Automatically add newly registered users to a specific Zalo group for onboarding announcements.

Properties

Name Meaning
ID Nhóm (groupId) The unique identifier of the Zalo group where users will be added.
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) Comma-separated list of user IDs to add to the specified group.

Output

The output JSON contains the response from the Zalo API after attempting to add users to the group. It typically includes information about the success or failure of the operation and any relevant data returned by the API.

Example output structure:

{
  "json": {
    // Response object from the addUserToGroup API call
  },
  "pairedItem": {
    "item": 0
  }
}

No binary data is produced by this operation.

Dependencies

  • Requires valid Zalo API credentials with appropriate permissions to manage groups.
  • The node uses an API client initialized with cookie, IMEI, and user agent values extracted from credentials or input data.
  • Proper configuration of the Zalo API credential in n8n is necessary to authenticate requests.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials may cause authentication failures.
    • Incorrect group ID or user IDs can lead to errors or no changes in group membership.
    • Network or API rate limits might cause request failures.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials." — Indicates missing or invalid credentials; verify your API key/token and credential setup.
    • Errors related to invalid parameters usually indicate wrong group or user IDs; double-check these inputs.
    • If the node fails but "Continue On Fail" is enabled, error details are included in the output JSON for each failed item.

Links and References

Discussion