IA para abogados: cómo usarla sin romper el secreto profesional

10 de octubre de 2026 · 9 min de lectura

La IA ya está en los despachos y estudios jurídicos: resume expedientes, propone estructuras de escritos, revisa contratos y encuentra contradicciones en una declaración. La pregunta no es si usarla, sino cómo usarla sin que el expediente de un cliente termine en los servidores de un tercero. Esta guía junta lo que dicen las normas de secreto profesional en España y en Argentina y un método concreto para trabajar con IA sin exponer a nadie.

Qué protege el secreto profesional (y por qué la IA lo pone a prueba)

El secreto profesional del abogado no se limita a "no contar" el caso. Alcanza a todo lo que el cliente confió y a los documentos del asunto, y obliga también a cuidar los medios por los que esa información circula. Pegar un escrito con nombres reales en un chat de IA es, en los hechos, entregar esa información a una empresa que no está obligada por ese secreto. Que la herramienta sea útil no cambia la obligación: no hay excepción tecnológica al secreto profesional.

España: el Estatuto General de la Abogacía Española

El Estatuto General de la Abogacía Española (Real Decreto 135/2021) regula el secreto profesional con detalle:

  • Art. 21: el secreto profesional es un deber y un derecho del abogado respecto de todos los hechos y noticias que conozca por su actuación profesional.
  • Art. 22.1: abarca los hechos, comunicaciones, datos, informaciones, documentos y propuestas que el abogado conozca, emita o reciba en su ejercicio profesional. Un escrito, una pericia o un correo del cliente están dentro.
  • Art. 22.4: el abogado debe hacer que lo respeten también sus colaboradores, empleados y quienes cooperen con él. Un proveedor de software que recibe los documentos difícilmente encaja en esa cadena sin un contrato que lo obligue.
  • Art. 22.5: el deber subsiste después de terminado el encargo, sin límite temporal.
  • Art. 16.3: quien presta servicios jurídicos en línea debe adoptar las medidas necesarias para garantizar el secreto profesional.

Lo complementan la Ley Orgánica del Poder Judicial (art. 542.3), el Código Deontológico de la Abogacía Española y, en el extremo, el Código Penal: el art. 199.2 castiga al profesional que, incumpliendo su deber de sigilo o reserva, divulgue secretos de otra persona.

Sobre la IA en concreto, el Colegio de la Abogacía de Madrid (ICAM) publicó en octubre de 2025 una Guía de buenas prácticas para el uso de la inteligencia artificial en la abogacía que pide garantizar la confidencialidad y la protección de datos y exigir a los proveedores externos los mismos estándares de confidencialidad. Y en abril de 2026 el Consejo General de la Abogacía Española aprobó una circular sobre escritos elaborados con IA generativa que insiste en que la IA es una función auxiliar, sujeta a supervisión humana.

A eso se suma el RGPD: si el documento tiene datos personales, el proveedor de IA que los procesa por cuenta del despacho actúa como encargado del tratamiento (art. 28), lo que exige un contrato con garantías y, si los servidores están fuera del Espacio Económico Europeo, una base para la transferencia internacional. La versión gratuita de un chat de IA no suele ofrecer nada de eso.

Argentina: art. 156 del Código Penal y Ley 23.187

  • Código Penal, art. 156: reprime con multa e inhabilitación especial de seis meses a tres años a quien, teniendo noticia de un secreto por razón de su profesión, lo revele sin justa causa cuando su divulgación pueda causar daño.
  • Ley 23.187 (ejercicio de la abogacía en la Capital Federal), art. 6 inc. f: deber de observar con fidelidad el secreto profesional, salvo autorización fehaciente del interesado. Las leyes de cada colegio provincial y los códigos de ética contienen reglas equivalentes.
  • Ley 25.326, art. 10: quienes intervienen en cualquier fase del tratamiento de datos personales están obligados al secreto respecto de ellos.

En los dos países la lógica es la misma: el abogado responde por adónde van los datos de su cliente, también cuando el destino es una herramienta de IA.

Qué usos de la IA son razonables y cuáles no

  • Sin datos del cliente: preguntas generales, explicar una figura jurídica, armar un esquema de escrito en blanco, mejorar la redacción de un texto propio sin datos de terceros. El riesgo es bajo (y lo que hay que cuidar es otra cosa: verificar lo que responde).
  • Con datos reales en una IA de consumo: pegar un escrito, una sentencia o un correo con nombres, DNI, domicilios o datos de salud. Es el caso que choca con el secreto profesional y con la normativa de datos.
  • Con datos reales en una IA empresarial con contrato: reduce el riesgo (sin entrenamiento con los datos, contrato de encargo), pero los documentos siguen saliendo del despacho hacia un tercero. Conviene leer el contrato y la política de retención antes de decidir.
  • Con el documento anonimizado antes: la IA recibe el texto con etiquetas en lugar de los datos. Es la opción que conserva la utilidad de la IA sin entregar la identidad de nadie.

