Skip to content
Lucerna Law

Confidentiality and ethics

AI Data Processing Agreement: Clauses Worth Reading

By Published 12 min readUpdated

An AI data processing agreement is the contract that says what an AI vendor may do with the data a firm gives it. The clauses worth reading cover purpose, training, sub-processors, retention and deletion, breach notice, audit, location and return of data. Each turns a marketing statement into an obligation, or shows that no obligation exists.

What is an AI data processing agreement, and does a law firm need one?

An AI data processing agreement is a contract, or a part of one, in which a vendor that handles data for a customer states the limits it accepts. A law firm needs one by law where a privacy statute that applies to it requires a written contract. Elsewhere it is the firm's best evidence of what the vendor promised.

The vocabulary is the GDPR's, in which the customer is the "controller" and the vendor the "processor". In United States usage the same document may be an addendum to a master services agreement (MSA), a section of the terms of service, or a standalone agreement.

Three situations make a written contract a legal requirement.

  • The GDPR applies. Article 28 requires a contract between controller and processor and lists its contents. That text is set out below.
  • California's statute applies. The California Consumer Privacy Act defines a "service provider" by reference to a written contract with stated prohibitions.
  • The data is protected health information held as a business associate. That contract is a business associate agreement, and the post on HIPAA covers what a business associate agreement with an AI vendor must say.

For a firm none of these reaches, the professional rules still apply. Comment 18 to ABA Model Rule 1.6 says that whether a lawyer must take additional steps to comply with other law, such as state and federal data privacy laws, "is beyond the scope of these Rules", and it sends lawyers to Rule 5.3 for duties when sharing information with nonlawyers outside the firm. The comment requires no document by name. A contract is how a firm shows what it asked of a vendor.

Where the data terms sit when a vendor has no document called a DPA

When a vendor has no document called a DPA, the data terms sit in whatever the customer agreed to: the terms of service, the privacy policy those terms point to, an order form, or an MSA. The task is to find which document holds each promise and whether that document can change without the firm's agreement.

Four features of the paperwork decide how much a promise is worth.

  1. Incorporation. A privacy policy binds the vendor as a contract term only if the terms of service bring it in. Look for the sentence that does.
  2. Precedence. Where a signed agreement and the online terms disagree, one of them says which wins.
  3. Change. Online terms may be changed by posting a new version. A signed agreement changes only by a signed amendment. The same promise is firmer in the second.
  4. The plan. A vendor may offer a DPA only on its higher plans. The data terms of the plan the firm holds are the ones that count.

The post on no-training promises makes the same point for one clause, under where a no-training promise must be written.

The eight clauses of an AI data processing agreement, in one table

The eight clauses that matter in an AI data processing agreement are purpose limits, training, sub-processors, retention and deletion, breach notice, audit, location, and return of data. The table gives what to look for in each and why. It is a reading aid, not a statement of what any law requires.

ClauseWhat to look forWhy
Purpose limitsThe vendor uses the data only to provide the service to the firm, on the firm's instructions. Check the exceptions: "to improve our services", "for analytics", "in aggregated form"The other clauses lean on this one. A wide purpose can undo them
TrainingAn express statement that inputs, outputs and uploaded files are not used to train or tune any model, by the vendor or by the model providerSilence is not a prohibition where the purpose clause allows "improvement"
Sub-processorsA list by name and function, including the company that runs the model. Notice before a new one is added, and a right to objectThe text goes to each of them, and the firm's questions follow it there
Retention and deletionHow long data is kept during the contract, how long after a deletion request, and what happens to backups and logs"Deleted" can mean hidden, scheduled, or gone
Breach noticeWho is told, how fast, by what means, and what the notice contains. Whether it covers suspected incidentsThe firm cannot tell a client what it has not been told
AuditA right to inspect, or to receive an independent auditor's report, at a stated frequencyIt is a way to test the other clauses
LocationThe country and, if stated, the region where data is stored and where it is processed. These can differA client's guidelines or a court order may restrict location
Return of dataA way to get files and records out at termination, in a usable format, within a stated time, before deletionA client's file may need to outlive the firm's subscription

