AI and GDPR meet wherever an AI system touches personal data: when a model is trained on it, when a prompt contains it, or when the system makes decisions about people. The GDPR has applied across the EU since 25 May 2018. This guide sets out the provisions that matter most for AI, for in-house counsel deciding whether a tool can be used and on what terms.
Understanding AI and its recent development
AI is now built into everyday tools, from virtual assistants to predictive analytics, and generative AI has put large language models into ordinary office work. These systems depend on large amounts of data, and much of it is personal. That reliance is what brings them within data protection law, and it's why responsible, explainable AI has become a compliance topic as much as a technical one.
Understanding GDPR
The GDPR gives people control over their personal data and harmonised data protection law across the EU. It applies to organisations established in the EU, and to organisations outside it that offer goods or services to, or monitor, people in the EU (European Commission: data protection explained (opens in a new tab)).
It sets out seven principles for handling personal data:
- lawfulness, fairness and transparency;
- purpose limitation;
- data minimisation;
- accuracy;
- storage limitation;
- integrity and confidentiality;
- accountability.
Every processing operation also needs one of six lawful bases. Consent is one of them; others include contract, legal obligation and legitimate interests (GDPR as adopted, Article 6 (opens in a new tab)). A data protection officer (DPO) is required for public authorities or bodies (except courts acting judicially), and where core activities consist of large-scale regular and systematic monitoring or large-scale processing of special-category or criminal-conviction/offence data; other legal requirements may also apply. Controllers must notify the competent supervisory authority without undue delay and, where feasible, within 72 hours of awareness, unless the breach is unlikely to result in a risk to people’s rights and freedoms.
The UK has its own amended UK GDPR. Its automated-decision rules now differ from EU Article 22: current Articles 22A–22C govern significant solely automated decisions, safeguards and special-category restrictions. Check the UK provisions separately (Article 22A (opens in a new tab); Article 22B (opens in a new tab); Article 22C (opens in a new tab)). The ICO’s AI guidance (opens in a new tab) remains useful guidance, but it is under review after the Data (Use and Access) Act 2025 changes.
What does GDPR say about AI?
The GDPR mentions social networks, websites and links, but not artificial intelligence. Its drafters were dealing with the internet problems the 1995 Data Protection Directive hadn't foreseen. Even so, several provisions apply directly to AI.
Profiling and automated decision-making
Article 22 gives people the right not to be subject to a decision based solely on automated processing, including profiling, that produces legal effects for them or similarly significantly affects them, unless an exception applies (the decision is necessary for a contract, authorised by law, or based on explicit consent). Contract- or consent-based exceptions require safeguards including human intervention and the ability to express a view and contest the decision; law-authorised decisions require the safeguards specified by law. Article 22(4) adds conditions where special-category data is involved. Articles 13 to 15 require the specified information about automated decision-making, its logic, significance and envisaged consequences (GDPR as adopted, Articles 13–15 and 22 (opens in a new tab)).
AI and the EU AI Act
Since 2024, the EU also has a dedicated law on AI. The AI Act takes a risk-based approach and applies alongside the GDPR, not instead of it (European Commission: AI Act (opens in a new tab)). A system can be compliant under one and not the other. See what the EU AI Act requires.
GDPR principles affecting AI
Some principles bear on AI more than others:
- Accountability. Decisions with a significant effect on people call for governance: documented risk assessments, design reviews and controls through the life of the system.
- Fairness. Data mustn't be processed in ways people wouldn't expect or that harm them. Biased training data reproduces bias in the output, so organisations need to test the data and its impact.
- Data minimisation and security. An AI system shouldn't process more personal data than its purpose requires, and the data must be kept secure.
- Transparency. People should receive the transparency information required by Articles 12?14; provide automated-decision information where Articles 13?15 require it.
Issues with AI and GDPR compliance
Generative AI tools such as chatbots run on large language models trained on vast amounts of text. Personal data can end up in training data, in prompts, or in what the model produces, and it's hard to know how much. To show compliance, an organisation should be able to answer:
- What personal data is processed, and where is it stored?
- Has the model been tested for learned or programmed bias?
- Are there sector-specific rules (health, finance, employment)?
Synthetic data may reduce use of personal data, but check whether individuals remain identifiable.
AI and the right to be forgotten
Article 17 gives people the right to have their personal data erased in defined cases, for example when it's no longer needed for its original purpose or when they withdraw consent and there's no other lawful basis (GDPR as adopted, Article 17 (opens in a new tab)). The right is subject to Article 17 exceptions, including legal obligations and legal claims. For the background, see the right to be forgotten online.
With AI, erasure isn't simple. Deleting a record from a database is one thing; a trained model may have learned from the data, and it can be hard to show that it no longer holds or reproduces it. Plan for erasure requests before training, not after.
What GDPR requires when personal data goes into an AI prompt
Data fed into an AI system is "input data"; providers of language models often call the instruction part of it a "prompt". A company that puts personal data into prompts may be a controller or a processor, depending on how much it controls the processing, what data it includes, what the AI can access, and what happens to the data afterwards. As a controller, it must meet these requirements (GDPR as adopted (opens in a new tab)):
| GDPR article | What it requires | What it means for AI use |
|---|
| Art. 6: lawful basis | One of six lawful bases | Identify and document a valid basis for the particular purpose; meet any additional special-category conditions |
| Art. 30: records of processing | Written records of purposes, categories, recipients, transfers, retention and security | The under-250-employee exception does not cover risky or non-occasional processing, or special-category or criminal-conviction/offence data |
| Art. 5(1)(c), (e): minimisation and storage | Use and keep no more data than needed | Limit what goes into prompts and how long the tool keeps it |
| Arts. 12 to 14: privacy notice | Provide the transparency information required by Articles 12–14, subject to applicable exceptions | Cover AI processing; automated-decision information where Articles 13–15 require it |
| Art. 15: access | Provide access to personal data and a copy, subject to applicable exceptions and others’ rights | Assess existing personal data in inputs or retained training sets; no automatic right to all training material |
| Art. 16: rectification | Correct inaccurate personal data under the applicable conditions | Includes qualifying inaccurate personal data generated by AI; check applicable exceptions and rights |
| Art. 17: erasure | Delete data on listed grounds, subject to exceptions including legal obligations and legal claims | Assess prompts, logs and retained data sets under those conditions |
| Arts. 7(3), 21: withdrawal and objection | Let people withdraw consent or object | Withdrawal stops future processing based on that consent and does not affect earlier lawful processing. Direct-marketing objections require stopping that processing; other Article 21 objections may be overridden by compelling legitimate grounds or legal claims |
| Art. 35: DPIA | Assess high-risk processing, including new technologies | Decide whether the AI use needs an impact assessment |
| Arts. 44 to 50: transfers | Protect data sent outside the EEA | Check where the AI provider hosts and processes the data |
| Art. 28: processors | Contract terms with processors | Determine the provider’s role; Article 28 terms are required where it acts as processor |
For the wider privacy framework, see privacy law and data security basics.
When AI and data cross borders
AI tools are rarely confined to one country. The provider may be in the United States, the data hosted in Ireland and the users spread across the EU, the UK and beyond, each with its own regulator and rules. When the question turns on a local law you don't practise, instruct counsel admitted there. On LegaMart you post the instruction and counsel admitted in that jurisdiction send proposals; you choose whom to instruct. See how in-house counsel instruct counsel abroad.
Conclusion
The GDPR is neutral about AI. It doesn't prohibit it, but it makes AI that uses personal data accountable: a lawful basis, limits on automated decisions, real answers to access and erasure requests, and contracts with the providers behind the tools. With the AI Act now in force alongside it, data protection and AI governance have become one compliance task. Counsel who understand both are the ones who can tell the business when an AI tool is safe to use.
Next steps: more guides on practice and regulation