El método: anonimizar → IA → rehidratar

La IA no necesita saber cómo se llama el cliente para resumir un expediente o detectar una contradicción. Necesita el texto y quién es quién. Por eso el método separa las dos cosas:

  1. Anonimizar en local. En el equipo del despacho, cada dato personal se reemplaza por una etiqueta consistente: PERSONA_01 es siempre la actora, PERSONA_02 siempre el demandado. Si se va a necesitar volver a los datos reales, se genera de forma explícita un mapa de reemplazos que no sale del equipo.
  2. Revisar. Ninguna detección automática es perfecta: antes de pegar nada en la IA, alguien confirma o descarta cada dato y revisa los indirectos (cargos, fechas, lugares) que podrían delatar el caso.
  3. Trabajar con la IA sobre el texto etiquetado: resumen, borrador, análisis, lo que haga falta.
  4. Rehidratar en local. La respuesta vuelve con las etiquetas; con el mapa se recuperan los nombres reales en el propio equipo. La IA nunca vio a nadie.

Técnicamente, mientras exista el mapa eso es seudonimización, no anonimización: para el despacho los datos siguen siendo personales y el mapa se protege como el documento original. La diferencia, y por qué importa, está en anonimización vs. seudonimización.

Prompts para abogados que funcionan con texto anonimizado

Las etiquetas no le quitan precisión a la IA si se le explican. Tres ejemplos:

  • Resumen de expediente: "En este texto las personas aparecen como PERSONA_01, PERSONA_02, etc. PERSONA_01 es la parte actora. Tarea: resumir los hechos en orden cronológico y señalar las fechas que no coinciden entre sí."
  • Revisión de contrato: "Las partes son ORG_01 (arrendadora) y PERSONA_01 (arrendataria). Tarea: identificar las cláusulas que perjudican a la arrendataria y explicar por qué."
  • Borrador de escrito: "Con estos hechos, proponer la estructura de una contestación de demanda. Importante: conservar las etiquetas tal como están, sin cambiarlas ni traducirlas."

La última instrucción es el truco: si la IA conserva las etiquetas, la rehidratación es automática.

Lo que ninguna herramienta resuelve sola

  • Verificar lo que responde la IA. Las citas de jurisprudencia y de artículos inventadas siguen existiendo. La firma es del abogado.
  • Revisar los datos indirectos. Un caso mediático se reconoce por los hechos aunque no tenga nombres.
  • Cuidar el mapa. Quien tenga el mapa de reemplazos puede revertir todo. Por eso es opcional y queda en el equipo.

Usar IA sin entregar los datos del cliente

Anonimizar es una app de escritorio que anonimiza los documentos antes de la IA y, si se elige, rehidrata la respuesta con los datos reales. 100% local, sin nube ni telemetría, irreversible por defecto y con revisión humana de cada dato.

Probala gratis · 15 archivos

Para profundizar: ¿Podés usar ChatGPT con datos de tus clientes?, por qué anonimizar documentos legales y, si el expediente está en PDF, cómo censurar (anonimizar) un PDF.

Este artículo es informativo y no constituye asesoramiento legal. Las referencias al Estatuto General de la Abogacía Española, al Código Penal español y argentino, a la Ley 23.187, a la Ley 25.326 y al RGPD son un resumen general: conviene consultar el texto vigente, las normas del colegio profesional que corresponda y las políticas de cada herramienta de IA.

AI is already in law firms: it summarizes case files, suggests brief structures, reviews contracts and spots contradictions in a statement. The question isn't whether to use it, but how to use it without a client's file ending up on a third party's servers. This guide brings together what professional secrecy rules say in Spain and Argentina, plus a concrete method to work with AI without exposing anyone.

What professional secrecy protects (and why AI puts it to the test)

A lawyer's professional secrecy isn't limited to "not telling" about the case. It covers everything the client entrusted and the documents of the matter, and it also requires care over the channels that information travels through. Pasting a brief with real names into an AI chat is, in practice, handing that information to a company that isn't bound by that secrecy. The tool being useful doesn't change the duty: there's no technology exception to professional secrecy.

Spain: the General Statute of the Spanish Legal Profession

The Estatuto General de la Abogacía Española (Royal Decree 135/2021) regulates professional secrecy in detail:

  • Art. 21: professional secrecy is both a duty and a right of the lawyer regarding all facts and information learned through professional practice.
  • Art. 22.1: it covers the facts, communications, data, information, documents and proposals the lawyer learns, issues or receives in practice. A brief, an expert report or an email from the client are all inside.
  • Art. 22.4: the lawyer must ensure that associates, employees and anyone cooperating with them also respect it. A software provider receiving the documents hardly fits that chain without a contract binding it.
  • Art. 22.5: the duty survives the end of the engagement, with no time limit.
  • Art. 16.3: anyone providing legal services online must adopt the measures needed to guarantee professional secrecy.

