Legal Prompting - AI-assisted contract and clause analysis
S01:E06

Legal Prompting - AI-assisted contract and clause analysis

Episode description

In this sixth episode we apply prompting techniques to contract analysis.

Four distinct operations, each with its own prompt:

  • Structured review of a single contract: role, applicable law, point of view, areas to examine, output format.
  • Comparison between versions: substantive differences, risk classification, few-shot prompting to standardize the format.
  • Verification against a checklist: the quality of the output depends on how specific the checklist is, and it must be built beforehand.
  • DPA analysis against article 28 of the GDPR: each letter of paragraph 3 as an item in a structured verification.

Three non-negotiable cautions: the model does not negotiate, it does not know the commercial context, and it does not replace the full reading of the contract by the professional.

In the background, a recurring theme: where the model that you use to analyze a client’s contract is actually running. A compliance choice before it is a technical one.

Download transcript (.vtt)
0:09

Welcome to Legal Prompting, I am Nicola Fabiano and this is Episode 6.

0:17

In the last episode, we looked at chain of thought and few-shot prompting, two techniques

0:23

that let us guide the model through logical steps and show it concrete examples of the

0:29

output we want.

0:31

Today we apply those techniques to one of the areas where lawyers work the most, contracts.

0:38

When I talk about contract analysis with AI, I mean four distinct operations.

0:44

The first is the structured review of a single contract.

0:49

The second is the comparison between two versions of the same text.

0:54

The third is the verification of a clause against a checklist.

0:58

The fourth is the analysis of a data processing agreement against Article 28 of the GDPR.

1:05

These are different operations and they require different prompts.

1:09

Let us start with structured review.

1:12

The most common mistake is to ask the model review this contract, a request that generic

1:20

produces a summary, not an analysis.

1:23

The prompt must instead define the role, indicate the applicable law, set the point of view

1:30

from which we read the text, and list the areas to examine.

1:35

For example, limitation of liability clauses, jurisdiction, term and termination, confidentiality,

1:43

data processing, force majeure.

1:46

For each area we ask the model to quote the text of the clause, identify the issue found,

1:53

and propose an alternative wording.

1:55

This is chain of thought applied.

1:58

The model does not issue a verdict, it walks through a reasoning that we can verify.

2:04

Comparison between versions is the use case where AI delivers the most reliable results.

2:11

We provide the two versions, we indicate that we want substantive differences and not purely

2:18

formal ones, and we ask that each difference be classified, in whose favor it has shifted,

2:25

and what risk it introduces.

2:28

Here, few-shot helps a great deal.

2:31

If we show the model one or two examples of how we want the difference analysis formatted,

2:38

the output becomes immediately more useful.

2:41

Verification against a checklist is delicate ground.

2:47

If the checklist is generic, the output is generic.

2:51

If the checklist is specific and truly reflects our professional practice, the output becomes

2:59

a working tool.

3:01

The point is that the checklist must be built beforehand, not improvised inside the prompt.

3:08

Now to the DPA, the Data Processing Agreement.

3:12

Here the reference is precise.

3:15

Article 28 of the GDPR lists the mandatory minimum content.

3:20

We can build a prompt that asks the model, for each letter of paragraph 3 of article

3:27

28, whether the corresponding provision is present in the DPA, where it can be found,

3:35

and whether it is drafted in a compliant manner.

3:39

This is an exercise where the model is genuinely useful, because the regulatory reference is

3:45

clear and exhaustive.

3:47

Three cautions.

3:49

First, the model does not negotiate.

3:53

It can flag that a clause is unbalanced, but it does not know how much bargaining power

4:00

we have, nor what the practice in the sector is.

4:05

Second, the model does not know the commercial context.

4:09

An exclusivity clause can be normal in one industry and pathological in another.

4:16

Third, no output replaces the full reading of the contract by the professional.

4:22

AI speeds up the first pass.

4:25

It does not sign in our place.

4:27

There is also a theme that will run through the upcoming episodes, where the model that

4:34

you use to analyze a client's contract is actually running.

4:40

Uploading a confidential contract to an uncontrolled cloud service is a compliance choice before

4:46

it is a technical one.

4:49

We will return to it in depth in the episode on professional secrecy.

4:54

In the next episode, we take a step forward, from the review of a single contract to legal

5:00

prompting as a structural component of corporate compliance processes.

5:06

How AI is integrated into a legal workflow without creating new risks and without diluting

5:13

responsibilities.

5:14

Thank you for listening.

5:16

See you in the next episode.