Three clauses sit beside these eight and deserve a look: confidentiality obligations on the vendor's staff, the security measures the vendor commits to, and the vendor's response to a legal demand for the firm's data. On security measures, read the encryption term for who holds the key, as the post on what encrypted AI covers for a law firm explains.

Three places an AI contract differs from an ordinary software DPA

An AI tool adds points that a generic template may not address.

  • Derived data. Extracted text, search indexes and saved answers are copies of the files in another form. Check that "customer data" is defined to include them, so deletion and return reach them.
  • The model provider. The company that runs the model is a sub-processor even if the vendor thinks of it as infrastructure. Its terms on training and retention are part of the chain. The post on training follows client text past the vendor a firm signed with.
  • Human review. A service may have staff or contractors read prompts for abuse monitoring or support. A purpose clause may permit it without using the word "review".

What do GDPR Article 28 and California's statute require the contract to say?

GDPR Article 28 requires a written contract that binds the processor and stipulates eight listed obligations. California's statute defines a service provider as one that receives personal information under a written contract containing four prohibitions. Both apply only where the law itself applies, which for a small United States firm is a threshold question.

GDPR Article 28

The quotations here are from the text of Article 28 of Regulation (EU) 2016/679 as adopted, on the United Kingdom's legislation site, which publishes the original EU version.

Article 28(3) says processing by a processor "shall be governed by a contract or other legal act under Union or Member State law, that is binding on the processor with regard to the controller". The contract sets out the subject-matter and duration of the processing, its nature and purpose, the type of personal data and categories of data subjects, and the controller's obligations and rights. It must stipulate, "in particular", that the processor:

PointThe processor…
(a)"processes the personal data only on documented instructions from the controller", including for transfers to a third country, unless required by Union or Member State law
(b)ensures that persons authorized to process the data are committed to confidentiality
(c)takes all measures required by Article 32, on security
(d)respects the conditions in paragraphs 2 and 4 for engaging another processor
(e)assists the controller, insofar as possible, in responding to data subjects' requests
(f)assists the controller with its obligations under Articles 32 to 36
(g)"at the choice of the controller, deletes or returns all the personal data to the controller after the end of the provision of services", and deletes existing copies unless Union or Member State law requires storage
(h)makes available the information needed to demonstrate compliance and will "allow for and contribute to audits, including inspections, conducted by the controller or another auditor mandated by the controller"

Article 28(2) covers sub-processors: the processor "shall not engage another processor without prior specific or general written authorisation of the controller". Under a general authorization, the processor informs the controller of intended changes, "thereby giving the controller the opportunity to object". Article 28(4) requires the same data protection obligations to be imposed on the sub-processor by contract. Article 28(9) says the contract shall be in writing, including in electronic form.

Breach notice by a processor is in a different article. Article 33(2) says the processor "shall notify the controller without undue delay after becoming aware of a personal data breach."

Whether the regulation reaches a firm is set by Article 3. It covers processing in the context of the activities of an establishment in the Union. It also covers processing the personal data of data subjects who are in the Union by a controller or processor not established there, where the processing relates to offering them goods or services or to monitoring their behavior in the Union.

California Civil Code section 1798.140(ag)

The California Privacy Protection Agency posts the text of the California Consumer Privacy Act. Section 1798.140(ag)(1) defines a service provider as a person that processes personal information on behalf of a business and receives it "for a business purpose pursuant to a written contract, provided that the contract prohibits the person from" four things:

  1. selling or sharing the personal information;
  2. retaining, using or disclosing it for any purpose other than the business purposes specified in the contract, or as otherwise permitted by the title;
  3. retaining, using or disclosing it outside the direct business relationship between the service provider and the business;
  4. combining it with personal information received from other sources, subject to stated exceptions.

The same paragraph says the contract may, subject to agreement with the service provider, permit the business to monitor compliance through measures including audits "at least once every 12 months". Paragraph (2) says a service provider that engages another person to assist in processing shall notify the business, under a written contract binding that person to the same requirements.

