How to get original message content when using built-in profanity filter and message webhooks?

Description

IM supports content moderation, offering:

  • Built-in profanity filter: Automatically blocks or replaces profanity words before delivery.
  • Message Pre-send Webhook: Sends messages to your application first, letting you decide whether to deliver them. Use this to implement your own moderation or integrate third-party services.

When moderating content, you may also need the original message. This article explains how to get it when using one or more moderation features.

Scenario 1: Only using built-in profanity filter

Get the original message via Message Sent Webhook.

  • By default, messages with blocked profanity words skip routing, while replaced ones are routed (only the replaced content).
    Enable the Include filtered messaging in post-event webhooks to route both blocked and replaced messages (the original content is routed).
    Create a ticket to enable this function.

Scenario 2: Using built-in profanity filter with message Pre-send Webhook

If you use content moderation via Message Pre-send Webhook, you can only get the original message for blocked profanity words, not replaced ones. Details:

:tipping_hand_man: If you moderate content via Message Pre-send Webhook, replace content yourself instead of using built-in replacement profanity words .

More support

Got questions? create a ticket.