Case study Legal tech · AI

Pakistan LawBot legal AI

An AI legal assistant for Pakistani law — research with cited judgments, documents drafted with AI, contracts checked for risk, and a marketplace of verified lawyers. In English and Urdu.

English & Urduanswers & interface
13 document typesAI drafting
Verifiedlawyer marketplace
Pakistan LawBot on desktop and mobile
Product
Our own — Pakistan LawBot
Industry
Legal technology
We built
Web app, API, AI services & marketplace
Core technology
React · Node.js · MongoDB Atlas · Python
  • 600+API endpoints
  • 100+app pages
  • 26practice areas
  • 20MCP tools for AI assistants

See it livepakistanlawbot.com Legal drafting Document analysis Lawyer marketplace

The brief

The problem to solve

“No one should face a legal challenge alone because they can’t afford a lawyer or don’t know where to turn.” LawBot’s mission is to make justice accessible for every Pakistani — legal research, drafting and a verified lawyer, in plain English or Urdu.

Built forThe publicLawyersLaw firmsLaw students

Objectives

  1. Answer legal questions from Pakistani law, with sources
  2. Draft legal documents grounded in Pakistani statutes
  3. Explain any contract — summary, clauses and risks
  4. Connect people with verified lawyers and firms
  5. Work in English and Urdu, by text or voice
What we built

One platform, four audiences

The public, lawyers, law firms and law students each get tools built for how they work — on one API and one legal database.

LawBot chat — web search, audio search and Standard mode
  • Three chat modesCitation-backed research, plain-English guidance, or guided intake for lawyers.
  • Cited case lawOverviews written only from retrieved judgments, with inline [Case, Year] citations.
  • Statutes & judgmentsSupreme Court, High Court, Federal Shariat Court and tribunal judgments — filtered by court.
  • Chat with one sourceAsk questions about a single judgment or law.
  • Urdu, right to leftAnswers translated to Urdu in Nastaliq, and voice input in Urdu.
  • Web searchBring in fresh sources from the web when a question needs them.
LawBot AI drafting — a residential tenancy agreement with placeholders
  • 13 document typesLeases, NDAs, MOUs, partnership deeds, powers of attorney, affidavits, legal notices, wills and more.
  • Grounded in local lawDrafts follow Pakistani statutes such as the Contract Act 1872 and the Companies Act 2017.
  • Placeholders & exportSmart placeholders to fill in, then export to PDF or DOCX.
  • Guard model firstEvery request is checked to be a legal document before drafting starts.
  • Document analysisUpload a contract for a summary, key clauses, obligations and flagged risks.
  • Advocate reviewDrafts carry a notice to be reviewed by an enrolled advocate.
Verified lawyers & firms

Lawyer marketplace

People describe their problem in their own words; LawBot suggests the right kind of lawyer and books a consultation with a verified advocate.

6 core features
  • AI lawyer matchingWrite the problem in English, Urdu or Roman Urdu; AI picks the practice area, city and complexity.
  • Licence verificationLawyers upload their bar licence; the LawBot team approves it before the VERIFIED badge appears.
  • BookingsVideo, phone or in-person consultations, confirmed with a WhatsApp code.
  • RemindersEmail and WhatsApp reminders before every appointment.
  • PaymentsCard payments in rupees, bank transfer and in-app purchases.
  • Law-firm teamsFirms manage their lawyers and a branded workspace.
Case diary · students

Practice & study

Tools for the people who practise and study law every day.

5 core features
  • Case diaryCases, hearings and the next hearing date — with reminders.
  • For law studentsAn e-library, LGAT past papers and mock tests.
  • Legal job boardLegal jobs gathered from across the web.
  • Plans & trialFree, Standard and Pro plans in rupees, with a 7-day Pro trial.
  • Open to other AIAn MCP server with 20 tools, so outside AI assistants can use LawBot.
How it works

How a case-law answer is made

From a question in English or Urdu to an answer you can check.

STEP 01

Ask in your words

Type or speak — in English, Urdu or Roman Urdu.

STEP 02

Search the law

Keyword and vector search across judgments, filtered by court and outcome.

STEP 03

Answer from sources

The model writes only from the judgments it retrieved, citing each one.

STEP 04

Keep what’s cited

Judgments the answer doesn’t cite are dropped from the result.

STEP 05

Take the next step

Translate to Urdu, draft a document or book a verified lawyer.

Architecture

How the system fits together

A pre-rendered React app talks to a Node.js API; AI work runs in a separate Python service, and MongoDB Atlas holds both the app data and the legal search indexes.

Apps
Web appReact · Vite · pre-rendered for SEO
Admin & CRMVerification, leads, audit logs
AI assistantsMCP server · 20 tools
Server
APINode.js · Express · TypeScript — auth, quotas, drafting, case law and the marketplace
Data & services
Legal data & searchMongoDB Atlas Vector Search + Atlas Search
AI servicesPython AI server · Claude · GPT · Gemini
PaymentsStripe (PKR) · Apple & Google in-app
MessagingWhatsApp Cloud API · email
Challenges

Getting legal AI right

01

Answers you can check

ChallengeA legal answer without sources is worse than no answer.

How we solved itCase-law overviews are written only from retrieved judgments, with inline citations — anything uncited is dropped.

02

English and Urdu, one index

ChallengePeople ask in English, Urdu and Roman Urdu.

How we solved itMultilingual embeddings put English and Urdu in one vector space, running locally at no per-query cost.

03

Drafting only what it should

ChallengeAn open text box will be asked for anything.

How we solved itA fast guard model refuses non-legal requests before Claude drafts, and every draft carries an advocate-review notice.

04

Trust in the marketplace

ChallengePeople need to know a lawyer is real before they book.

How we solved itBar-licence checks by the LawBot team, a WhatsApp code before booking, and reminders for every appointment.

Product tour

LawBot, in action

The product film, and the document analyser at work.

Pakistan LawBot — the product film
Document analysis — risks, clauses and obligations
Document analysis — risks, clauses and obligations
Technology

The stack

Proven, well-supported tools — chosen so the platform is easy to run and to extend.

  • ReactWeb app
  • TypeScriptFront end & API
  • ViteBuild & pre-rendering
  • Tailwind CSSStyling
  • Node.jsAPI
  • ExpressAPI framework
  • MongoDBData, vector & keyword search
  • PythonAI services
  • AnthropicLegal drafting
  • OpenAICase-law overviews & matching
  • Google GeminiJudgment headnotes
  • Hugging FaceMultilingual embeddings
  • StripePayments
  • WhatsAppCodes & reminders
  • CloudflareEdge & security
  • SentryError tracking
The latest

Legal AI, done carefully

Law demands sources, human review and care with private documents. LawBot is built around all three.

Standard now

What’s changed — and how we use it

  • Citations by default

    Answers point to the judgment or statute they came from.

  • Human review

    Drafts are marked for review by an enrolled advocate.

  • Guardrails

    Requests outside the legal domain are refused before drafting.

  • Local language

    English, Urdu and Roman Urdu, by text or voice.

  • Open to other AI

    An MCP server lets outside assistants use LawBot’s tools.

Live today: research, drafting, document analysis and the lawyer marketplace all run at pakistanlawbot.com. Answers are legal information, not legal advice. Visit LawBot

Let’s talk

Need AI that works in a regulated field?

Tell us who will use it and what it must do. We’ll map the first release, the stack and the right team — in a free 30-minute strategy call.