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:
-
For blocked profanity words, messages aren’t synced to your application server by default. create a ticket to enable the Include filtered messaging in post-event webhooks and get the original content via Message Sent Webhook.
Blocked messages won’t trigger Message Pre-send Webhook.
-
If replacement profanity words aren’t set, Nexconn sends the original message to the Message Pre-send Webhook. Get the original content:
- With Message Pre-send Webhook, get the original content directly from the Message Payload.
Note: If you replace content in webhook, Message Sent Webhook returns the replaced content, not the original.
-
If replacement profanity words are set, Nexconn replaces profanity words before sending the message to the Message Pre-send Webhook. You can’t get the original content because:
- The “original content” returned by Message Pre-send Webhook is already replaced.
- The content returned by Message Sent Webhook is already replaced.
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.