To keep an AI project GDPR compliant, decide early which personal data it touches and why, choose a lawful basis for each use, assess the risks before building, and keep personal data to the minimum in prompts, logs and test sets. Then sign processing agreements with every service in the chain, keep processing in a region you control, and make sure people can still exercise their rights and reach a human when an AI output affects them. Built in from the first week, this costs little; added the week before launch, it can stop the project.
This article is general guidance, not legal advice. Involve your data protection officer or legal adviser for your own use case.
What does GDPR compliance mean for an AI project?
A GDPR-compliant AI project is one where every use of personal data, from the test set to the chat log, has a defined purpose, a lawful basis, a retention period and an owner, and where the people concerned can see, correct and object to how their data is used.
GDPR does not ban AI or name specific technologies. It applies the same principles to an AI system as to any other processing: lawfulness, fairness and transparency, purpose limitation, data minimisation, accuracy, storage limitation, security and accountability. The work is translating those principles into decisions about prompts, retrieval, logging and model hosting.
GDPR also runs alongside the EU AI Act rather than instead of it. Our guide to what the EU AI Act means for companies covers the second law.
When does GDPR apply to an AI system?
GDPR applies whenever the system processes information about an identifiable person. In AI projects that is more often than teams expect:
- Inputs. Customer emails, CVs, support tickets, call recordings and contracts with named signatories.
- Retrieved context. Documents pulled from your systems to answer a question, including staff names in policies or notes.
- Outputs. A summary of a customer’s complaint, a draft reply or a score about a person is new personal data.
- Logs. Stored prompts and responses, kept for debugging or quality review.
- Test sets. Real past cases copied to test the system.
A system that only reads anonymised product data or machine readings may fall outside GDPR. Check that the data is truly anonymous, not just stripped of names, because combinations such as postcode, date and job title can still identify someone.
Which lawful basis covers your AI use case?
Every purpose needs one lawful basis, chosen before processing starts. For most business AI, three are relevant:
- Contract. Processing needed to deliver what a customer asked for, such as answering their order query.
- Legitimate interests. Processing that serves a genuine business need without overriding people’s interests, such as routing incoming emails. Write down the balancing test.
- Consent. Needed where nothing else fits, and it must be as easy to withdraw as to give.
Check purpose limitation too. Data collected to deliver a service cannot simply be reused to train or tune a model for a different purpose. If the AI use is new, decide whether it is compatible with the original purpose, and update your privacy notice either way.
Do you need a data protection impact assessment?
A data protection impact assessment (DPIA) is required when processing is likely to result in a high risk to people. New technology, large-scale processing, monitoring, sensitive data and decisions with significant effects all point that way, so many AI projects qualify.
Even where it is not strictly required, a short assessment is the cheapest way to find problems early. It should describe:
- The purpose and the personal data involved, including outputs and logs.
- Why the processing is necessary and proportionate.
- The risks to people, such as wrong outputs, unfair treatment or data exposure.
- The measures that reduce each risk, such as human approval, access controls and retention limits.
Start it during design, not after the build. Its findings often change the architecture.
How do you minimise personal data in prompts, logs and test sets?
Minimisation is where engineering choices matter most:
- Send only what the task needs. Retrieve the relevant fields or passages, not the whole customer record.
- Mask or pseudonymise names, account numbers and contact details where the task does not need them, and restore them only in the final output if required.
- Set log retention deliberately. Keep full prompts and responses only as long as quality review needs them, then delete or reduce them.
- Restrict access to logs and test sets as tightly as to the source systems.
- Prefer retrieval over training on personal data. A RAG knowledge base reads documents at answer time, so deleting a document removes it from future answers. Data built into a model’s weights is much harder to remove.
What should contracts with AI services cover?
Each service that processes personal data for you is a processor and needs a written data processing agreement. For AI services, check that the terms cover:
- No training on your data unless you have agreed to it.
- Processing location, including logs, backups and support access, with safeguards recorded for any transfer outside the EU.
- Retention and deletion of prompts and outputs on the provider’s side.
- Subprocessors, and how you are told about changes.
- Security measures and breach notification.
Running hosted models in an EU region inside your own Microsoft Azure, Google Cloud or AWS account often simplifies this, because the data stays within an environment you already govern.
How do you handle access, correction and erasure requests?
People keep their rights when AI is involved. Plan for them before launch:
- Access. Your search for a person’s data must include AI logs, stored outputs and any index built from your documents.
- Correction. If the AI states something wrong about a person, fix the source and make sure the error does not keep reappearing.
- Erasure. Delete the source record, re-index, and remove stored prompts and outputs about that person.
- Objection. Where you rely on legitimate interests, people can object, so you need a way to exclude them from the processing.
Test each of these with a dummy record before go-live.
What about automated decisions about people?
GDPR gives people specific protections against decisions based solely on automated processing that have legal or similarly significant effects on them, such as refusing credit, a job application or a service.
The practical answer for most companies is to keep a person in the decision. The AI drafts, scores or recommends; a trained person reviews and decides, with the authority and time to disagree. Tell people when AI is involved, and give them a route to a human, an explanation and a way to contest the outcome. A rubber-stamp review does not count as human involvement.
How do you build GDPR into each stage of the project?
| Stage | GDPR question | Evidence to keep |
|---|---|---|
| Use case | What personal data is involved, for what purpose and on which lawful basis? | Purpose statement, lawful basis, updated privacy notice |
| Design | What are the risks to people and how are they reduced? | DPIA or short risk assessment |
| Build | Is personal data minimised, masked and kept in a controlled region? | Data flow diagram, retention settings, processing agreements |
| Launch | Can people exercise their rights and reach a human? | Tested access and erasure process, escalation route |
| Operation | Is the system still accurate, secure and used as intended? | Sample reviews, access logs, incident records |
Record each answer in your record of processing activities so accountability is visible. A legal and ethical AI audit can check the whole picture for systems already running. For projects not yet chosen, an AI audit can flag the personal data each candidate use case would involve before you commit to it.
Key takeaways
- GDPR applies to inputs, retrieved context, outputs, logs and test sets, not only to the source data.
- Choose a lawful basis per purpose and do not reuse data for a new AI purpose without checking compatibility.
- Start the data protection impact assessment during design, because it often changes the architecture.
- Minimise personal data in prompts and logs, and prefer retrieval over training on personal data.
- Sign processing agreements covering training, location, retention and subprocessors, and test access and erasure requests before launch.
- Keep a person in decisions that significantly affect people.
If you want an AI project designed with GDPR built in from the start, talk to us.
Frequently asked questions
Can we use personal data to test an AI system before launch?
Yes, if the testing has a lawful basis and is covered by your assessment, but use as little as possible. Pseudonymise or mask test sets where the task allows, keep them in the same controlled environment as production, and delete them when testing ends.
Does sending data to a model hosted by a hyperscaler move it outside the EU?
Not necessarily. Microsoft Azure, Google Cloud and AWS let you run hosted models in an EU region inside your own account. Check where prompts, logs and any support access are processed, not only where the model runs, and record the safeguards for any transfer outside the EU.
Is a customer's chat with an AI assistant personal data?
Usually, yes. A conversation linked to a name, phone number, email address or account is personal data, and so is anything the AI writes about that person. Treat chat logs like any other customer record, with a retention period and access controls.
Who is responsible for GDPR compliance when an outside team builds the AI system?
The organisation that decides why and how the data is processed remains responsible, normally your company as controller. The builder and every service in the chain act as processors under written agreements, but they do not take over your obligations.
Have a problem AI could solve?
Talk to Arqera Labs