# AI PII Redaction

Governance settings for an agent platform: which personal data is redacted in prompts, responses and traces.

- id: `ai-pii-redaction`
- Page: https://agentic-ui-kit.com/components/ai-pii-redaction
- Live preview: https://agentic-ui-kit.com/live/component/ai-pii-redaction

## Install

```bash
agentic-ui add ai-pii-redaction
npx shadcn@4.17.0 add @agentic-ui/ai-pii-redaction
```

## Metadata

- **Level:** block
- **Category:** block
- **Installable in:** Radix UI (registry variant new-york)
- **Capabilities:** pii-detection, per-entity-redaction-strategy, mask-partial-token-hash-remove, consistent-pseudonymization, checksum-validation, custom-regex-patterns, regex-validation, custom-term-dictionary, allowlist, redaction-scopes, live-preview, detected-highlights, findings-table, dirty-state-save-discard, save-error-retry, loading-error-read-only-states, keyboard-navigation
- **Intents:** configure, explore-detail
- **Suits domains:** ai-agents, ai-workspace, settings, saas, support, devtools
- **Interaction:** toggle, select, add-remove-chips, regex-input, tabs, live-preview, save-discard, keyboard-shortcut
- **Screen role:** management
- **Density:** medium
- **Dark mode:** yes
- **Use it for:** governance settings for an agent platform: which personal data is redacted in prompts, responses and traces, AI support console that pseudonymizes customer emails and phone numbers before sending them to the model, LLM observability that masks API keys and IPs before persisting logs, enterprise admin who adds an employee ID pattern and checks in the preview that it is applied
- **Avoid when:** PII detection with server-side compliance guarantees (the engine is a preview; the runtime enforces the policy), moderation of toxic or safety content (use ai-content-moderation), management of provider keys or usage limits (use ai-provider-keys or ai-usage-policies)
- **Preserve when adapting:** policy-preview-side-by-side, per-entity-strategy, allowlist-over-detection, save-outcome-focus
- **Replace when adapting:** domain-copy, entity-catalog, policy-persistence-adapter, sample-presets
- **Adaptation effort:** low
- **Coupling:** low
- **Quality score:** 9.2/10
- **Quality breakdown:** visual 9/10, responsive 9/10, accessibility 9/10, code 9/10
- **Uses primitives:** alert, badge, button, card, checkbox, input, label, select, skeleton, switch, tabs, textarea
- **Motion:** profile subtle, library css, reduced-motion fallback yes
- **Registry dependencies:** lib-primitives
