esc
  • WorkflowsPages
  • Case studiesPages
  • Machine Learning FoundationsLearn
  • AI EngineeringLearn
  • AI Guardrails & Red TeamingLearn
  • UI/UXLearn
  • Design SystemsLearn
  • Production System DesignLearn
  • AI papersPages
  • Interview KitPages
  • Book a callContact
Let’s talk

I’ll build the agent for it.

GDPR Basics for AI Apps

How GDPR applies to an AI app that handles personal data: roles, what to send and keep, people's rights and impact checks, for your AI interview.

In short

GDPR is the EU privacy law. An AI app that sends people's personal data to a model must know who is responsible, send and keep only what the task needs, have a written contract with its vendor, and let people correct, copy or erase their data.

12 min readIntermediateCommon · estimateFacts checked 27 November 2026

Say it out loud

Read it once, then say it without looking. Start with the short one; use the long one when they ask you to go deeper.

GDPR is the EU's privacy law. When my AI app sends a person's data to a model, I treat myself as responsible for that data. I check the vendor has a contract that limits what it does with the data, send only what the task needs, and set how long copies are kept. People can ask for a copy of their data or have it erased, so the app must be able to find and delete it. For risky uses I write an impact check before launch.

What is GDPR, in plain words?

GDPR is the General Data Protection Regulation, the European Union's privacy law. It has been enforceable since 25 May 2018. It reaches any organisation established in the EU, and any organisation elsewhere that offers goods or services to people in the EU or monitors their behaviour there.

Personal data is any information relating to an identified or identifiable person, such as a name, an email, a phone number or an IP address. A chat history that names someone counts too. An AI app meets this all the time, because users type it into prompts and documents carry it in. Microsoft's guide puts the core idea simply: the law gives people rights to manage the personal data an organisation collects about them.

Think of a hospital records desk. It may keep your file, but only for the care you came for, it has to show you what it holds, and it has to correct or remove it when you ask. A claims assistant that reads patient notes works the same way, and that is the picture to keep in mind.

Microsoft's guide lists six key principles of GDPR, starting with transparency, fairness and lawfulness. The guide also says to limit the processing of personal data to specified, explicit and legitimate purposes. Lawyers call this purpose limitation.

Key words

Personal data
Any information about an identified or identifiable person, such as a name or an email.
Controller
The party that decides why and how the data is used.
Processor
The party that handles the data for the controller, on its instructions.
Data subject
The person the data is about.
DPIA
A data protection impact assessment: a written risk check before a high-risk use.

Who is responsible, you or the vendor?

Two roles matter most. Microsoft's guide defines them like this.

  • “A legal person, public authority, agency, or other body that, alone or jointly with others, determines the purposes and means of the processing of personal data.”

    Microsoft, controller

  • “A natural or legal person, public authority, agency, or other body, that processes personal data on behalf of the controller.”

    Microsoft, processor

In most AI apps you are the controller for your users' data, and the model vendor is the processor. Some vendors play both parts. AWS says it acts as both a processor and a controller under the GDPR, so read the contract for each product instead of guessing.

Who does what under a vendor contract

The two roles

You: controller

decide why and how data is used

Vendor: processor

works on your instructions

Written contract (DPA)

sets what the vendor may do

Clear setup

roles and limits written down

  1. 1You set the purpose and the rules.
  2. 2The vendor agrees to work only on those rules.
  3. 3The signed contract sets the limits for both sides.
You decide why the data is used, and the vendor works on your instructions. The written contract sets the limits for both, so the setup is only clear once it is signed.

The contract carries the limits. That written contract is called a data processing addendum (DPA). Google's GDPR page says audit rights must be granted to controllers in their contracts with processors, and that data put into its systems is processed only on the customer's instructions. OpenAI says it can sign a Data Processing Addendum for its business and API products, so the contract can be in place before launch.

Tip

Interviewers like roles first. Say who decides why the data is used, who signs the contract, and what the vendor may do with the data, before you talk about models.

What should an AI app send, keep and delete?

Three habits do most of the work: send less, keep less, and be able to delete every copy.

  1. 1

    Send less

    Send only the fields the task needs, and strip the rest before the model call.

  2. 2

    Check the defaults

    Check the vendor's training and retention settings in writing.

  3. 3

    Map every copy

    Keep a map of logs, traces, saved chats and search indexes, so a deletion request can reach them all.

Where personal data travels in a claims assistant

Claim file

name, phone, medical note

Strip what's not needed

the model never sees the phone

Model vendor

acts on your instructions

Logs and saved copies

kept until your limit ends

Deleted on request

the person's right to erase

  1. 1The full claim file reaches your app first.
  2. 2Only the fields the task needs go on to the model.
  3. 3The vendor and your own logs may keep copies.
  4. 4A deletion request removes every copy.
A claim file holds personal and health details. Only the needed fields reach the model, and every copy left behind has to be findable and deletable when a person asks.

Purpose matters too. Microsoft's guide says you also need a "lawful basis" to process personal data, which is the legal reason for using it. Reusing the data to train something new is a new purpose. It must be compatible with the purpose you first collected the data for, or you need a new lawful basis. For decisions that change someone's money or rights, such as a refused claim, I would keep a person reviewing the model's output before it takes effect.

