AI Agents and Federal Law GDPR: How Not to Expose Personal Data to an LLM

Where AI agents send personal data to LLMs: prompts, CRM data, transcripts. Anonymization design, security controls, compliance and launch checklist.

  • Where the AI agent passes personal data to the LLM
  • Architecture: gateway between agent and model
  • How LLM & Security Gateway addresses this scheme
  • Three LLM work circuits: what's permissible in each

Where the AI agent passes personal data to the LLM

Federal Law GDPR regulates not 'AI use' but personal data processing—information that directly or indirectly identifies a person. Therefore, the first engineering question when launching an AI agent isn't 'can we use LLM' but 'which process fields are personal data and when do they end up in the prompt'. How to choose the model itself for this scope is discussed separately in the article on foreign LLM under Law GDPR.

Channel one—operator or agent prompt. Support staff insert a full ticket in the request: name, phone, contract number. The agent does the same automatically when gathering task context from the customer card. One request—one data subject, but thousands of such requests per month.

Channel two—CRM export to context. For the agent to 'know customers', they pass a database segment: order history with names and contacts. One such prompt—no longer a single data subject but hundreds or thousands of records. The volume of affected subjects determines the penalty category in case of breach.

Channel three—call transcripts. Customer conversation recordings go to the model for summaries or quality control. In the transcript—names, phone numbers, delivery addresses, and sometimes health or financial information that the law protects more strictly than regular personal data.

Channel four—resumes and applications. An HR agent ranking candidates works with concentrated personal data: contacts, birthdates, workplaces. The same risk comes from AI features inside SaaS services enabled 'by default'—the company's circuit doesn't see them.

Sending such text to a cloud LLM is personal data processing involving a third party. Critical questions must be resolved before launch, not after: legal basis and processing instruction (Law GDPR, Part 3, Article 6), primary collection localization in CIS database (Part 5, Article 18; from July 1, 2025, foreign primary collection is prohibited), and for foreign APIs—Roskomnadzor notification of cross-border transmission before transmission begins (Article 12)

Qualifying a specific workflow is legal work: which legal basis applies, whether the provider agreement covers data processing requirements. The engineering task is simpler and stronger: build a circuit where personal data never reaches the model at all. Then most of these questions compress to verifiable 'exactly what leaves the circuit'.

Architecture: gateway between agent and model

Application → gateway → LLM → reverse substitution

App

AI agent or servicetickets, CRM, transcripts, resumes

Gateway

AnonymizationPersonal data → stable tokens before transmission
Policies and audit logwho, which model, what data

Model

Cloud LLMsees only de-identified text
Local modelinference within the company perimeter

Answer

Reverse substitutiontokens → session-mapped real values
  • bypassing the gateway direct API call: personal data in prompts and provider logs
  • shadow AI employee's personal ChatGPT: contour is blind and doesn't log
  • vendor logs request history with provider: outside your control and retention
Gateway—sole egress point to models: anonymization before sending, log of each call, reverse substitution in response. Branches below—three typical ways the circuit breaks.

How LLM & Security Gateway addresses this scheme

LLM & Security Gateway Implements the scheme as a separate component: gateway and anonymization map deploy within the client perimeter, applications switch via base URL change—endpoint is compatible with OpenAI format, client code requires no rewrite. Anonymization works at each call level, protecting both single requests and multi-step agent chains with RAG.

Provider keys are stored in the gateway itself; teams get virtual keys with instant revocation—this closes the 'bypass gateway' path: applications and staff have no direct keys. Every request is logged with the model, token count, and cost. The same principle at the system level shows security gate: AI agent for 1C: the model doesn't connect to the database directly but acts through audited tools with access control.

Three LLM work circuits: what's permissible in each

Select a contour based on process data, not fashion. The cost table is accurate: calculates ruble figures for your configuration AI automation calculator, and the gateway's place in the agent budget is discussed in the article on AI agent cost.

EnvironmentWhat data is allowedKey risksCost (qualitative)
Direct cloud API callText without personal data only: regulations, code, anonymized statisticsPersonal data in prompts and provider logs; cross-border transfer without notification; no audit trail — uninvestigable incidentsMinimum at launch: tokens only
Gateway + cloud modelWorkflows with personal data: tickets, CRM, transcripts — anonymized text sent externallyPersonal data detector bypass — incident; compliance map — protected asset in RF circuitTokens plus gateway implementation and operation — separate TCO line item
Local modelData that must not leave the perimeter even if de-identified: special categories, protected secretsGPU and team capital costs; quality below frontier models; hardware utilization determines economicsMaximum: hardware, infrastructure, operations

