Adding a language model to a product changes your privacy posture in ways that are easy to miss. User text, documents, images and voice recordings start flowing to a third-party service. Prompts and responses are logged, sometimes indefinitely. Embeddings derived from personal data sit in a new database. A support transcript used for improvement turns into training data. Each of these is a data processing activity that privacy law regulates.
This article is a practical orientation for product and engineering teams, not legal advice. Laws change and details depend on your facts, so involve counsel for decisions with real exposure. The goal here is to give you the vocabulary and the engineering patterns that make compliance feasible.
Map the data flows first
You cannot protect what you have not mapped. For each AI feature, document:
- What personal data enters the system: names, emails, free-text messages, documents, images, voice, behavioral data.
- Where it goes: your servers, a model provider, an embedding service, an observability tool, a vector database.
- What is stored, for how long, and who can access it.
- Whether data is used to train or improve any model, yours or a vendor’s.
- Which countries the data travels through and rests in.
- What decisions the output feeds, and whether they affect people in a significant way.
Free-text fields deserve special suspicion. Users paste things into chat boxes that no schema anticipated: health details, national ID numbers, other people’s information. Assume prompts contain personal data unless you can show otherwise.
The privacy question for an AI feature is rarely “does the model know this?” It is “where did the data go, who kept it and why?”
The legal landscape in brief
GDPR (European Union and UK equivalents)
The General Data Protection Regulation applies when you offer services to people in the EU or monitor their behavior, wherever you are based. Concepts that bite in AI features:
- Lawful basis. Every processing purpose needs one: consent, contract necessity, legitimate interests, legal obligation and so on. Using customer data to improve a general model is a separate purpose from delivering the feature and needs its own basis.
- Purpose limitation and data minimization. Collect and send only what the stated purpose needs.
- Transparency. Tell people that AI is involved, what data is processed and by whom.
- Data subject rights. Access, correction, deletion, restriction, objection and portability. Your architecture must be able to find and delete one person’s data across logs, vector indexes and backups.
- Automated decision-making (Article 22). People have the right not to be subject to solely automated decisions with legal or similarly significant effects, with exceptions and safeguards such as human review.
- Data protection impact assessments (DPIA). Required for high-risk processing, which includes large-scale use of new technologies, profiling and sensitive data. Most serious AI features warrant at least a lightweight one.
- International transfers. Sending data to a provider outside the European Economic Area requires a transfer mechanism such as the EU-US Data Privacy Framework for certified companies, or Standard Contractual Clauses with a transfer risk assessment.
- Special categories. Health, biometrics, political opinions and similar data carry stricter conditions, usually explicit consent.
The EU AI Act adds a separate layer of obligations based on risk classification, with duties for high-risk systems and transparency requirements for chatbots and generated content. Check which tier your use case falls into.
Colombia: Ley 1581 de 2012
Colombia’s general data protection statute, Ley 1581 de 2012 with its regulating decrees (notably Decreto 1377 de 2013, now compiled in Decreto 1074 de 2015), applies to processing of personal data in Colombia, and to processing abroad when Colombian law applies under international norms or contracts. Key points:
- Prior, express and informed authorization from the data subject is the default basis, with limited exceptions. Keep evidence of it.
- Principles include purpose, freedom, truthfulness, transparency, restricted access, security and confidentiality.
- Sensitive data (health, biometrics, political or religious views) requires explicit authorization, and you cannot condition a service on it unless strictly necessary.
- Children’s data is restricted to cases that respect their best interests and fundamental rights.
- Rights of the data subject: to know, update, rectify, request proof of authorization, be informed about use, file complaints with the Superintendencia de Industria y Comercio (SIC), and revoke authorization or request deletion.
- Roles: the controller (responsable) and processor (encargado) have defined duties, including having a data processing policy and a procedure for handling queries and complaints.
- Registration: certain entities must register their databases in the Registro Nacional de Bases de Datos (RNBD).
- International transfers are allowed to countries with adequate protection, or with specific authorization or a transfer contract meeting the SIC’s requirements. Sending data to an AI vendor abroad is a transfer and must be reflected in your authorizations and contracts.
United States
There is no single federal privacy statute covering most commercial data. Instead, you face a patchwork:
- State comprehensive laws. California (CCPA/CPRA), Virginia, Colorado, Connecticut, Texas, Oregon and a growing list of others give residents rights to access, delete and opt out of sale, targeted advertising and profiling. Several require data protection assessments for high-risk processing, and some include rules on automated decision-making and opt-outs from profiling that produces significant effects.
- Biometric laws. Illinois BIPA requires written consent and a retention schedule before collecting face geometry or voiceprints, and allows private lawsuits with statutory damages. Texas and Washington have their own biometric rules. Face match in an identity flow falls squarely here.
- Sector laws. HIPAA for health information held by covered entities and business associates, GLBA for financial institutions, FERPA for education records, COPPA for children under 13.
- AI-specific rules. Colorado’s AI Act and similar state measures impose duties on developers and deployers of high-risk systems, and some jurisdictions regulate AI in hiring. Expect continued change.
- FTC enforcement. The Federal Trade Commission treats misleading privacy or AI claims as deceptive practices. Saying “we never train on your data” while doing so invites action.
The practical approach for a multi-state product is to build to the strictest common denominator: clear notice, opt-outs, deletion workflows and impact assessments, rather than branching logic per state.

