Skip to main content
Hamza Khan

Legal workflow redesign and execution

AI agents for legal work. People own the decisions.

Six connected workflows, each one step toward an AI-native firm. I build AI agents for law firms and in-house legal teams, starting with one recurring task. AI-native operations connect your approved sources, tools and review steps, with a person approving consequential actions. These six examples cover intake, messages, deadlines, records, drafting and litigation preparation; choose the scope that fits your team.

Last updated

Illustrative patterns from delivered client work, mostly under NDA. All example screens use fictional data. The intake case study separately documents an implemented system.

Intake system · qualification
  1. 01Channels

    Voice · Email · Web form

  2. 02AI draft

    Missing details and follow-up prepared

  3. 03Person decides

    Intake staff approve or edit

  4. 04Permitted action

    Approved tools update the case

Held for intake staff approval
Illustrative patterns from delivered client work, mostly under NDA. All example screens use fictional data.

01 · Legal workflow

Client intake & qualification

Turn a new inquiry into a qualification summary and proposed next step for your intake team to review.

Inputs
Calls, emails, documents and the firm's intake criteria.
AI prepares
An organized inquiry, qualification summary, missing details and follow-up draft.
People decide
Intake staff approve follow-up; attorneys decide case acceptance and conflicts.
System records
The approved message, case update and decision trail.
Intake system · qualification
Explore steps

Qualification scorecard

Avery Morgan · new inquiry

Incident date
Within firm-defined intake criteria
Treatment
Emergency visit; physical therapy reported
Liability
Police report still needed
Insurance
Missing — follow-up draft prepared

Follow-up draft

Please share your insurance details and the police report when available.

Approval recorded · ready for permitted send

System records · received → drafted → approved → sent

Read the intake case study →

02 · Legal workflow

Client messages, clearly routed

Match incoming messages to the right matter and person, with urgent requests and proposed replies ready for review.

Inputs
Email, voicemail, text messages and portal submissions.
AI prepares
A proposed matter match, classification, extracted details and next action.
People decide
Case managers confirm matches and replies. Attorneys handle legal questions; ambiguous matches wait.
System records
The source message, approved action, owner and routing decision.
Client communications · switchboard
Explore steps

Mixed message feed

  • Matches each message to the client and matter.
  • Recognizes the request and flags urgency.
  • Routes it to the right person.
  • Drafts a reply for review.

03 · Legal workflow

Court orders, clear deadlines

Extract the order's instructions, calculate deadlines with a rules engine and confirm each date before it reaches the calendar.

Inputs
The order, applicable rules, service method and holiday calendar.
AI prepares
Relevant passages, trigger dates and preparation tasks. A rules engine counts the days.
People decide
The attorney and a second reviewer confirm each date before it reaches the calendar.
System records
Confirmed deadlines, task owners and the rules used.
Order → Rule → Check → Calendar
Explore stages

Incoming court order

“Response due within 14 days of service on 20 October. Hearing on 2 November at 9:30 am.”

Rules applied

Service date + 14 calendar days → 3 November

Attorney + second reviewer confirmed

Dates & next steps

Recorded
  • Response to motion due

    03 Nov · 14 days after service

  • Hearing date

    02 Nov · 9:30 am

  • Supporting documents needed

    Before response · assigned to paralegal

  • Client update sent

    After approval · delivery recorded

How dates are computed
  1. 1 · Read the order

    Extract the instruction and trigger date with its source passage.

  2. 2 · Apply the rules

    A rules engine counts days using court rules, holidays and service method; AI does not calculate dates.

  3. 3 · Confirm, then record

    The attorney and a second reviewer approve each date before calendar entries and tasks are created.

04 · Legal workflow

Find records. Build the timeline.

Track missing records, review what arrives and assemble a timeline linked to the source documents.

Inputs
Record requirements, request history, incoming documents and bills.
AI prepares
Request drafts, missing-item flags, extracted details and a sourced timeline.
People decide
Staff confirm completeness; attorneys decide how the evidence is used.
System records
Request history, reviewed findings and their source pages.
Records workbench
Explore stages

Follow-up ready

Staff approval required

“Your therapy notes mention Juniper Orthopedics. Did you attend, and on what date?”

  • Approved message returns to client communications.
  • The reply can open a new records request.
  • Track outstanding records and bills.
  • Flag missing pages, providers and treatment gaps.
  • Keep each finding linked to its source page.
  • Draft the next request for staff approval.

05 · Legal workflow

Drafting and review in Word

Review clauses and prepare edits using approved documents and playbooks from your firm or legal department.

