Legal · Private AI
Private AI drafting
A lawyer drafts contracts with AI, while the client's real names, ID numbers and bank details never reach the AI.
- Client
- A law firm
- Duration
- Prototype · Nov 2026
- Role
- Product, design and development
- Specialist drafting agents
- 6
- Steps from file to final draft
- 5
- Leaks in the sample-matter tests
- 0
Personal data sent to the AI
0 leaks in the sample-matter tests
Read the full story
01
The brief
A law firm wanted to draft contracts and legal documents faster with AI. But its files are full of personal data under professional secrecy: names, ID and tax numbers, bank accounts, addresses. Sending that to an AI provider was not an option, and every AI call had to be traceable afterwards.
02
What we built
A private drafting tool built on one rule: the AI only ever sees tags. Each matter starts with a card of the parties; an anonymiser then replaces names, ID numbers, IBANs, emails, phone numbers, addresses and companies in the documents with stable tags like [PERSONA_1]. A leak check reads the exact text about to leave and blocks the call if a real detail slipped through. A coordinator picks the right specialist agents, the draft comes back with tags, and the lawyer reviews it with the real data put back: asks for a new version with feedback, edits directly, approves and exports to Word. Every AI call is logged word for word, and the encrypted key table that links tags to real people is destroyed when the matter closes. It's a working prototype with made-up matters; the next step is a pilot on EU servers in the firm's own account.
03
The challenge
Anonymising legal text is harder than finding email addresses: names hide in contract formulas and sign-offs, companies appear under short names, and the lawyer's own feedback can contain real data too. So there are three layers (the parties, rule-based detectors, tags added by hand), feedback and edits are anonymised as well, and a final check on the outgoing text stops anything that got through.
Inside the build
The parts that do the work
01Real data stays in the firm
The parties on the matter card are always replaced, rule-based detectors find ID numbers, IBANs, emails, phones, addresses and companies, and the lawyer can tag anything else by hand. Tags stay the same across the whole matter, so the AI can still follow who is who.
02A leak check before every call
Right before a request leaves, the exact outgoing text is checked against every real detail of the matter. If anything is found, the call is blocked and logged; nothing is sent.
03A coordinator and specialist agents
A coordinator reads the brief and hands it to the right specialists: company, employment, tax, data protection, immigration or real estate. The draft comes back with tags, and the lawyer sees it with the real names put back.
04Versions with the lawyer's feedback
The lawyer asks for changes in plain words, and the feedback is anonymised before it goes out too. Every version is kept, direct edits are re-anonymised on save, and citations stay marked as unverified until someone checks them.
05Approval and Word export
Only lawyers allowed to approve can sign off a final version, and open blanks must be confirmed first. The Word file leaves out the internal review notes.
06An audit trail, and keys that expire
Every action and the exact text of every AI call is in the activity log. The table that links tags to real people is encrypted, and it's destroyed when the matter closes, so stored drafts can never be traced back to the client.
Recreated with demo data, no real client information.
Contact
Tell us what slows your business down.
We reply within one working day, with a next step or an honest “this isn’t for us”.