Compliance and PII protection
A compliance lead at a financial services company needs to ensure its customer-support agent never exposes account details or accepts inappropriate requests. She creates two guardrails: a semantic analysis guardrail to detect PII with a masking response, and a keyword matching guardrail to block offensive language with a custom error message. From then on, unsafe messages are blocked before the agent responds, and any account numbers in replies are automatically masked.
- Detection
- Semantic analysis + keyword matching
- Handling
- Mask · Block with custom error
- Outcome
- Account details never exposed