These terms matter to a firm that is a "business" under section 1798.140(d). That definition requires doing business in California and meeting at least one threshold. The first is annual gross revenues above twenty-five million dollars, as adjusted. A firm that meets none of the thresholds is outside that paragraph of the definition. This post takes no view on whether any firm meets it, or on other states' statutes, which it did not read.

What Lucerna Law's terms and privacy policy state, clause by clause

Lucerna Law has no standard DPA today. Its pricing section lists "A standard MSA and DPA" under the Enterprise plan, and says in the same section that a standard MSA and DPA are among the items not built. Its data terms are in its terms of service and privacy policy.

The terms of service say how Lucerna Law handles a firm's files is set out in the privacy policy, and that a written agreement signed between a firm and Lucerna Law takes precedence over the terms where the two differ. Against the eight clauses:

ClauseWhat the terms and privacy policy state
Purpose limitsThe firm gives permission to store and process its files, questions and answers "only to provide the service to your firm"
Training"We do not use your files, questions, or answers to train any model". For the model's host, the policy reports AWS's statement that it does not train on what it is sent, and says the AWS service terms are what bind AWS to that
Sub-processorsNamed in the privacy policy: Amazon Web Services, Neon, Vercel, and Google for sign-in. The pages describe no advance notice of a new one beyond the policy's general change notice
Retention and deletionKept while the account is open, unless the firm's owner sets a retention period for closed matters. An owner or admin can delete a matter that is not on legal hold. On request, deletion is confirmed in writing. Deleted records can remain in the database provider's restore history until it runs out
Breach noticeThe firm's owners are told by email "without undue delay", with what was reached, when, and what has been done, without waiting for the inquiry to finish
AuditThe pages describe no audit right. No auditor has certified the service, and a SOC 2 Type I audit is planned
LocationStored in the United States
Return of dataA firm may stop at any time and ask for deletion. If Lucerna Law suspends or closes an account, it will, where it can, give notice first and a way to retrieve the firm's files

Three further statements bear on a contract review. The privacy policy says that if Lucerna Law receives a legal demand for a firm's data, it will tell the firm first unless the law forbids it. The policy and the terms can change by posting, with email notice of a significant change. And the homepage says Lucerna Law has no separately negotiated agreement with a model provider: the model runs under AWS's standard service terms.

The product's in-app security page says Lucerna Law does not say the service meets HIPAA, GDPR or any other law. A firm that needs an Article 28 contract or a service-provider contract would have to ask for a signed agreement. The terms provide that one would take precedence, and the pricing section says a standard one is not built.

A reading order for a vendor's DPA before the firm signs

A workable reading order for a vendor's DPA starts with the definitions, goes to the purpose clause, and then tests each remaining clause against one hypothetical matter. Reading in the document's own order can bury the definitions the other clauses depend on.

  1. Read the definition of customer data. Note whether it includes derived text, outputs and usage records.
  2. Read the purpose clause and underline every exception. "Improve", "develop", "aggregate" and "de-identified" are the words to stop at.
  3. Trace one file. Take a hypothetical 400-page medical record. Where is it stored, which sub-processors handle its text, how long after deletion does any copy remain, and how does it come back at termination?
  4. Read breach notice for the clock. "Without undue delay" and "within 72 hours" are different promises. So are "confirmed" and "suspected".
  5. Check precedence and change. Confirm which document prevails on data handling, and whether it can be changed by posting.
  6. Compare with what the firm told clients. If an engagement letter describes how AI tools handle client data, the DPA has to support that description. The post on an AI clause for the engagement letter covers that side.

Then mark each clause.

  • Present and acceptable
  • Present with an exception to negotiate
  • Absent, and asked for in writing
  • Absent, and accepted as a known gap by a named partner

The fourth box is a real answer: a firm may decide a tool is worth using for some matters with a gap in its paper, and the review tells it which gap it accepted. The confidentiality guide's list of questions to put to an AI vendor covers the conversation, and the comparison post treats data terms as one of eight criteria for scoring legal AI software.