PII & Guardrails
The personally identifiable information (PII) framework and Guardrails provide essential safety, privacy, and compliance controls that regulate how sensitive data identifies and processed within an Agentic App. These capabilities work together to prevent PII exposure, enforce safety policies, and maintain predictable behavior across all stages of your app.Core Components
- PII: A dedicated PII layer that identifies sensitive information with the help of configured patterns. Protective measures like masking or redaction are taken on the detected sensitive content before it’s passed to the language models or other components.
- Guardrails (Input and Output Scanners): Guardrails monitor both inputs and responses. They enforce safety, compliance, and content-quality rules to ensure the agent behaves consistently and responsibly across all workflows.
- Data Anonymization: Data remains anonymized throughout the processing pipeline. Only components explicitly configured to access sensitive information can selectively de-anonymize it when operationally required.
- User Input: Sensitive data is identified and masked before reaching the model.
- Agent Processing: Agents operate only on redacted data, preventing unintended PII propagation.
- Agent Response: Guardrails evaluate outputs to enforce safety and compliance policies.
- User Display:: De-anonymization occurs only when permitted, ensuring the right data appears at the right stage.
PII Detection
PII detection helps identify and protect sensitive user information—such as names, email addresses, phone numbers, and other personally identifiable data—before it’s processed by the agent. When it is enabled, detected values are automatically masked or replaced according to your configuration. The agent works with the inputs ensuring privacy and compliance throughout the workflow. Learn how to add a PII detection pattern.Guardrails
Guardrails are pre-deployed scanners that evaluate prompt input and responses to maintain safety, stability, and compliance during agent execution. Guardrails help monitor and regulate the data that agents receive (input scanners) and generate (output scanners). Examples of guardrail use cases:- Block harmful or inappropriate language
- Restrict content using regex patterns
- Detect toxicity, jailbreak attempts, or unsafe instructions
- Prevent harmful or disallowed outputs from reaching the user.
Data Anonymization
Data anonymization safeguards sensitive information by converting identifiable values into structured tokens during processing and storage. Key features:- Applies standard anonymization to detected sensitive fields.
- Preserves token structure to ensure downstream tools operate as expected.
- Supports optional de-anonymization for tasks such as database updates or third-party integrations.
- Maintains consistent anonymized values within a single execution context to preserve workflow integrity.
- Select the test option.
- Provide input data.
- Review results and refine scanner settings if necessary.