User GuidesControl & Administer
Guardrails
Configure prompt and output screening with AGT, ATR, PIGuard or Presidio, test in the playground, and roll out safely
Guardrails
Overview
Guardrails screen prompts and responses against policies: unsafe requests, prompt injection, personally identifiable information and regulated content. Four screening providers are supported — AGT, ATR, PIGuard and Presidio — and each policy can run in shadow mode (log only) or enforce mode (block).
Prerequisites
- Platform admin rights to configure providers; organization admin rights to create organization policies.
- A clear policy goal: what must be blocked, what must be redacted and where the boundary sits.
Step-by-step
- In the Admin Portal, open Guardrails and enable the provider you need. Configure its endpoint and credentials.
- Open System → Features or the guardrail settings to choose the master mode. Start in shadow so nothing is blocked while you tune.
- Create or edit a policy: the prompt and response rules, the provider that evaluates them and the action (block, redact, flag).
- Test in the playground: submit representative prompts and inspect the decision, score and matched rules.
- Roll out in shadow for a period. Review logs for false positives.
- Switch the policy to enforce once the logs look clean.
- Organization admins can add organization-level policies under Organization → Guardrails (
/org/<slug>/guardrails); these stack with platform policies.
Example
Block prompt-injection attempts while allowing normal research:
- Enable PIGuard and set the policy to shadow.
- Run the playground with benign prompts and with known injection strings.
- Confirm benign prompts pass and injections are flagged, not blocked.
- Promote the policy to enforce and monitor the refusal rate for a day.
Expected result
- Shadow policies appear in logs and audit entries but do not change answers.
- Enforce policies refuse or redact, returning a clear refusal message to the user.
- The playground shows the decision and reason for each test prompt.
- Organization policies apply only within that organization's workspaces.
Limits and troubleshooting
- Enforcing too early causes false refusals. Always pilot in shadow mode first.
- Provider outages can fail open or fail closed depending on configuration; choose deliberately for each policy.
- External chat and messaging traffic pass through the same guardrails, so a policy affects every channel.
- Redaction changes content; citations may reference the unredacted source. Review redaction rules with that in mind.
- Policy evaluation adds latency; keep the number of rules proportionate.