GDPR for AI Agents: Data Minimisation, Logging and Consent
GDPR applies to AI agents whenever they process personal data, which is almost always: prompts, retrieved documents, tool results and logs all contain it. The essentials are a lawful basis for each purpose, strict data minimisation in what the agent can access and retain, transparent information to users, safeguards for automated decisions and, in many cases, a data protection impact assessment.
This article focuses on the agent-specific problems: broad tool access, context windows that accumulate data, logs that become shadow databases, and consent flows that users click through. It is practical guidance, not legal advice; involve your data protection officer early.
Why are agents harder to align with GDPR than ordinary features?
A traditional feature processes a defined set of fields for a defined purpose. An agent is given a goal and decides which data to fetch. If it has read access to an entire mailbox to find one invoice, it processes far more personal data than the task requires, including data about third parties who never interacted with your product.
Agents also chain processing steps: retrieval, model inference at a vendor, tool calls to other services, and storage in memory or logs. Each step needs a purpose, a legal basis and a place in your records of processing activities.
Roles matter as well. In most setups you remain the controller for agent processing, while the model provider acts as a processor. Some vendors, however, reserve rights to use data for their own purposes, which can make them a separate controller and changes your obligations. Clarify this for every vendor before connecting real user data, and repeat the check when terms change.
How do you apply data minimisation to an agent?
Minimisation for agents is mostly about scoping access rather than trimming form fields. Useful techniques:
- Narrow tool scopes: read-only where possible, limited to specific folders, labels, record types or date ranges.
- Task-scoped retrieval: fetch only what is needed for the current step instead of loading whole histories into the context.
- Redaction before inference: mask identifiers, payment data or health information the model does not need.
- Ephemeral context: clear working memory after the task unless the user explicitly saves something.
- Separate memory from logs: what the agent remembers for the user and what you keep for accountability are different purposes with different retention periods.
What should you log, and for how long?
Accountability requires logs; storage limitation requires restraint. The answer is purpose-specific logging. Record which tools were called, which records were touched (by ID), what action was taken and who approved it. Avoid storing full prompts and documents by default, or store them encrypted with short retention and restricted access.
Define retention per log type, document it, and automate deletion. Our guide to audit trails for AI agents suggests a log structure that serves security and compliance without becoming an uncontrolled copy of user data.
Want an expert opinion on your product?
Talk to a UX expert or AI Code Engineer — 30 minutes, free, no obligation.
Book a call for freeWhen does Article 22 on automated decisions apply?
Article 22 gives people the right not to be subject to decisions based solely on automated processing that produce legal or similarly significant effects, with exceptions for contract necessity, legal authorisation or explicit consent. Even then, safeguards are required, including the right to obtain human intervention, to express a point of view and to contest the decision.
Agents that reject applications, cancel accounts, set prices for individuals or deny refunds can fall into this category. Design the escalation path as a first-class feature: an obvious way to request human review, a short explanation of the main reasons, and a response time users can rely on.
How do you design consent and information that users understand?
Consent is only one of six legal bases, and for many agent features contract performance or legitimate interests fit better. Where consent is the basis, it must be freely given, specific, informed and unambiguous, and as easy to withdraw as to give.
For connecting data sources, show what the agent will read, what it will do, and how long it keeps data, in one screen and plain language. Ask for permissions incrementally when the agent first needs them, not all at launch. Our article on agent permissions and consent UX has patterns for these dialogs.
Test these screens with real users before launch. If people cannot explain afterwards what they agreed to, the consent is unlikely to count as informed, however well the legal text is drafted.
Which documents should be in place before launch?
If your agent also falls under the EU AI Act, align the DPIA with your AI risk assessment to avoid duplicate work; our AI agent compliance guide shows how the frameworks fit together.
- Update your records of processing activities with every agent purpose and data flow.
- Run a data protection impact assessment where processing is likely to result in high risk; many agent use cases qualify.
- Sign data processing agreements with model and tool vendors and check international transfer mechanisms.
- Update privacy notices so they describe agent processing in user terms.
- Define retention periods and automated deletion for context, memory and logs.
- Prepare processes for access, rectification and erasure requests that include agent memory and logs.
Frequently asked questions
Can we send personal data to an LLM provider?
Often yes, if you have a lawful basis, a data processing agreement, suitable transfer safeguards where data leaves the EEA, and you have checked how the provider uses and retains inputs. Minimise and redact what the model does not need.
Do we need a DPIA for every agent?
Not automatically, but agents that process personal data at scale, evaluate people or use novel technology often meet the high-risk criteria. Document your screening decision either way.
How do we handle erasure requests for agent memory?
Design memory so it can be searched and deleted per user from the start. Include memory stores, vector indexes and logs in your erasure process, and test it before launch.
Can you review our consent and permission flows?
Yes. Our UX reviews assess whether users understand what the agent accesses and how to withdraw, and suggest concrete improvements. Book a call for free to discuss your product.
Book a call for free
From UX audits and Agentic UX reviews to AI development, agentic coding workshops and publishing your AI-built app on the App Store and Google Play — we help you ship. 24/7 call support in English and German.