Skip to content

Recipe: anonymize employee files before ChatGPT

Goal: let an AI assistant help with HR work (summarize a performance review, draft a reply to a complaint, compare candidates, analyze a payroll export, prepare a dismissal letter) without sending employees’ personal data to a third party.

Employee files hold some of the most protected data there is: identity and social security numbers, bank accounts, home addresses, family situations, salaries, sick leave and health information, union membership, disciplinary records. Under the GDPR an employer needs a legal basis and a processing agreement before any of it goes to an AI provider; anonymized, it doesn’t.

Documents: reviews, letters, CVs, complaints

Section titled “Documents: reviews, letters, CVs, complaints”
  1. Drop the files into Piixie (Word, PDF, scanned forms) and choose Synthesize: each employee becomes a consistent fake person, with a fake ID, social security number, address, phone and IBAN of the same country and format.
  2. Check the details that identify by combination: a unique job title, the office, the date of hiring, a manager’s name, a relative mentioned in a leave request. Piixie’s local LLM catches people and their relationships; review them in the editor.
  3. Decide about sensitive content. A diagnosis, a sick-leave reason or a salary is about nobody once the person is unidentifiable. If it must not go out at all, select it in the editor and add it as an entry.
  4. Ask the AI, then deanonymize its answer to put the real names back.

A CV with a photo? The photo is blurred or covered; see CV with a photo.

Spreadsheets: payroll, headcount, absence exports

Section titled “Spreadsheets: payroll, headcount, absence exports”

Excel and CSV files are anonymized column by column. Piixie recognizes the columns that hold names, emails, phones, birth dates, addresses and IDs, and makes a plan with one generator per column:

  • the same employee gets the same fake in every row and every file;
  • fakes follow the sheet’s country: a Danish sheet gets Danish names and valid CPR numbers, an Italian one valid codici fiscali;
  • employee numbers and keys can be kept untouched with a switch, so joins with other exports still work;
  • you review it all in a grid before saving, and save the plan as a template so next month’s export is anonymized the same way.

Then ask the AI for the analysis: absence by department, salary bands, turnover. Without names, the numbers still tell the story.

Spanish DNI/NIE and Seguridad Social number · UK National Insurance number · German Steuer-ID and Rentenversicherungsnummer · French NIR · Italian Codice fiscale · Danish CPR · Swiss AHV · Dutch BSN · US SSN · IBAN