Analysis · Legal AI and data control
Is an email service the same as AI service?

There’s a discussion about how legal teams approach AI services, specifically if there’s a difference between using Gmail or Outlook and using some cloud-based legal AI tool. Since lawyers already use cloud based email for years, why would they hesitate to use AI services sitting in the cloud?
Obviously the first question that has to be answered is the contract between the service provider and the legal company. If that contract has the appropriate counter measures concerning data retention, including in particular the clause forbidding the use of the data to train the model and similar requirements regarding compliance with GDPR, then on the surface it seems that from the legal perspective the company using AI is compliant.
The purpose of processing matters
But that’s just a part of the picture. One of the primary requirements of GDPR is the properly determined purpose of the processing. Consent is not the default legal basis, though. Article 6(1) GDPR lists six equally valid legal bases, and a law firm typically processes client data to perform the engagement (Art. 6(1)(b)), to comply with legal obligations such as AML checks (Art. 6(1)(c)) or on the basis of its legitimate interest (Art. 6(1)(f)). Whatever the basis, it is tied to a specific purpose (purpose limitation, Art. 5(1)(b) GDPR), and any new purpose must pass the compatibility test of Article 6(4) GDPR, unless the new processing is based on a fresh consent of the data subject or on a specific provision of EU or Member State law.
What inbox access allows an AI agent to do
Let’s assume a scenario when a lawyer attaches an AI tool to their email inbox in order to speed up understanding of the vast amount of messages that are being exchanged every day. The problem that arises for the direct reason we use those tools – they are agentic, meaning that when we issue even a vague request for the AI, it interprets it and provides a succinct answer. And here is the catch – the mere definition of the agent assumes that it has the autonomy when performing the action. And yes – the agent asks for permissions when it is performing the plan, but these permissions are very generic, like “can I read your emails”, not “can I process mail X which was sent by Y as a response to your request”, since basically that slows down the agent to a point that there’s not sense in using it.
And what happens when the user gives the agent right to access the emails? The control is lost to the point that the agent executes the right to read emails without checking first whether processing that specific piece of information for this new purpose is compatible with the purpose for which it was collected (Art. 6(4) GDPR).
The agent processes that data wholesale. The inbox contains emails sent from current clients, past clients and potential clients. The agent makes no distinction – if the content of the email matches some phrase that content is processed, even though the purpose is not aligned with the purpose for which the sender’s data was collected. Let’s assume the lawyer asks: “How can I better respond to my clients”? Or “How can I improve communication with my clients?”, with very high probability the agent will analyze a vast amount of email exchanges and will come with some actionable items. But during that analyze there will be emails from people whose data was never collected for such a purpose.
Professional secrecy extends beyond clients
And it is not only clients. A lawyer’s inbox is full of personal data of people who are not clients at all: opposing parties, witnesses, counsel on the other side, employees of counterparties. Their data reached the lawyer indirectly for the purposes of a specific matter. Within the scope of that legal work, professional secrecy normally exempts the lawyer from having to send them a privacy notice under Article 14 GDPR (Article 14(5)(d)). Once an AI agent sweeps the inbox and repurposes those emails for something outside the case – such as profiling or “improving communication with my clients” – that exemption falls away. Under Article 14(4) GDPR, the lawyer would have to notify those third parties directly about the new use of their data, which in many cases is impossible without disclosing confidential case details and breaching professional secrecy.
Professional secrecy is not just a complication under the GDPR – it also operates as an independent barrier in its own right. When a client accepted email as the channel of communication with their lawyer, they accepted that their correspondence would be stored by an email provider. That acceptance does not automatically extend to handing their documents to a new provider, for a new purpose. Under professional secrecy the question is not whether the risk is comparable to the risk of email, but to whom the lawyer entrusts the client’s information and whether the client agreed to it. This is why many clients’ outside counsel guidelines prohibit putting their data into generative AI tools without prior consent, even if the same clients use cloud email themselves.
The uncertainty of agent autonomy
This is just an example of a scenario when client’s personal data is processed in a legally doubtful manner. The risks are growing, specifically with frontier labs imposing ad-hoc restrictions on what the agents can and can’t do and what they will do as the outcome of their autonomy. There’s a recent story on X about a person who wanted some details of a popular computer game to be copied into their own game. Setting apart legality of the user’s action (which in any case requires a legal scrutiny, to establish if it was or was not legal), the agent decided that not only it will refuse the action half-way, but will also stop other agents from following the instructions. The crucial detail is that those agents were run by a different AI provider. So the agent not only refused but made actions preventing other agents from following the user’s order.
We can imagine a legal case with a client that seeks advice in a criminal matter. The attorney asks AI for similar cases or for the interpretation of legal matters with supporting evidence. The agent then autonomously recognizes that someone tries to say avoid a sanction or penalty and autonomously decides that instead of refusing to provide the advice or search for the cases, provides hallucinated/false/misleading evidence. Can we rule out such a scenario?
The criminal example matters for one more reason. Data relating to criminal convictions and offences is subject to a separate, stricter regime under Article 10 GDPR, and health or other special-category data that often appears in such files falls under Article 9 GDPR. An agent that reads an inbox wholesale does not distinguish these categories – it processes them under the same generic permission as everything else.
Deleting an email and deleting its AI copies
The bottom line is that when we use a cloud-based email provider and we order it to delete a message, it deletes the message, while when we use a cloud-based AI and we order it to delete some message, we can’t be sure the outcome, due to the agent’s “autonomy”.
And even setting autonomy aside, deletion in an AI system is rarely a single operation. When a message is deleted from the inbox, its content may survive as entries in logs, as summaries and notes in the agent’s “memory”, or as embeddings in a vector index used for search – the latter remain personal data whenever they can be linked back to a person, for instance through source metadata or because the original text can be reconstructed from them. The right to erasure under Article 17 GDPR is not absolute: a law firm may keep data it needs to comply with a legal obligation, such as AML record-keeping (Article 17(3)(b)), or to establish, exercise or defend legal claims (Article 17(3)(e)). These exceptions, however, do not justify unnecessary copies left behind in an AI agent’s memory. Where the right applies, it applies to all of them, and in a cloud AI service the user often has no way to verify that they are gone.
Keeping the lawyer in control
That’s the reason in Enidia we put give the lawyer the control over the AI. First of all, we do not offer a solution where the agent has full autonomy over what is has access to and how it can process that information. The user has full control over the data that is being accessed by the agent for the specific case. The processes the agent performs are strictly defined, so the agent cannot execute some arbitrary, unrelated actions for the specific process. This is not only a product choice. Formally, data protection by design and by default (Article 25 GDPR) is an obligation of the controller – the law firm – but Recital 78 GDPR encourages producers of such tools to design them so that controllers can meet it. Limiting the data available to the agent to a specific matter and its operations to predefined processes is a direct implementation of data protection by design and by default and of the data minimisation principle (Article 5(1)(c) GDPR). Moreover, we base our product on AI that runs on the user’s premises, without imposing any arbitrary controls on how the AI might be used. We think that humans – lawyers in this case – are the only subjects of moral judgment and are the only accountable entities for the actions they perform.
This is also how the law sees it. Under the GDPR it is the controller – the law firm – that must be able to demonstrate compliance (accountability, Article 5(2) GDPR). The AI Act follows the same logic, although its human-oversight rules bind only high-risk AI systems: such systems must be designed for effective human oversight (Article 14), and deployers must assign that oversight to people with the necessary competence, training and authority (Article 26(2)). A legal AI tool used by a private law firm – an email assistant, contract review or case-law search – will usually not be high-risk, as the justice category of Annex III (point 8(a)) covers systems used by or on behalf of judicial authorities and in alternative dispute resolution. What does apply to every deployer, whatever the risk class, is Article 4: the duty to take measures supporting the AI literacy of the staff who use these systems. A lawyer cannot demonstrate compliance for processing they did not control.