Documentation

← All agent examples

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.

Moderation
Customer support
moderation
redaction
PII
classification
trust and safety

How it starts

When you run it.

What it needs

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

Steps

Moderate the message

Prompt Call

Parse and validate the verdict

Extract Content

Route by decision

Switch

When: Blocked:

Blocked notice

Text

When: Redacted:

Redacted message

Text

Otherwise:

Original message

Text

Show the result

Display Result