Editorial notice: these briefings are general information for business and engineering readers, current at the date shown. They are not legal advice. Check the regulator’s current guidance and take qualified advice before acting.
Key takeaways
- Decide and document the lawful basis for each processing purpose before building — training, inference and evaluation can differ.
- Data minimisation and storage limitation are engineering requirements: fewer fields, shorter retention, metadata-first logs.
- Many AI systems that process personal data are likely to need a DPIA; start it alongside the design, not after it.
- Design for data subject rights from day one, including finding and deleting personal data in logs, caches and indexes.
Engineering teams building AI systems in the UK are regularly told to “make it GDPR-compliant”. That instruction is not actionable on its own. This briefing translates the main requirements of UK data protection law, and the Information Commissioner’s Office (ICO) guidance on AI, into decisions an engineering team can make, test and document.
It is general guidance for technical teams, not legal advice. Your data protection officer or legal adviser should confirm how it applies to your situation.
1. The legal frame in one paragraph
In the UK, personal data is governed mainly by the UK GDPR and the Data Protection Act 2018, as amended by the Data (Use and Access) Act 2025, whose provisions are being commenced in stages. The ICO regulates and enforces this regime and has published detailed guidance on AI and data protection, including joint guidance with The Alan Turing Institute on explaining AI-assisted decisions. Its guidance is updated periodically, so check the current version before relying on any specific point.
2. Principles as engineering requirements
Article 5 of the UK GDPR sets out the core principles. Each maps to concrete design work:
| Principle | Engineering translation |
|---|---|
| Lawfulness, fairness and transparency | A documented lawful basis per purpose; clear notices to users; no surprising uses of data |
| Purpose limitation | Separate purposes (for example, inference versus model improvement) recorded and enforced in code paths |
| Data minimisation — Art 5(1)(c) | Send only the fields a task needs; strip identifiers before prompts where possible |
| Accuracy | Validate outputs about individuals; allow correction; avoid presenting generated text as verified fact |
| Storage limitation — Art 5(1)(e) | Retention periods for prompts, outputs, logs, caches and embeddings; automated deletion |
| Integrity and confidentiality | Encryption, access control, secret management, supplier security review |
| Accountability | Records of processing, DPIAs, decision logs, named owners |
If a principle has no corresponding ticket in your backlog, it is probably not being met.
3. Choose and record the lawful basis
Article 6 requires a lawful basis for each processing purpose. For AI systems, purposes often split into several stages, and each may need its own analysis:
- Using AI to deliver a service a customer has asked for may rely on contract.
- Internal efficiency uses, such as summarising support tickets, often rely on legitimate interests, which requires a documented three-part assessment: purpose, necessity and balancing against individuals’ interests.
- Improving or training models on customer data is a different purpose from serving the customer. It needs its own basis and, often, its own transparency.
- Special category data — such as health, ethnicity or biometrics — also needs a condition under Article 9 and should be excluded by default unless there is a clear justification.
Record the basis for each purpose in the system’s documentation and keep the code paths separate, so that a change of purpose cannot happen silently.
4. Data protection impact assessments
Article 35 requires a data protection impact assessment (DPIA) where processing is likely to result in a high risk to individuals. The ICO’s guidance indicates that many AI uses involving personal data will meet that threshold, particularly where they involve new technologies, large-scale processing, profiling or decisions with significant effects.
Treat the DPIA as a design document, not a compliance form completed at the end:
- Describe the processing: data flows, suppliers, retention, purposes.
- Assess necessity and proportionality: could the goal be achieved with less data?
- Identify risks to individuals: inaccuracy, unfair outcomes, security breaches, loss of control.
- Record measures that reduce each risk, and who owns them.
- Revisit the DPIA when the system changes materially — a new model, data source or purpose.
5. Automated decision-making
The UK GDPR has long given individuals protections against decisions based solely on automated processing that have legal or similarly significant effects. The Data (Use and Access) Act 2025 reforms these rules, broadly allowing more automated decision-making where appropriate safeguards are in place, while keeping tighter restrictions where special category data is involved.
Whatever the precise legal position at the time you build, good engineering practice is consistent:
- Know which decisions in your system are made without meaningful human involvement.
- Inform individuals when significant decisions about them are automated.
- Enable them to make representations, obtain human intervention and contest the decision.
- Make human review real: reviewers need the authority, time and information to change outcomes, not just to approve them.
6. Designing for data subject rights
Individuals can ask to access, correct or erase their personal data, among other rights. Subject access requests generally need a response within one month. AI systems create new places where personal data hides:
| Location | Design response |
|---|---|
| Prompt and output logs | Index by user or case identifier so they can be found and deleted |
| Caches | Short expiry; include in deletion routines |
| Vector indexes and embeddings | Store document and person identifiers alongside vectors so entries can be removed |
| Evaluation sets | Anonymise before inclusion; record provenance |
| Fine-tuning data | Keep a record of which data was used; assess whether removal is required and feasible |
| Supplier systems | Confirm the supplier’s retention and deletion processes in the contract |
Test rights handling as you would any other feature: create a test subject, generate data across the system, then run access and deletion requests end to end.
7. Transparency people can understand
Privacy notices should explain, in plain language, when AI is used, for what purposes and with what effect. For decisions that matter to people, the ICO’s guidance on explaining AI-assisted decisions suggests providing explanations about the rationale, responsibility, data, fairness, safety and impact of a decision. In product terms, this often means:
- A short notice at the point of use: “This reply was drafted with AI and checked by our team.”
- A longer explanation in the privacy notice.
- For significant decisions, a route to ask why and to request human review.
8. International transfers
Many AI services process data outside the UK. Before sending personal data abroad, identify the transfer mechanism. Common options include UK adequacy regulations, the UK–US data bridge for transfers to certified US organisations, and the ICO’s International Data Transfer Agreement (IDTA) or the UK Addendum to the EU standard contractual clauses, usually with a transfer risk assessment. Record the mechanism for each supplier in your records of processing.
9. Engineering checklist
- Lawful basis documented for each purpose, with separate code paths for model improvement.
- DPIA started at design stage and linked to the backlog.
- Prompts built from the minimum necessary fields; identifiers removed where the task allows.
- Retention periods configured and enforced automatically for logs, caches and indexes.
- Personal data in AI stores is findable by subject for access and deletion.
- Automated decisions identified, with human review routes in place.
- Supplier contracts cover processor terms, sub-processors, retention, training use and transfers.
- Security measures reviewed, including access control and incident response.
- Privacy notice updated in plain language.
- Records of processing updated and reviewed on a schedule.
Why this is worth the effort
Data protection done well is a design discipline, not a brake. Systems that minimise data, keep clear records and respect people’s rights are also easier to secure, cheaper to run and simpler to explain to customers, auditors and boards.