# Message moderation with redaction

Tells you whether to block, redact or allow a message: returns a blocked notice, the redacted message, or the message unchanged.

**Use cases:** Moderation, Customer support

**Tags:** moderation, redaction, PII, classification, trust and safety

[Create this agent](https://seclai.com/agent-examples/create/text_moderation)

## How it starts

Trigger: dynamic input.

## What it needs

No knowledge base, memory bank or connection to create first.

## Steps

- Moderate the message
- Parse and validate the verdict
- Route by decision
  - When: Blocked: Blocked notice
  - When: Redacted: Redacted message
  - Otherwise: Original message
- Show the result
