All Products
Search
Document Center

AI Guardrails:Customize moderation policies

Last Updated:Jul 14, 2026

Content Moderation uses a default moderation policy from Alibaba Cloud to scan your content. If you find that the default policy is too strict or too lenient for your business requirements, you can create a custom moderation policy. This topic describes how to configure a custom moderation policy.

Background

You configure moderation policies based on a business scenario (BizType), where each scenario has a set of moderation rules. If you do not create a custom policy, Content Moderation uses a default business scenario and its corresponding policy. After you create a custom business scenario, you must pass its BizType in your Content Moderation API calls to apply your custom rules.

Procedure

  1. Log on to the Content Moderation console.

  2. In the left-side navigation pane, choose Machine Moderation V1.0 > Settings.

  3. Create a business scenario.

    If you have already created a business scenario, skip this step.

    1. On the BizType Manage tab of the Machine Moderation page, click Create BizType.

    2. In the Create BizType dialog box, configure the parameters as described in the following table.

      Parameter

      Description

      BizType name

      The name of the business scenario. It can contain digits, letters, and underscores (_) and must be no more than 32 characters long.

      Industry template configuration

      A policy configuration that follows industry standards. If you use an industry template, some features of the moderation policy cannot be customized. If you do not use a template, you can configure all settings yourself.

      Industry Category

      The industry to which your business belongs. Specifying an industry helps improve the accuracy of the policy configuration.

      Copy from

      If you have already created a business scenario, you can import its configuration.

      Description

      A description of the business scenario. It can contain Chinese characters, English letters, digits, and underscores (_) and must be no more than 32 characters long.

    3. Click OK to create the business scenario.

  4. Configure the business scenario.

    You can configure the Moderation Policy and Audit Data.

    • Moderation Policy

      The moderation policies vary based on the detection scenarios. The options displayed in the console are definitive.

      1. On the Machine Moderation page, find the target business scenario and click Edit in the Actions column.

      2. Select the moderation policy that you want to set based on your requirements.

        You can set moderation policies for images, videos, text, and audio. For images and videos, the policies cover pornography, terrorism-related content, undesirable scenes, and text embedded in images. For text and audio, moderation policies cover content related to pornography, politics, abuse, advertising, and prohibited content.

        If a specific detection scenario is not relevant to your business, you do not need to configure a policy for it. For example, if you do not need to scan for advertisements, do not configure ad-related settings in the moderation policy.

        Note

        When you set the moderation policy for images, you can use the Apply Libraries and Associated Text Library options on the right to link configurations from your risk libraries.

      3. Click Save to finish customizing the moderation policy.

        When you call an API, you must pass the corresponding business scenario for the custom moderation policy to take effect. For example, when you scan images for pornographic content (for more information, see synchronous scan), you must set the request parameter scene to porn.

    • Audit Data

      1. Click Audit Data.

      2. On the Audit Data tab, select which data types to send for human review.

        For more information about human review, see human review.