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 user membership needs to be synchronized with external systems.
  • Batch removal of multiple users from a group in one execution.

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 (nếu nhiều người dùng vui lòng phân cách bằng dấu phẩy) (userIds) One or more user IDs to remove from the group, separated by commas if multiple.

Output

The output JSON contains the response from the Zalo API after attempting to remove the specified users from the group. It typically includes success confirmation or error details related to the removal operation.

Example output structure:

{
  "response": {
    // API-specific response data confirming removal status
  }
}

If the operation fails for any item and "Continue On Fail" is enabled, the output for that item will contain an error message:

{
  "error": "Error message describing what went wrong"
}

No binary data output is produced by this operation.

Dependencies

  • Requires valid Zalo API credentials including authentication tokens such as cookies, device IMEI, and user agent strings.
  • The node depends on the zca-js library to interact with the Zalo API.
  • Proper configuration of the Zalo API credential in n8n is necessary to authenticate requests.

Troubleshooting

  • Common issues:

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

    • "No API instance found. Please make sure to provide valid credentials."
      Means the node could not authenticate with Zalo API. Verify your API credentials and ensure they are correctly configured.
    • Errors returned from the API about invalid group or user IDs indicate that the provided IDs do not exist or the authenticated user lacks permission. Double-check the IDs and permissions.
    • If multiple user IDs are provided, ensure they are comma-separated without extra spaces or invalid characters.
  • Enabling "Continue On Fail" allows the node to process all items even if some fail, returning error details per failed item.

Links and References

Discussion