It's complemented by the Organic Law of the Judiciary (Art. 542.3), the Spanish Bar Code of Ethics and, at the far end, the Criminal Code: Art. 199.2 punishes professionals who, in breach of their duty of confidentiality, disclose another person's secrets.

On AI specifically, the Madrid Bar Association (ICAM) published a Good Practice Guide for the Use of Artificial Intelligence in the Legal Profession in October 2025, which calls for guaranteeing confidentiality and data protection and for holding external providers to the same confidentiality standards. And in April 2026 the General Council of the Spanish Legal Profession approved a circular on briefs drafted with generative AI, stressing that AI is an auxiliary function subject to human oversight.

Then there's the GDPR: if the document contains personal data, the AI provider processing it on the firm's behalf acts as a processor (Art. 28), which requires a contract with safeguards and, if the servers are outside the European Economic Area, a basis for the international transfer. The free tier of an AI chat rarely offers any of that.

Argentina: Criminal Code Art. 156 and Law 23.187

  • Criminal Code, Art. 156: punishes with a fine and special disqualification of six months to three years whoever, learning a secret by reason of their profession, discloses it without just cause when its disclosure may cause harm.
  • Law 23.187 (practice of law in the City of Buenos Aires), Art. 6(f): the duty to faithfully keep professional secrecy, unless the client gives reliable authorization. Each provincial bar's law and ethics codes contain equivalent rules.
  • Law 25.326, Art. 10: anyone involved in any stage of processing personal data is bound to secrecy about it.

In both countries the logic is the same: the lawyer answers for where the client's data goes, including when the destination is an AI tool.

Which uses of AI are reasonable and which aren't

  • No client data: general questions, explaining a legal concept, sketching a blank brief outline, polishing your own text with no third-party data. Low risk (what needs care is something else: checking the answer).
  • Real data in a consumer AI: pasting a brief, a ruling or an email with names, ID numbers, addresses or health data. This is the case that clashes with professional secrecy and data protection law.
  • Real data in an enterprise AI with a contract: lowers the risk (no training on the data, a processing agreement), but the documents still leave the firm for a third party. Read the contract and the retention policy before deciding.
  • The document anonymized first: the AI receives the text with labels instead of the data. It's the option that keeps AI useful without handing over anyone's identity.

The method: anonymize → AI → re-hydrate

AI doesn't need the client's name to summarize a case file or spot a contradiction. It needs the text and who is who. So the method separates the two:

  1. Anonymize locally. On the firm's machine, each piece of personal data is replaced with a consistent label: PERSONA_01 is always the plaintiff, PERSONA_02 always the defendant. If you'll need the real data back, you explicitly generate a replacement map that never leaves the machine.
  2. Review. No automatic detection is perfect: before pasting anything into the AI, someone confirms or discards each item and checks the indirect ones (job titles, dates, places) that could give the case away.
  3. Work with the AI on the labeled text: summary, draft, analysis, whatever is needed.
  4. Re-hydrate locally. The answer comes back with the labels; with the map, the real names are restored on your own machine. The AI never saw anyone.

Technically, as long as the map exists that's pseudonymisation, not anonymisation: for the firm the data is still personal and the map must be protected like the original document. The difference, and why it matters, is in anonymization vs. pseudonymization.

Prompts for lawyers that work with anonymized text

Labels don't make the AI less precise if you explain them. Three examples:

  • Case file summary: "In this text people appear as PERSONA_01, PERSONA_02, etc. PERSONA_01 is the plaintiff. Task: summarize the facts in chronological order and flag dates that don't match each other."
  • Contract review: "The parties are ORG_01 (landlord) and PERSONA_01 (tenant). Task: identify the clauses that work against the tenant and explain why."
  • Brief draft: "With these facts, propose the structure of a statement of defence. Important: keep the labels exactly as they are, without changing or translating them."

The last instruction is the trick: if the AI keeps the labels, re-hydration is automatic.

What no tool solves on its own

  • Checking what the AI says. Made-up case citations and statutes still happen. The signature is the lawyer's.
  • Reviewing indirect data. A high-profile case is recognizable from the facts even without names.
  • Guarding the map. Whoever holds the replacement map can reverse everything. That's why it's optional and stays on the machine.

Use AI without handing over your client's data

Anonimizar is a desktop app that anonymizes documents before they reach the AI and, if you choose, re-hydrates the answer with the real data. 100% local, no cloud, no telemetry, irreversible by default and with human review of every item.

Try it free · 15 files

To go deeper: Can you use ChatGPT with your clients' data?, why anonymize legal documents and, if the case file is a PDF, how to redact (anonymize) a PDF.

This article is informational and does not constitute legal advice. References to the Spanish Legal Profession Statute, the Spanish and Argentine Criminal Codes, Law 23.187, Law 25.326 and the GDPR are a general summary: check the current text, the rules of the relevant bar association and the policies of each AI tool.