Digitorn
Digitorn
All terms
Cost & ops

PII redaction

Pattern-matching personal data in tool results and replacing it before the LLM sees it.

also known as: data masking
In depth

Anything pulled from a CRM, email API, support log, or production database is going to contain PII. Sending that PII into LLM context is usually undesirable and sometimes illegal. A tool_end hook with regex replacements (emails, phones, IDs) catches the structured leaks, a dedicated PII module handles semantic ones (names, addresses).

Related concepts
Read the deep dive

Hooks: 4 production patterns we ship today on Digitorn

Read article
Newsletter

Get the next post in your inbox.

Engineering notes from the Digitorn team. No marketing, no launch announcements, no "10 prompts that will change your life". Just the things we write that we'd want to read.

One-click unsubscribe. We never share your address. Powered by our own infrastructure, not a tracker.

More in Cost & ops

Audit log/glossary/audit-logBrain fallback/glossary/brain-fallbackCost cap/glossary/cost-capModel routing/glossary/model-routingRate limiting/glossary/rate-limitingTurn cap/glossary/turn-cap