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 member management in Zalo groups for community or team coordination.
  • Integrating Zalo group updates into broader workflows, e.g., adding new users after registration.
  • Bulk adding users to groups without manual intervention.

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 (userIds) Comma-separated list of user IDs to add to the 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 structure (simplified):

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

No binary data output is produced by this operation.

Dependencies

  • Requires valid Zalo API credentials with appropriate permissions to manage groups.
  • The node depends on the zca-js library for interacting with the Zalo API.
  • Credentials must provide a cookie, IMEI, and user agent string for authentication.
  • Proper configuration of these credentials in n8n is necessary for successful API calls.

Troubleshooting

  • Common issues:

    • Invalid or expired credentials leading to authentication failures.
    • Incorrect group ID or user IDs causing API errors.
    • Network connectivity problems affecting API communication.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node could not authenticate with Zalo API. Verify that the API key credential is correctly set up and valid.
    • Errors related to invalid parameters usually indicate wrong or missing group/user IDs. Double-check input values.
    • If the node fails but "Continue On Fail" is enabled, error details are included in the output JSON under the error field.

Links and References

Discussion