Data minimization in practice
Minimization is both a legal principle and the cheapest control you have.
- Send less. Pass the fields the task needs. Summarizing a support ticket rarely requires the customer’s address and phone number.
- Redact before sending. Detect personal identifiers with pattern matching and named-entity recognition, and replace them with placeholders (for example, PERSON_1) that you map back after the response. Test the detector, since recall is never perfect.
- Pseudonymize identifiers. Use internal IDs instead of names and emails wherever the model does not need them.
- Prefer on-premises or regional processing for sensitive workloads. Self-hosted open-weight models or region-pinned provider endpoints keep data inside a boundary.
- Avoid sensitive categories unless essential, and obtain explicit consent when you must process them.
- Limit what logs capture. Prompt and response logging is the biggest accidental data store in many AI systems. Apply the same redaction, access control and retention to logs as to production data.
A short redaction illustration:
def minimize(ticket):
return {
"text": redact(ticket.body), # emails, phones, IDs replaced
"product": ticket.product,
"plan": ticket.plan,
"customer_ref": hash_id(ticket.customer_id),
}
Vendor contracts and due diligence
Your AI provider is a processor (GDPR) or encargado (Ley 1581) or service provider (CCPA). Before sending personal data, check:
- Data processing agreement (DPA) in place, covering instructions, confidentiality, security measures, subprocessors, assistance with data subject requests and breach notification timelines.
- Training and retention terms. Does the vendor use your inputs and outputs to train models? Business and API tiers commonly default to no training, but consumer products often differ. Get it in writing, and check retention for abuse monitoring, which may be 30 days or more unless you obtain zero-retention terms.
- Subprocessors and locations. Where are data processed and stored, and who else touches it?
- Security attestations. SOC 2 Type II, ISO 27001, and for health data a business associate agreement under HIPAA.
- Transfer mechanism for cross-border flows.
- Audit and deletion rights, and what happens to data at contract end.
- Indemnities and liability for privacy breaches and IP claims, which vary widely.
- Incident response. How fast will they tell you about a breach, and how?
Keep a register of AI vendors with the data categories each receives. When a vendor changes its terms, as happens often, review them against your commitments to users.
Retention and deletion
Data kept forever is a liability. Define retention by data class and purpose:
- Raw prompts and responses: short, for example 30 to 90 days, unless needed for a defined purpose such as dispute resolution.
- Evaluation datasets: keep only de-identified examples, and get a clear basis for reusing production data.
- Embeddings and vector indexes: they are derived from personal data and can sometimes leak it. Tag vectors with the owner and source record so deletion requests can remove them.
- Fine-tuning datasets and models: deleting a person’s data from a trained model is hard. Prefer not to fine-tune on identifiable personal data, or de-identify rigorously and keep dataset lineage.
- Backups: document how long they persist and how deletions propagate at expiry.
Automate deletion with scheduled jobs and test it. Build a data subject request workflow that queries all stores: primary database, logs, vector database, analytics and vendor systems that hold copies.
Governance habits that scale
- Run a DPIA or equivalent assessment before launching each significant AI feature, and update it when scope changes.
- Provide plain-language notices at the point of use: “This assistant uses a third-party AI service. Do not enter sensitive information.”
- Offer opt-outs for improvement uses of data, and honor them technically.
- Keep a human review path for decisions with significant effects, and document how it works.
- Train staff on what must not be pasted into external tools.
- Prepare an incident response plan that includes AI-specific events such as prompt leakage or data exposure through retrieval. Datainter includes a one-page data-flow diagram and vendor register in every AI project handover for this reason.
Key takeaways
- Map every data flow of each AI feature, including logs, embeddings and vendor retention, before choosing tools.
- Know the main regimes that apply: GDPR lawful basis, rights and transfers; Colombia’s Ley 1581 authorization and SIC oversight; US state laws, biometric statutes and sector rules.
- Minimize by default: send fewer fields, redact and pseudonymize, and treat prompt logs as production data.
- Sign a DPA, confirm no-training and retention terms in writing, and verify subprocessors, locations and transfer mechanisms.
- Define retention per data class, tag derived data such as embeddings with its source, and automate deletion across all stores.
- Assess high-risk features up front, tell users clearly when AI is involved, and keep humans in the loop for significant decisions.

