Compliance and security8 min read
GDPR for AI projects: what to settle before personal data reaches a model
AI projects touch personal data in more places than people expect: prompts, documents, logs and vendor servers. Here are the GDPR questions to answer before go-live, in plain terms.
Ryze Labs engineering team
Key takeaways
- Every AI use that touches personal data needs a documented purpose and lawful basis, and the people concerned need to be told about it.
- Your AI vendor usually acts as a processor, so you need a data processing agreement and a clear answer on where data goes and whether it is used for training.
- Data minimisation and careful logging are engineering decisions made early in the design, not paperwork added at the end.
An AI project rarely starts as a data protection project. Someone wants a chatbot that answers customers, or a tool that summarises support tickets, and the first prototype runs on real data within a week. By then, personal data is already flowing into prompts, vector databases, logs and a vendor's servers, and nobody has written down why.
The GDPR, Regulation (EU) 2016/679, does not ban any of this. It asks you to know what you process, why, on what legal basis, with whom, and how you protect it. This article walks through the questions that come up in almost every AI project and where in the regulation they sit.
Where personal data enters an AI project
Before any legal question, draw the data flow. In a typical AI system, personal data can appear in at least five places, and each one needs an answer.
- Inputs: what users type or upload, such as names, order numbers, health details in a message, or a CV.
- Context: documents and records retrieved to ground the answer, such as CRM entries, emails or contracts.
- The model provider: what is sent to the API, where it is processed and how long the provider keeps it.
- Outputs: summaries, drafts or classifications that may contain or infer personal data.
- Logs and evaluation sets: conversation histories and test cases kept for debugging and quality checks.
A one-page diagram of these flows is the most useful document you can bring to your DPO. It turns an abstract discussion into concrete questions about specific systems.
Lawful basis and transparency
Art. 6 GDPR requires a lawful basis for every processing of personal data. In an AI project, that means a lawful basis for each purpose, not one for the project as a whole. Answering customer questions, improving the system and analysing conversations are different purposes and may need separate assessment.
Arts. 13–14 require you to inform people about the processing, whether you collect data from them directly or obtain it elsewhere. In practice, your privacy notice should describe the AI use in plain language, including the vendors involved. If a chatbot is the entry point, a short note in the chat window with a link to the notice is a sensible place to start. The AI Act adds its own disclosure duty for chatbots, covered in our article on the EU AI Act for SMEs.
Your AI vendor and the DPA
When a model provider or AI platform processes personal data on your behalf, it typically acts as a processor under Art. 28. That means you need a data processing agreement (DPA) with it. Most large vendors offer a standard DPA; read it rather than assume.
Alongside the DPA, get clear answers to a few practical questions. They often decide which vendor or setup you choose, which is why they also appear in our guide to choosing an AI model.
- Are your inputs and outputs used to train or improve the vendor's models, and can that be switched off?
- In which regions is data processed and stored, and can you choose an EU region?
- How long does the vendor keep prompts and outputs, and can you shorten or disable that?
- Which subprocessors are involved, and how are you told about changes?
These questions apply to a workplace assistant licensed for all staff just as much as to an assistant you build yourself. How the two options differ in control over data, hosting and logs is covered in our comparison of general AI assistants and custom ones.
International transfers
If personal data leaves the EU, Arts. 44 and following apply. For US companies certified under the EU–US Data Privacy Framework, transfers can rely on that framework. For vendors that are not certified, standard contractual clauses (SCCs) are the common route.
Check the certification status of each US vendor and subprocessor rather than assuming it. Where you can, choose EU-hosted processing. It does not remove every question, but it makes the transfer analysis much simpler.
When you need a DPIA
Art. 35 requires a data protection impact assessment (DPIA) where processing is likely to result in a high risk to people's rights and freedoms. Whether your project meets that threshold is a judgement your DPO should make with you, but AI projects that process employee data, large volumes of customer conversations or sensitive information are clearly worth raising early.
A DPIA is more useful when it is done during design rather than after. It forces the questions that improve the system anyway: what data is really needed, who can see outputs, what happens when the model is wrong, and how people can object.
Automated decisions and human review
Art. 22 gives people the right not to be subject to a decision based solely on automated processing that produces legal effects or similarly significant effects for them. Rejecting a loan application, a job application or an insurance claim are the kinds of decisions people have in mind.
The engineering answer is to design the AI as decision support where the stakes are high. A person reviews the case, sees the AI's reasoning and sources, and can easily disagree. A review that only rubber-stamps the output is not meaningful oversight. Our article on human-in-the-loop AI covers approval steps and audit trails in detail.
Privacy by design: minimisation and logging
Art. 25 requires data protection by design and by default. For AI systems, most of that work is concrete engineering:
| Design decision | What it looks like in practice |
|---|---|
| Send less to the model | Strip or mask identifiers that the task does not need before the prompt is built |
| Retrieve narrowly | Limit retrieval to records the current user is allowed to see |
| Log with care | Keep the logs you need for debugging and audit, mask personal data, restrict access |
| Separate test data | Build evaluation sets from synthetic or anonymised cases where possible |
| Define deletion | Agree retention for prompts, outputs and logs with your DPO and enforce it in code |
Logging deserves special attention. You need logs to investigate errors and show what the system did, but full conversation logs are also a store of personal data. Decide what each log is for, keep only that, and protect it like any other customer data. The same access controls also limit damage from attacks such as prompt injection, discussed in our article on AI security.
Example
Illustrative example: a support chatbot for a 30-person online shop
A fictional online shop plans a chatbot that answers order questions. The team maps the flow: customer message, order lookup in the shop system, a prompt to a hosted model, the reply, and a log. They decide the model only receives the order status and delivery date, not the customer's address. Logs mask email addresses and phone numbers. The vendor's DPA is signed, EU processing is selected, and training on inputs is switched off. The privacy notice gets a short paragraph on the chatbot, and the DPO reviews whether a DPIA is needed.
Checklist before go-live
- Draw the data flow: inputs, context, vendor, outputs, logs.
- Document the purpose and lawful basis for each processing step with your DPO.
- Update the privacy notice and add a short notice where people meet the AI.
- Sign the DPA with each AI vendor and record answers on training, region, retention and subprocessors.
- Confirm the transfer mechanism for any non-EU vendor: Data Privacy Framework certification or SCCs.
- Ask your DPO whether a DPIA is required, and if so, do it before launch.
- Keep a person in the loop for any decision with legal or similarly significant effects.
- Implement minimisation, masking, access control and deletion in code, then test them.
Most of these steps take hours, not weeks, if they happen at the start. When we build AI chatbots and other custom systems, this checklist is part of the design phase. If you are planning a project and want a second pair of eyes on the data flow, talk to us.
General information, not legal, tax or investment advice.