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 modifying group details. The "Remove User From Group" operation enables users to remove one or multiple members from a specified Zalo group by providing the group ID and user IDs.

Practical scenarios include:

  • Moderators or group admins automating member management by removing inactive or unwanted users.
  • Integrations where group membership needs to be dynamically updated based on external triggers or workflows.
  • Maintaining group hygiene in large communities by programmatically controlling membership.

Properties

Name Meaning
ID Nhóm (groupId) The unique identifier of the Zalo group from which users will be removed.
ID Người Dùng (userIds) One or more user IDs to remove from the group, separated by commas if multiple users.

Output

The output is a JSON object representing the response from the Zalo API after attempting to remove the specified users from the group. It typically contains status information about the removal operation.

Example output structure:

{
  // Response data from the removeUserFromGroup API call
}

No binary data output is produced by this operation.

Dependencies

  • Requires an API key credential for Zalo with appropriate permissions to manage groups.
  • Uses the zca-js library internally to interact with the Zalo API.
  • Requires valid authentication cookies, device IMEI, and user agent strings either from credentials or input data.
  • Must be configured with a valid Zalo API credential in n8n.

Troubleshooting

  • Common issues:

    • Invalid or expired authentication credentials may cause failures in connecting to the Zalo API.
    • Incorrect group ID or user IDs can result in errors or no changes applied.
    • Network connectivity problems can interrupt API calls.
  • Error messages:

    • "No API instance found. Please make sure to provide valid credentials."
      This indicates missing or invalid authentication details; verify your Zalo API credentials and ensure they are correctly set up.
    • Errors returned from the Zalo API during user removal will be included in the node's error output if "Continue On Fail" is enabled. Check these messages for specific causes like permission issues or invalid parameters.

Links and References

Discussion