Vendors differ, so the default matters. Microsoft's Azure OpenAI privacy page says prompts and outputs are not used to train any generative AI foundation models without your permission or instruction. OpenAI says that by default it does not use business data to train its models.

How long a vendor keeps data, called retention, is a setting too. OpenAI's enterprise privacy page says deleted conversations are removed from its systems within 30 days, unless the law requires keeping them. Check the number in your own contract, because policies change.

Moving data abroad is a separate question. If a vendor processes data outside the European Economic Area (EEA), the transfer needs a lawful route. The EU's Standard Contractual Clauses (standard contract terms the EU approves for moving data abroad) are one such route, and AWS calls them a pre-approved data transfer mechanism under GDPR.

Here is a small redaction step (removing details before the model sees them) in plain Python. It drops the fields the task doesn't need and masks an email and a phone number in free text. Regex patterns catch only the obvious cases, so a real system also needs a proper personal data check and a review.

Python
import re

claim = {
    "claim_id": "C-88213",
    "policy_id": "P-7731",
    "customer_name": "Lena Hoffmann",
    "email": "lena.hoffmann@example.com",
    "phone": "+49 30 5550 1423",
    "note": "Call lena.hoffmann@example.com on +49 30 5550 1423 about the insulin pump claim",
}

KEEP = ["claim_id", "policy_id", "note"]

def mask(text):
    # Mask obvious emails and phone numbers in free text; regex is a first net, not a full PII check.
    text = re.sub(r"[\w.]+@[\w.]+", "[EMAIL]", text)
    return re.sub(r"\+?\d[\d ]{8,}\d", "[PHONE]", text)

safe = {k: claim[k] for k in KEEP}
safe["note"] = mask(safe["note"])
print("Sent to model:", safe)
print("Kept out:", sorted(set(claim) - set(KEEP)))

Output

Sent to model: {'claim_id': 'C-88213', 'policy_id': 'P-7731', 'note': 'Call [EMAIL] on [PHONE] about the insulin pump claim'}
Kept out: ['customer_name', 'email', 'phone']

What rights do people have, and when do you need an impact check?

People keep rights over their data. Microsoft's guide says the GDPR lets individuals correct inaccurate data, have data erased or its processing restricted, receive their data, and send it to another controller. In your app, that means you must be able to find every copy of a person's data.

A data protection impact assessment, or DPIA, is a written risk check you do before a high-risk use of personal data. The GDPR asks for one when a use is likely to be high risk. Health data is one of the special categories with stricter rules, so a claims system that reads medical notes is a clear case to check.

  • “Data controllers are required under GDPR to prepare a DPIA for data operations that are "likely to result in a high risk to the rights and freedoms of natural persons."”

    Microsoft, DPIA

  • Without the check

    Medical notes go out with every prompt

    Nobody checked what leaves the building or how long it stays.

  • With the check

    Only what the task needs goes

    Notes stay out unless a claims handler needs them, and copies expire.

A mid-size insurer in Germany runs a claims assistant that reads about 4,000 claim files a month. Each file holds a name, a policy number and sometimes a medical note. Medical notes are health data, one of the special categories with stricter rules. So the team does a DPIA, drops medical notes from prompts unless a claims handler needs them, and deletes stored copies once the claim closes and a set retention period passes.

What does the interviewer want to hear?

A strong answer covers

  • A plain definition: personal data is anything that identifies a person.
  • Roles: you are usually the controller, the vendor the processor, and a contract ties them.
  • Send less, keep less, and be able to delete every copy.
  • Vendor training and retention defaults differ, so check them in writing.
  • A DPIA before launch for high-risk uses, such as health data.
  • An honest limit: the law sets the goals, and the design choices are yours to defend.

Common traps

  • Trap"Our vendor is GDPR certified, so we are covered."

    BetterA vendor's compliance page doesn't make your app compliant. You still choose what to send and keep.

  • Trap"We removed the names, so it is anonymous."

    BetterRemoving names is often not enough. A chat about a rare condition can still point to one person, so treat it as personal data.

  • Trap"Personal data only means names and emails."

    BetterAny detail that can identify a person counts, including IP addresses, voice recordings and chat history.

Can you spot the weak setup?

Spot the weakest setup

Which setup is the weakest for a patient-notes summariser?

Quick check

You plan to send health notes to a model vendor's API. What comes first?

Can you answer these from memory?

Flash cards · tap a card to flip it

1 / 6

What will they ask next?

  1. Q212How do you detect and redact PII?13 min
  2. Q213What is sensitive information disclosure?12 min
  3. Q242How do you log without storing sensitive data?11 min
  4. Q460What are the EU AI Act risk tiers?9 min
  5. Q463Auditability and audit logs?11 min
  6. Q464Data retention and zero-data-retention?13 min

Last updated on 27 November 2026

Building an AI app that handles customer or patient data?

I design and build AI products and agents, the interface and the system behind it, including the data flows that privacy rules care about. Book a short call and tell me what data your app touches.