logo
In-app Chat
SDK Error Codes
Powered Byspreading
On this page

Overview


ZEGOCLOUD In-app Chat (ZIM) supports content moderation for messages. Currently, there are two ways to meet your moderation needs:

Built-in content moderation capability

After contacting ZEGOCLOUD technical support to enable the content moderation service, you can obtain the content moderation capability without additional configuration. ZIM will return the moderation results based on the preset moderation level, and you only need to implement relevant business logic based on the results.

The following table provides to an introduction to content moderation capability:

Message TypeModeration MethodModeration ChannelModeration Tags
Text MessageModerate before sending
  • One-on-one chat
  • Group chat
  • Room
Default detection of the following content: politics, terrorism, prohibition, erotic, abuse, advertisement, privacy, advertising law violations, etc. If adjustments are needed, please contact ZEGOCLOUD technical support.
Image Message
  • Send before moderation (default)
  • Moderate before sending
To adjust the method, please contact ZEGOCLOUD technical support.
  • One-on-one chat
  • Group chat
  • Room
Default detection of the following content: politics, pornography, terrorism, QR code, advertisement, etc. Additionally, it can support identifying whether the text in the image is in violation. If adjustments are needed, please contact ZEGOCLOUD technical support.
Audio MessageModerate before sending
  • One-on-one chat
  • Group chat
Default detection of the following content: politics, pornography, terrorism, etc. Additionally, it can support identifying the following content: statesman voiceprints, advertisement, prohibition, abuse, etc. If adjustments are needed, please contact ZEGOCLOUD technical support.
Video MessageModerate before sending
  • One-on-one chat
  • Group chat
  • Room
Video moderation includes the moderation of images and audio in the video.
  • Images: Default detection of the following content: politics, pornography, terrorism, etc. Additionally, it can support identifying the following content: QR code, text in images, etc. If adjustments are needed, please contact ZEGOCLOUD technical support.
  • Audio: Default detection of the following content: politics, pornography, terrorism, etc. Additionally, it can support identifying the following content: statesman voiceprints, advertisement, prohibition, abuse, etc. If adjustments are needed, please contact ZEGOCLOUD technical support.
Note
  • Explanation of Moderation Methods:

    • Moderate before sending: ZIM moderates the message before sending it. If the moderation passes, the message is sent successfully; if the moderation fails, the message fails to be sent.
    • Send before moderation: ZIM sends the message first and then moderates it. If the moderation passes, the message is displayed normally; if the moderation fails, the message is withdrawn.
  • When using the content moderation service, you can configure corresponding moderation tags and thresholds based on the moderation channels. For example, in some social scenarios, stricter thresholds and tags are used for group chats, while looser thresholds and tags are used for one-on-one chats.

  • Different moderation level can be configured based on the moderation results. The moderation results are divided into "pass," "uncertain," and "fail."

    • If you set the moderation intensity to "Weak Moderation": When the result is "uncertain," ZIM will still send the message.
    • If you set the moderation intensity to "Strong Moderation": When the result is "uncertain," ZIM will stop sending the message.

To understand the full process including enabling and using the content moderation service, please refer to the instruction.

Customize sensitive word lists

If the default sensitive words used for the built-in text message moderation capability do not satisfy your demands, you can customize word lists.

To use this feature, please provide ZEGOCLOUD technical support with custom lists of sensitive words and explain the processing strategy.

After the configuration is completed by ZEGOCLOUD technical support, ZIM will process the content in user messages that matches the list. Currently, ZIM provides three processing strategies:

Processing StrategyDescriptionExamples
Sensitive WordsOriginal TextResult
Block Sensitive WordsIf a message contains sensitive words, the message will be blocked and the sending will fail.HelloHello, welcome.Send failed.
Replace Sensitive WordsIf a message contains sensitive words, ZIM will replace the sensitive words with other content and send the message. The receiving user will see the replaced content.HelloHello, welcome.**, welcome.
Send Original TextEven if a message contains sensitive words, ZIM will still send the message.HelloHello, welcome.Hello, welcome.
Note

When providing lists of sensitive words, please follow these practices:

  • The list files should be in Excel format.
  • Classify the sensitive words according to the processing strategy, and then place them in separate list files.
    • A sensitive word can only appear in one list file, which means only one processing strategy can be configured.
    • If a sensitive word is configured with multiple strategies, ZIM will prioritize the processing of the word according to the following order: block > replace > send original text.
  • If the sensitive words contain vocabulary from different languages, please classify them according to the language and place them in separate list files.

For example, if your custom sensitive words include both Chinese and English languages, and you need to use all the 3 processing strategies, you need to provide ZEGOCLOUD technical support with 6 sensitive word list files in Excel. 3 files should only contain Chinese vocabulary (file names: project_name_block_zh, project_name_replace_zh, project_name_send_zh), and the other 3 files should only contain English vocabulary (file names: project_name_block_en, project_name_replace_en, project_name_send_en).

Pricing

Please contact ZEGOCLOUD business personnel for pricing details.

Previous

Cache management

Next

Instruction