Skip to main content
Library

How to write AI prompts as a lawyer: the five-part formula

A reliable legal AI prompt has five parts: role, context, task, format and limits. Say who the assistant should act as, give anonymised context, state one clear task, specify the output shape, and set limits such as 'do not invent citations'. Then review the answer against sources.

By Raghav Handa · Updated 17 October 2026 · 3 min read

The five parts

General information, not legal advice. Check your own bar or regulator's guidance and your client engagement terms before putting any client information into an AI tool.

PartQuestion it answersExample
RoleWho is the assistant?'Act as a careful paralegal.'
ContextWhat does it need to know?'Anonymised facts: a commercial lease dispute in [jurisdiction].'
TaskWhat exactly do I want?'List the issues as questions.'
FormatWhat shape should the answer take?'A table with Issue, Facts needed, Source to check.'
LimitsWhat must it avoid?'Do not cite cases. Flag uncertainty.'

Before and after

Weak

'Tell me about notice periods for ending a lease.'

Stronger

'Act as a [jurisdiction] property paralegal. In a commercial lease, a tenant wants to end the lease early. List the questions I should check in the lease and in the governing rules, as a table with Question, Why it matters, Where to check. Do not state the law as settled; flag where I must verify.'

The second prompt narrows the scope, sets the audience and prevents the assistant from presenting guesses as law.

Common mistakes

  • Pasting a whole document and asking a vague question
  • Not naming the jurisdiction
  • Asking for authority and trusting what comes back
  • Bundling five tasks in one prompt
  • Including client names and facts that identify them
  • Accepting the first answer without a challenge step

Review checklist

  1. Does each factual claim match the source text I provided?
  2. Has any rule or case been mentioned? If so, find it independently.
  3. Are there assumptions I did not give? Remove or confirm them.
  4. Is the tone right for the reader?
  5. Is anything missing that a careful lawyer would add?

Frequently asked questions

How long should a prompt be?
As long as needed to remove ambiguity, usually a few sentences. Longer is not always better.
Do the same prompts work in every assistant?
Mostly, but outputs differ. Test your important prompts in the tool you use.
Should I save my prompts?
Yes. A database of tested prompts with dates is easy to build in Notion.
Can prompts guarantee accuracy?
No. They improve structure and reduce some errors, but verification is still necessary.

About the author

Raghav Handa

Raghav Handa trained as a lawyer, then spent years building legal technology, from enterprise legal products to custom systems for law firms.

Want it built for you?

LawyerOS is a ready-made Notion workspace for matters, deadlines, time and invoices. Starter $19, Pro with AI $39, one-time.

See LawyerOS