Guardrails and redaction

Sensitive Info Detection scans what people send, what tools return and what models answer, and warns, redacts or blocks card numbers, credentials, phone numbers and your own patterns before they leave your workspace.

4 min read · Updated 28 September 2026

People paste real things into AI: a customer’s card number in a refund request, an API key in a code snippet, a phone number in a CRM export. Guardrails catch that automatically. Sensitive Info Detection scans for sensitive information and warns, redacts or blocks it before it leaves your workspace, and every time it acts, it leaves a record in the Privacy Log.

Sensitive info detection redacting card numbers, an IBAN and a phone number.

The guardrail policies

On the Workspace page, open Guardrails. Two policies protect your workspace’s chats, prompts and agents:

PolicyStatusWhat it does
Sensitive Info DetectionActiveDetects and redacts sensitive information shared in chats, prompts and agents.
Prompt Injection DetectionComing soonWill detect and block attempts to hijack your agents’ and prompts’ instructions.

Set up Sensitive Info Detection

Select Configure on Sensitive Info Detection. The settings have four parts: where to scan, what to look for, your own patterns, and a preview.

1. Scan surfaces

Choose which parts of a request or response get scanned. Turn off all surfaces to disable detection.

SurfaceWhat it covers
User inputWhat people type and send.
Tool dataWhat tools and integrations hand back to the model, such as CRM contacts or database rows.
Model outputWhat the model answers.

2. Built-in detectors

Each detector can be enabled or disabled on its own, and reacts the way you choose.

DetectorWhat it finds
Payment dataCredit card numbers and IBANs.
CredentialsAPI keys, tokens, private keys and passwords found in text or code.
Email addressEmail addresses.
Phone numberPhone numbers, in international or NANP formats.
IP addressIPv4 addresses.
Government IDGovernment identification numbers.

For each enabled detector, pick an action:

ActionWhat happens
WarnThe text goes through unchanged, and the detection is recorded in the Privacy Log.
RedactThe sensitive value is replaced by a placeholder, so the model never sees it.
BlockThe content is stopped and does not go through.

3. Custom patterns

Under Custom Patterns, add your own regular expressions for anything specific to your business that the built-in detectors cannot know about - internal account numbers, employee IDs, project code names. For example, a pattern for Northwind customer account numbers:

NWC-\d{6}

4. Preview

Use Preview to try your settings on sample text before you rely on them, so you can see what gets caught and what gets through.

What the model receives

With Redact, the model gets a placeholder where the value was, and works with that. In this chat, the card number and IBAN became [payment_data] and the phone number became [phone]. The model still wrote a useful refund email, but it never saw the real numbers.

The same applies to data from your integrations. With Model output or Tool data scanned, a phone number from your CRM comes back as [phone] in the answer - see the deals table in CRM.

SettingStart withWhy
User inputOnCatches what people paste.
Tool dataOn, if you use integrationsScans CRM and database results before the model sees them.
Model outputOnA last check on everything shown and sent.
Payment dataRedactThe model rarely needs the real number to do the job.
CredentialsBlockA model never needs a real key, and a leaked one is a real risk.
Phone numberRedactPersonal data the model can usually work without.
Government IDRedact or BlockHigh-risk personal data.
Email addressOff or WarnPeople often need addresses to send email and look up contacts. Redacting them breaks those requests.
IP addressOff or WarnTurn on if your teams handle logs or network data.

Run with this for a week, then read the Privacy Log. Frequent Warn entries for a detector are a sign to move it to Redact; complaints that answers are missing something needed are a sign to relax it.