← All field notesPrivacy & security

Can you keep PII out of LLM prompts?

The difference between hiding a value and removing it — and why the distinction matters in a pilot.

The lesson

The useful question is not whether PII is blocked, but what happens before inference and what the model still sees.

Short answer. Keeping PII out of LLM prompts means deciding what personal data is detected, what is replaced before inference and when the real value is restored. Pseudonymization replaces a value with a reference and restores it at an approved step; redaction removes it for good. Neither is anonymization, and detectors can miss values. Scope the control to a workflow, test its limits and describe it as a pilot until the coverage is evidenced.

A prompt is a data path, not a text box.

When a team pastes a customer email into a chat window, the personal data in that text becomes part of the request. The model provider’s terms, the workspace region and the route to inference all matter, but they do not change the basic fact: the value was in the prompt. A control that acts before inference is addressing a different point in the path.

That is why “we do not train on your data” and “the model never sees the customer’s email” are different claims. The first is about what happens after the request. The second is about what is in the request. A team can have the first without the second, and should not use one to imply the other.

The practical question is what the workflow needs. If a reply can be prepared from a reference, the model does not need the real name or email. If a later tool must update the customer record, something has to restore the real value at that step. That is the design problem pseudonymization addresses.

Take this with you

Separate the question “where does data go?” from “what is in the prompt?”.

Follow the flow

Detect, replace, infer, restore

Detect

Inspect the text for personal data before the model call.

Under the hood

A detector returns character spans. Keep detected values and request bodies out of application logs.

Replace

Substitute a pseudonym and keep the mapping in a controlled vault.

Under the hood

Scope the mapping to the workflow and channel. A detector failure on the pilot path stops inspection rather than letting the text through unchecked.

Infer

The model works with the pseudonymized prompt.

Under the hood

The model sees references, not the detected values. The pilot covers text only and does not remove the need for a data-path review.

Restore

Return the real value only at an approved tool step that needs it.

Under the hood

Re-identification happens at the tool boundary under the role’s permissions. Test failed restorations and the case where the tool is not approved.

Follow a fictional support reply through a scoped pseudonymization pilot.

Pseudonymize before inference, restore at the tool.

In a scoped pilot, UseGlic detects personal data in text, replaces it with a pseudonym before the model sees the prompt and keeps the mapping in a separate vault. When an approved tool needs the real value, the teammate restores it at that step. The model works with references; the connected system still receives what it needs to complete the action.

The pilot has deliberate limits. It covers text only. Detectors can miss values, especially in unusual formats or ambiguous context. It is enabled per workflow, not for every workspace. A detector failure on the pilot path stops inspection rather than allowing the prompt through unchecked. Those limits belong in the description, not in a footnote.

The mapping is also a boundary. It stays out of application logs and is scoped to the workflow and channel. The owner should know who can approve a restoration, which tools are allowed to receive a real value and what happens when the tool is unavailable. A pseudonym that can be restored anywhere is a weaker control than one restored at a named step.

Under the hood

The detector returns character spans; the control replaces those spans and keeps the mapping separate from the prompt. Test a detected value, an undetected value, a failed detector, an approved tool restoration and a tool that is not approved. Do not use the control as a substitute for a data-protection impact assessment, a lawful basis or a customer’s own retention decision.

Test the misses, not just the matches.

A demonstration with a clean name and email address will usually work. The useful test is the messy case: a value in an unusual format, a name that is also a product, a reference that is personal data only in context. The owner needs to see what the detector missed and decide whether the workflow can tolerate that miss.

Pair the detection rate with the restoration path. A prompt full of pseudonyms is not useful if the tool cannot restore the value it needs, and a restored value is not safe if it can be sent anywhere. Test both sides of the boundary, including the failure cases.

Then keep the language precise. This is pseudonymization, not anonymization. It is a scoped pilot, not a universal guarantee. The model can still see undetected personal data, and the control does not remove the team’s other obligations. That is not a weakness in the story; it is the reason the pilot exists.

Take this with you

Describe the control by what it does, where it applies and what it can miss.

What is the difference between pseudonymization and redaction?

Pseudonymization replaces a value with a reference and keeps a controlled way to restore it. Redaction removes the value and does not restore it. Pseudonymization can keep a workflow working when a later tool needs the real value; redaction is simpler but can break the handover.

Does pseudonymization mean the model never sees personal data?

No. Detected values are replaced before inference, but detectors can miss values, the pilot covers text only, and it is not enabled for every workflow. Do not describe the control as “no PII reaches the model”.

Is pseudonymization the same as anonymization?

No. Pseudonymization keeps a reversible mapping so an approved tool can use the real value. Anonymization requires that re-identification is not reasonably possible. They are different controls and should not be used interchangeably.

Written by Team UseGlic

Team UseGlic is the product and engineering team building the Command Centre. We build AI teammates around business roles, connected tools and clear ownership. These notes share the product decisions and practical lessons behind that work.

More about our work ↗
Put the idea to work

Every team has
a place to start.

Define the first job, connect your tools and give the work a clear owner.

Create your workspace ↗