Contours combine: the gateway routes requests between cloud and local models by data policy. The 'cloud or on-premises' choice applies per data class, not company-wide

Assess where AI can deliver impact in your process

Escalating penalties: why 'we'll keep it quiet' isn't a strategy

As of May 30, 2025, amendments to Law No. 420-FZ (November 30, 2024) to Article 13.11 of the Administrative Offenses Code take effect. Personal data leak 1,000–10,000 subjects: ₽3–5M fine; 100,000+ subjects: ₽10–15M; biometric data: ₽15–20M. Repeat breach converts fine to turnover-based: 1–3% of annual revenue (₽20–500M). Failure to notify Roskomnadzor: separate offense, ₽1–3M. Operation without processing notification: ₽100–300K.

Concurrently, Law 421-FZ (November 30, 2024) added Article 272.1 to the Criminal Code—liability for illegal personal data trafficking, with cross-border transmission as an aggravating factor. The full legal framework—operator obligations, documentation, security levels—is covered in articles on personal data processing under Law GDPR and on PDIS classification; we don't repeat it here.

The 'just don't tell anyone' strategy fails against the law's mechanics. Operators must notify Roskomnadzor of an incident within 24 hours and report investigation results within 72 hours (Part 3.1, Art. 21); silence incurs a separate fine beyond the breach itself. Breaches surface externally—in sold databases and regulator monitoring—not just from your reports.

There's a third reason for the AI circuit. Without a gateway and log, the company doesn't know what reached the model: no way to prove personal data didn't leave or assess the incident scope. A request log isn't bureaucracy—it's the only answer to 'what data left the circuit'—both during an incident and during audits.

What to close before launching an agent with client data access

FAQ

Frequently asked questions about AI agents and Law GDPR

Can customer data be sent to ChatGPT or Claude?

In its original form, this is personal data transfer to an external provider with all the questions about data processing agreements, localization, and cross-border transfers; legal counsel qualifies these. The engineering path is a circuit in which only de-identified text leaves: then the dispute 'allowed or not' becomes verifiable 'exactly what leaves'. The mechanics are shown in the diagram above.

What is anonymization and does it lift Law GDPR requirements?

Anonymization replaces identifiers so text cannot be re-linked to a person without a separate mapping table. For the operator, personal data processing continues: Law GDPR obligations don't disappear; the mapping table itself becomes a protected asset. One risk is eliminated: the model provider and vendor logs never see personal data. From September 1, 2025, Law 233-FZ adds further anonymization requirements

Does a local model solve everything?

No. It eliminates third-party transmission but doesn't override Law GDPR internally: legal grounds, PDIS protection, access controls and logging remain mandatory—security levels are detailed in separate article. GPU capital costs and quality gap with frontier models are added; the local circuit is a deliberate choice for a data class, not a default answer.

Is subject consent required for AI agent data processing?

Federal Law GDPR does not establish 'AI processing' as a separate regime—general legal bases from Art. 6 apply, and consent is just one of them. Whether contractual grounds fit your workflow and whether you need to update processing policies and consent language are questions for legal counsel, armed with a personal data flow map. The engineering side of the same question is minimization: the less personal data actually reaches the model, the shorter the list of legal bases you'll need to defend.

What to log in the AI agent circuit?

Minimum: who triggered, which policy applied, which entities masked, which model responded, token volume and timestamp. Store the log in a protected RF-contour and minimize personal data in it—else the log becomes another PDIS. This audit trail answers both compliance questions: 'what left the perimeter' and 'who had access'

Employees already use personal ChatGPT—what to do?

A ban without an alternative doesn't work: tasks don't disappear; the workflow just goes underground. The working approach is corporate model access through a gateway (same speed but with de-identification and logging) plus a policy blocking personal accounts for work data. When the legal path is more convenient, shadow AI stops being widespread.

First step

Verify the LLM contour before agent launch

Show one process with customer data. We'll map it to: personal data classification, inference contour, gateway, audit log and checklist for your legal team—before the agent accesses data

  • personal data flow map
  • circuit choice: API, gateway, local model
  • anonymization and reverse substitution
  • log and access policies
  • questions for legal counsel
How LLM & Security Gateway works →

Sources

Verification date: July 24, 2026

Discuss the article: AI agents and Law GDPR: how not to give…

Send via: