Back to blog

    Privacy

    What to redact before sending data to an LLM

    Prompts carry more than teams think. Which data to keep, mask, block, or route to a person before it reaches ChatGPT, Claude, Gemini, or any other model.

    4 min read

    The first privacy risk with AI is usually not the model. It is the prompt: a useful question with names, emails, contract numbers, or payment data pasted in as context. With agents the same happens automatically, on every request.

    The rule of thumb:

    • Keep what the model needs to do the task.
    • Mask values where the structure matters but the real value does not.
    • Block what should never leave.
    • Route to a person when the data is too sensitive to decide automatically.

    What to look for

    Personal identifiers

    Names, emails, phone numbers, ID and passport numbers, employee IDs. If the model does not need the identity, replace it with a stable placeholder:

    • Maria Lopez → [PERSON_01]
    • maria@acme.es → [EMAIL_01]
    • ES12345678Z → [ID_01]

    Contract and account references

    Reference numbers look harmless but can reveal a customer relationship or a case.

    • CT-48291 → [CONTRACT_01]
    • INV-1042 → [INVOICE_01]

    Financial values

    The model may need to know there is an amount, not the exact figure.

    • EUR 48,200 → [AMOUNT_01]

    Health and other regulated data

    Diagnoses, treatment notes, and claims need more than masking. Usually the right answer is a separate route with an explicit policy, often a private model.

    Secrets

    API keys, tokens, passwords, internal URLs, and unreleased product details do not belong in prompts. Block them; do not mask them.

    Keep the meaning

    Redaction that destroys the task fails, because people go back to pasting raw data. Keep the entity type, the relationships, the sequence of events, and the scale where it matters:

    "Summarise the renewal risk for [PERSON_01] at [COMPANY_01]. The contract is [CONTRACT_01] and the payment exposure is [AMOUNT_01]."

    The model can still reason about it. It just does not see who it is.

    Common mistakes

    • Cleaning up afterwards. Once raw data is in a chat window, it has already left. Control has to sit before the model.
    • Redacting everything. Without context the answers get worse and people find a way around the control.
    • Treating every tool the same. A consumer chat app, a team workspace, and a private gateway are different routes and need different rules.

    Before any prompt leaves

    1. Does it contain personal, financial, health, or confidential business data?
    2. Does the model need the exact value?
    3. Can identifiers be replaced with placeholders?
    4. Should it go to a private model or a person instead?
    5. Is the final prompt logged?

    Doing this by hand does not scale, especially once agents are sending the requests. That is the job of a control layer such as our Privacy Gateway; see also private AI.

    What goes on autopilot first?

    Tell us how you work today. We will tell you where to start.

    Talk to us