LGPD and AI: what changes when personal data goes through a model
The decisions to make before sending personal data to an AI provider: legal basis, retention, minimization, logs and requests from data subjects. This is engineering guidance, not legal advice.
by Zechim
When an agent reads customer messages, contracts or records, personal data passes through a model provider, a log and often a vector store. Each of those can be a place where Brazil's data protection law, the LGPD, applies.
We are an engineering team, not a law firm. This post describes the technical decisions we help you make and document, and we work with your legal counsel on the legal ones.
What we do
1. Map where personal data flows
From the user to the model provider and back: prompts, tool results, logs, caches, embeddings and backups. For each place, what data it holds, for how long and who can read it.
2. Minimize what goes to the model
Send the fields the task needs and mask or drop the rest. Many tasks work with an identifier and a few attributes, and do not need names, documents or full records.
3. Review the provider terms
What the provider does with inputs and outputs: retention, use for training, location of processing, subprocessors, and the contract terms for a business customer. We configure the account and the settings that match your policy, and we note what we could not confirm.
4. Control retention
Logs and traces keep only what is needed, for a defined time, with masked fields where possible. Deletion is a procedure we test.
5. Support data subject requests
A way to find, export and delete a person's data across the database, the logs and the vector store when they ask, within the deadline the law sets, which your counsel confirms.
6. Record the decisions
A short document with the data flows, the choices made and their reasons, ready for your counsel and for a customer who asks.
Where the legal questions begin
The legal basis for the processing, the content of privacy notices, international transfer rules, the role of each party and incident notification duties are legal questions. We prepare the technical facts for them and leave the answers to counsel.
What we do not do
- We do not give legal advice or certify compliance. We deliver the technical controls and the documentation.
- We do not send personal data to a provider before the terms are reviewed.
How we deliver it
- 2 week Discovery. The data flow map, the provider review and a list of decisions for your counsel.
- 4 to 8 week Pilot. Minimization, retention, logging rules and the request handling procedure, applied to one agent and tested.
- Optional ongoing mode. A Fractional AI Lead reviews new features and providers before they ship.
What you need to start
- A description of the agent and the data it touches.
- Access to the provider accounts and settings.
- A contact on the legal or privacy side, internal or external.
If your agent handles personal data and nobody has mapped where it goes, worth 30 minutes to draw the map together.