Inputs
The working document, approved clauses, precedents and team guidance.
AI prepares
Clause checks, suggested edits and answers linked to their sources.
People decide
A lawyer accepts, edits or rejects each change.
System records
Sources, document versions and review decisions.
Drafting & review assistant
Explore stages
Mutual NDA · Draft for reviewIllustrative

Agreement · Clause 7

Limitation of liability

Liability is uncapped capped at twelve months’ fees.

Tracked change · awaiting lawyer review

  • Check clauses against your team's playbook.
  • Draft from approved language.
  • Explain suggestions with source links.
  • Flag inconsistent terms and cross-references.
Want one of these built? See legal AI engineering →

06 · Legal workflow

AI-assisted litigation preparation

Assemble evidence, a checked draft and a filing package for the attorney to review, sign and file.

Inputs
Authorized case records, requests, the attorney's chosen approach and approved research sources.
AI prepares
Record-linked material, a draft motion, citation checks and a filing checklist.
People decide
The attorney chooses strategy, approves, signs and submits. The system holds no filing credentials.
System records
Evidence links, citation checks, attorney approvals and the returned filing notice.
Decision → motion → filing
Explore stages

Attorney approval required

Final review and submission

Record the attorney's approval and returned filing notice.

Attorney reviews, signs and submits

The system holds no filing credentials.

  • Link facts to evidence and flag missing records.
  • Draft only after the attorney chooses the approach.
  • Block export until citation issues are resolved.
  • Leave strategy, signature and filing with the attorney.

Security checks

Test the boundaries as well as the workflow

The agreed testing scope checks how the application handles untrusted instructions, incorrect output, unauthorized access and unsafe tool use.

LLM features

OWASP Top 10 for LLM Applications

Checks for hidden instructions, data leaks and invented information.

Agents

OWASP Top 10 for Agentic Applications (2026)

Checks that agents stay within their approved tasks and permissions.

APIs

OWASP API Security Top 10 2023

Checks that connected systems protect each client and matter.

A review check for each workflow

These are example acceptance checks to agree for the engagement, not a claim that every illustration has completed a security assessment.

01 · Intake
Hidden email instructions cannot change a matter without approval.
02 · Messages
A client message cannot close a matter or send its file without approval.
03 · Deadlines
Unclear orders stop for review; dates must match the cited rule.
04 · Records
Medical records cannot reach an AI provider without the required agreement.
05 · Drafting
One firm cannot retrieve another firm's documents or clauses.
06 · Filing
An invented citation blocks export of the filing package.

Evidence your team can review

For the agreed security scope, delivery includes the following. The report records tested paths and limits; it is not a guarantee of complete security.

  • Penetration test report

    The agreed scope, tested paths and findings.

  • Reproducible findings

    Evidence and steps your team can repeat.

  • Fixes

    Remediation of the findings in the agreed delivery scope.

  • Retest

    The result of checking the fixes against the original findings.

Scope and delivery

Build around your systems and responsibilities

An engagement can cover a custom workflow, legal-system integrations, a legal-tech product or an application security assessment.

We agree users, data boundaries, approval steps and testing before implementation. Active security testing begins only after agreed authorization.

What we define together

  • The task, inputs and system owner.
  • Available APIs, permissions and any migration work.
  • What the system may prepare and what requires approval.
  • Deliverables, acceptance checks and handover documentation.

Controls your auditors can examine

We help your team prepare for ISO 27001, SOC 2 and HIPAA requirements.

Practical controls and evidence for your compliance programme. Independent auditors assess and certify where applicable.

On client projects I’ve helped teams achieve ISO 27001, SOC 2 and HIPAA compliance, building the access controls, audit logs, encryption and evidence their auditors examined.

Auditors issue the reports and certificates; I build what they examine.

What I do

  • Custom workflows for law firms and in-house legal teams, built into your existing systems
  • SaaS products for legal-tech founders, built end to end
  • Legal integrations: case management, Microsoft 365, phone, e-signature and court notices
  • Penetration testing of web, API and AI applications
  • Audit-ready controls and evidence

What I don’t do

  • Legal advice or legal opinions. Your attorneys make every legal decision.
  • AI that takes consequential action without a person’s approval
  • Acting as your auditor or issuing certifications
  • Filing with courts on your behalf

Start with the process

Bring one legal task. We’ll map the approvals.

Share a recurring request, document task or case workflow, the systems involved and who approves the result. We can define the engineering scope and checks for a useful first release.

Book a call(opens in new tab)

No legal advice. Your attorneys make every legal decision.