Support is swamped, and a customer ticket has grown to forty messages. A teammate selects the whole thread, copies it, and opens an AI chat to ask for a summary engineering can use to reproduce the bug. Good instinct, honestly. Then someone at the next desk asks: "Wait, are we allowed to put that in there?" Nobody's quite sure. The ticket has the customer's name, email, phone number, order history and a screenshot of their account page.
This isn't a made-up worry. In April 2023 Samsung engineers accidentally leaked internal source code by uploading it to ChatGPT. A few weeks later the company barred generative AI tools on its own devices and internal networks, according to an internal memo Bloomberg reviewed (Taipei Times, via Bloomberg). Nobody in that story was careless on purpose. They were trying to get work done.
This post is about making that question easy to answer. It isn't legal advice, and your legal or privacy team has the final word on your situation. What it does cover is where data actually travels when you use AI, and the handful of habits that keep a team fast without leaking things it shouldn't.
Every prompt is a data transfer
A prompt feels like a question. Technically it's data you send to a system, and that data can end up in more places than the chat window:
| Where it goes | What to check |
|---|---|
| The vendor's servers and logs | How long they keep it and why. OpenAI's API docs, for example, say abuse-monitoring logs are kept for up to 30 days unless the law requires longer or it's needed to protect their services or others from harm (OpenAI, Your data, checked November 2026). |
| Model training | It depends on which plan you're on. Since 1 March 2023, OpenAI says API data isn't used for training unless you opt in. In August 2025 Anthropic started asking users on its consumer plans (Free, Pro, Max) to choose whether their chats can be used for training, with five-year retention for people who allow it and 30 days for those who don't. API and business plans are excluded from that change (Anthropic). Personal accounts and company accounts can follow different rules. |
| Your own logs and eval sets | Teams store prompts and answers to debug quality. Those copies follow your retention rules, if you have any. |
| A retrieval index | Documents get split into chunks and embedded for search. The permissions on the original files don't come along automatically. |
| The output | A summary gets pasted into Jira, Slack or a customer email, and the sensitive detail travels with it. |
None of this means "don't use AI." It means the five-second pause before a paste should have a quick answer, and the team should already know it.
Send only what the task needs
The single most useful habit is data minimization. GDPR spells it out as data that is "adequate, relevant and limited to what is necessary" for the purpose (GDPR Art. 5(1)(c)), and it's good engineering even where GDPR doesn't apply.
Go back to the ticket. To reproduce the bug, engineering needs the steps, the app version, the error and the timeline. They don't need the customer's name, email, phone number or card's last four digits. A version like this gets you the same summary:
Customer [C-1] on Android app 5.12.0 reports checkout fails at the payment step.
Error shown: "Something went wrong (code 4021)".
Started: after the update on [DATE]. Retried 3 times, same result.
Payment method: saved card. Region: [REGION].
Masking isn't paperwork for its own sake. When a tool, log or vendor setting behaves differently than you expected, a masked ticket is a non-event. An unmasked one is an incident report.
Stored for one reason doesn't mean usable for every reason
Your team may be allowed to store support tickets so it can answer customers. That doesn't automatically cover feeding those tickets into a model fine-tune or a shared prompt library. GDPR calls this purpose limitation: data is collected for "specified, explicit and legitimate purposes" and not processed later in ways incompatible with them (GDPR Art. 5(1)(b)).
If you build for users in Vietnam, there's a newer reason to care. Vietnam's Law on Personal Data Protection (Law No. 91/2025/QH15) took effect on 1 January 2026. Tilleke & Gibbins notes it keeps the consent-centric approach of the earlier Decree 13 and adds safeguards specifically for big data processing, AI and cloud computing (Tilleke & Gibbins).
Training deserves extra care because models can remember. Carlini and colleagues pulled hundreds of verbatim sequences out of GPT-2, including names, phone numbers and email addresses, and some of those appeared in only one training document (Extracting Training Data from Large Language Models). If a ticket goes into a training set, assume parts of it can come back out.
A plain question gets you most of the way: what did the user reasonably expect us to do with this? If the honest answer is "not this," stop and ask.
RAG has to respect the same permissions
Retrieval-augmented generation is great for grounding answers in company docs. It also copies those docs into a new system, as chunks and embeddings in a vector store. If an employee can't open the salary spreadsheet, the HR assistant shouldn't quote it back to them because a chunk matched their question.
OWASP lists this as LLM08 in its 2025 Top 10 for LLM applications. It recommends "permission-aware vector and embedding stores" and strict logical partitioning between user groups, and it warns that attackers can sometimes invert embeddings to recover a lot of the source text (OWASP LLM08:2025). So embeddings aren't anonymous just because they look like numbers.
In practice: filter by the user's permissions at retrieval time, not after the model has already read the chunk. Carry access labels from the source system into the index metadata. Treat caches and generated citations as copies of the source, with the same access rules. If RAG is new to you, RAG basics covers how the pieces fit.
Debug logs that never die
Logging prompts and responses is useful. You need them to debug quality, measure hallucination and build eval sets. The trouble starts when nobody decides how long they live. Six months later you have a searchable archive of private conversations that nobody remembers creating.
GDPR's storage limitation principle says identifiable data shouldn't be kept longer than the purpose needs (Art. 5(1)(e)). For AI logs, that turns into a short list that's much easier to set up before launch:
- A retention window per log type, enforced by a scheduled job.
- Masking at write time, so raw PII never lands in the log store.
- Access limited to the people who debug the feature, with access reviews.
- A deletion path that also reaches eval datasets copied out of production logs.
OWASP's entry on sensitive information disclosure points the same way: least-privilege access, clear policies on retention, usage and deletion, and letting users opt out of training (OWASP LLM02:2025).
Local models help, but you still own the data
Running a model on your own infrastructure removes one path: data no longer goes to an outside vendor. That's a real gain, and running local LLMs for privacy goes into how. Every other path in the table above is still there, though. You still need access control, log retention, permission-aware retrieval and care with outputs. Where the model runs is one question. Who can see the data, why it's processed, how long it lives and how it gets deleted are the others.
Make the safe path the easy one
Most people will do the safe thing when it's also the convenient thing. So build convenience into the tools:
- A short list of approved AI tools and plans, with one line on what data each can take.
- Data labels people already understand (public, internal, customer, secret) and a rule per label.
- Masking by default in internal tools that send tickets or logs to a model.
- A warning before fields marked sensitive leave the system.
- Prompt templates that ask for context (steps, versions, errors) and never for secrets.
- For user-facing features: tell people when AI is involved, what data it uses and how to reach a human.
Clear rules also keep teams moving. When people know which data is fine, which tools are approved and which flows need a review, they stop asking in DMs and waiting. Fuzzy rules don't feel freeing for long. They turn into hesitation, rework and the kind of risk you only find out about late.
Try this week
- Pick one AI workflow your team runs every day and draw where the data goes: vendor, logs, index, output.
- Check which plan your team's AI tools are on, and what that plan's terms say about training and retention.
- Write a masked template for the most common thing people paste (a ticket, a log, a stack trace).
- Find your oldest stored prompt log and decide how long logs like it should live.
- If you run RAG, test it with an account that shouldn't see a document, and ask about that document.
Using AI with private data comes down to six questions: what data, for what purpose, with whose permission, where it goes, how long it stays and who can see it. A team that can answer them in a minute can say yes to AI tools much more often.