Skip to main content
PII detection and Guardrails provide safety, privacy, and compliance controls for Agentic Apps. Together, they prevent sensitive data exposure, enforce content policies, and maintain consistent agent behavior across all pipeline stages.

How It Works

The PII and Guardrails layers apply at every stage of the processing pipeline: Debug logs, traces, and sessions show redacted values by default, reducing the risk of accidental PII exposure.

PII Detection

PII detection identifies sensitive information—such as names, email addresses, and phone numbers—before it’s processed by the agent. Detected values are automatically masked or replaced based on your configuration. See PII Detection Patterns to configure detection rules.

Guardrails

Guardrails are pre-deployed scanners that evaluate agent inputs and outputs to maintain safety, stability, and compliance. Common use cases:
  • Block harmful or inappropriate language.
  • Restrict content using regex patterns.
  • Detect toxicity or jailbreak attempts.
  • Prevent disallowed outputs.
Guardrails are automatically deployed across the account and can be added to any tool or flow without additional setup. See Guardrails Overview and Test a Scanner.