Topic 3 of 6 · 3 min read
Redacting client details before prompting
Goal: Redact a case summary so the AI task still works and no reader could identify the client.
Redaction means giving the AI only what the task needs and swapping out everything that could point to a real person, and it works only if rare details go as well as names. The model can usually do the job on a stand-in version of the facts.
Check yourself · 1 of 3
Which detail is most likely to identify a client even after the name is removed?
Why it matters
Even on an approved tool, the safest data is data that never left. Redaction cuts the damage if something goes wrong later, such as a leaked account or a misdirected export. It also helps when you must use a tool that has no firm contract, because the text no longer identifies anyone.
How to do it
- Decide what the task needs. Ask: does the model need the client's name to restructure this letter? Almost never. It needs the situation.
- Remove direct identifiers. Names, addresses, phone numbers, email addresses, account and case numbers, dates of birth, and employer names.
- Replace, do not blank. Use consistent labels such as "Client A", "Company X", "Hospital Y" so the model can follow who did what. A row of black boxes breaks the logic.
- Generalise the rare facts. A "47-year-old bakery owner in a village of 900 people who was injured by a falling crane" may be one person. Say "an adult self-employed business owner injured on a building site". Unusual jobs, places, amounts, dates and events can re-identify even without a name.
- Check the result. Read it as a stranger would. Could a colleague guess the client? If yes, generalise further.
- Keep the key. Store the mapping of labels to real names in the firm's own system, not in the chat.
Before and after
Before: "Maria Kowalski, 54, of 12 Alder Road, was dismissed by Brightwater Dental on 3 March after reporting her manager to the Care Quality Commission. Draft a timeline."
After: "Employee A, mid-fifties, was dismissed by Employer B about two weeks after reporting her manager to a regulator. Draft a timeline."
The timeline task still works. The reader learns nothing that identifies Maria.
What goes wrong
- The name is removed, but the exact date, employer and regulator remain, so the matter is still obvious.
- A blanket find-and-replace changes "Maria" but leaves "Ms Kowalski" and an email address.
- The redacted facts are fine, but the pasted document's file name and metadata still carry the client's name.
- The model is asked to draft the final letter and the real names are pasted back into the chat to finish it.
Examples
Redacting a medical note
Before: "Mr Ahmed Rahman, 61, a retired bus driver from Penrith, had a stent fitted on 9 June at St Anne's."
After: "Patient A, early sixties, had a cardiac stent fitted last month."
The summary task still works. Age band, job, town, hospital and exact date are gone.
Rare detail slips through
A draft says "the only dentist in the island's northern village". The name is removed, yet one fact points to one person. Fix: "a dentist in a small rural community".
Key points
- Give the model only what the task needs, nothing more.
- Replace identifiers with consistent labels so the facts still make sense.
- Rare combinations of facts can identify a person even when the name is gone.
- Check the redacted text by reading it as a stranger would.
- Keep the mapping of labels to real names outside the AI tool.
Common mistakes
- Removing the name but keeping the exact date, employer and place.
- Using blank boxes so the model loses who did what.
- Forgetting file names, document properties and email addresses.
- Pasting real names back into the chat to finish the draft.
Check yourself · 2 of 3
Why use "Client A" and "Company X" instead of black boxes?
Check yourself · 3 of 3
You redacted a letter and pasted it into a chat. What else could still identify the client?
Practice items, not counted towards your mastery.
Start here
- Anthropic Privacy Center (opens in a new tab)DocsFree
Anthropic's own explanations of data use, retention and deletion for each of its plans.
- Enterprise privacy at OpenAI (opens in a new tab)DocsFree
Shows the commitments a business plan makes about training use, retention and admin controls.
- Generative AI guide (ICAEW) (opens in a new tab)DocsFree
Plain guidance for finance professionals on confidentiality risks and controls.
Where to go in your country
- Risk Outlook: the use of artificial intelligence in the legal market (SRA) (opens in a new tab)DocsFreeUK
The regulator's view of confidentiality risks when firms use AI, a good frame for what to strip out.
- Generative AI: the essentials (Law Society) (opens in a new tab)ArticleFreeUK
Practical guidance for solicitors on confidentiality and telling clients about AI use.
- Artificial Intelligence (AI) Judicial Guidance (Courts and Tribunals Judiciary) (opens in a new tab)ArticleFreeUK
Judges' own guidance on AI, including the warning that chatbot inputs may be treated as shared with the provider.