Case study · Legal · ERP + Copilot

ERP for a law firm:
matters, billing, and a Copilot bot.

Built end-to-end: a matter management system, a billable-hours and invoice module with a four-step approval chain, document control on SharePoint, and a Copilot Studio bot that lets the team ask questions across the matter base in plain English.

Client
Multi-office Indian law firm · anonymized
Vertical
Legal · full-service practice
Duration
9 weeks · kickoff → prod
Stack
Power Platform + React
800+
active matters
across practice areas
12 → 2
days to raise an invoice
draft to client send
Multi-office
single source of truth
lawyers across cities
9 wks
kickoff to production
phased rollout
The problem

A 12-day billing cycle and matters scattered across seven cities.

The firm, a full-service practice with offices across several Indian cities, was running each office on its own version of a stack of habits. Time entries lived in Outlook calendar invites, paper notebooks, and a different shared Excel per practice group. Matter documents sat on local network drives that nobody could reach from another office. Invoicing was a monthly scramble where the billing team chased dozens of lawyers for time data, then shuttled drafts through partners who were rarely in the same room.

What we found in week one of discovery:

  • An invoice took 12 days on average from draft to client send. One had been stuck for 41 days because the lead partner was in trial in another city.
  • Conflict checks before taking on a new matter were an internal email to the practice heads. One conflict had slipped through across two offices and almost ended a referral relationship.
  • Three versions of the same draft contract sat in a matter folder named 'Acme NDA v2 (final) (FINAL) - revised.docx'. A junior associate had spent half a day finding the right one.
  • Cross-office matter visibility was effectively zero. The Delhi billing team had no clean way to see what Mumbai litigation had clocked that week.

They had looked at LegalTech SaaS: CaseFox, MyCase, a few Indian options. All assumed a US billing model (six-minute slots, ABA-format invoices) and none of them spoke GST. The team wanted something that fit the way the firm actually billed.

Acme NDA · matter folder · before3 conflicting versions
FilenameModifiedBy
Acme NDA v2.docx12 MarPriya S.
Acme NDA v2 (final).docx14 MarKaran M.
Acme NDA v2 (final) (FINAL) - revised.docx15 MarPriya S.
ACME_NDA_signed_scan.pdf18 MarReception
!No version control. Two associates editing in parallel. Half-an-hour wasted finding the latest draft, every time.
The solution

One system. The way the firm actually runs.

Matter management, end to end

Every matter has its own record: client, opposing party, practice area, lead lawyer, hearing calendar, document folder, billing arrangement. The firm calls them 'matters' (not 'cases'), so that's what the UI calls them too.

Clients and conflict checks

A corporate client can have a dozen matters across years. Before opening a new matter, the system runs a conflict check across all parties, current and historical, and flags anyone within two degrees.

Billable time + GST invoicing

Built-in timer plus quick time-entry. Lawyers tag every entry to a matter. Rates come from per-lawyer cards, with overrides for retainer matters. Invoices auto-compute GST at 18% and number sequentially in line with audit requirements.

Four-step approval workflow

Drafter → senior lawyer → managing partner → billing. Each step has its own SLA. The chain is built on Power Automate so a reminder fires every 24 hours if a step is stuck. Invoices that used to take 12 days now go out in 2.

Document control · SharePoint-backed

Files live in SharePoint, mapped one-to-one with each matter. Auto-naming enforces a convention. Version history is on by default. No more 'FINAL (revised)' filenames. Internal-vs-client-shared scoping is at the file level.

Copilot Studio bot

A bot that sits in Teams and answers in plain English: 'What's the status of LIT-2025-0142?', 'Show me Acme's latest NDA', 'Which invoices have been stuck in approval over a week?' Grounded only on the firm's own data. No fishing on the open web.

Approval chain

Four people. One invoice. Two business days.

Same day
Step 1
Drafter
Junior associate · Priya S.

Pulls time entries for the matter, writes a one-line narrative per entry, submits.

≤ 24h
Step 2
Senior review
Lead lawyer · Karan M.

Adjusts entries down if hours look high. Adds or removes line items. Can kick back to drafter with comments.

≤ 24h
Step 3
Partner sign-off
Managing partner

Reviews the total against the client's retainer / cap. Approves or rejects with a single click. Never has to open Excel.

Same day
Step 4
Billing & send
Billing executive · Anu

Auto-generated PDF on the firm's letterhead, GST line auto-added, sequential invoice number locked. Emailed from the matter record.

Built on Power Automate, not a custom queue. Reminder logic, escalations, and audit trail are all flows we can tweak without redeploying the React app. The managing partner can change "who escalates to whom" on her own.
The Copilot bot

Plain-English queries. Grounded on the firm's own data.

Most "AI for lawyers" tools point an LLM at the public internet and hope. That's not useful when the question is "what did Karan email the opposing counsel last week?" The answer isn't on Google.

We built the bot in Copilot Studio, grounded entirely on the firm's own data: the matter database, the SharePoint document library, the invoice ledger. It lives in Microsoft Teams so lawyers can ask from desktop or phone.

The scope is intentionally narrow. It looks things up; it doesn't draft pleadings. The team trusts a tool that says "here are the three relevant files" more than one that pretends to write the argument for them.

What we chose not to build: the bot doesn't draft new contracts or generate legal opinions. That guardrail is a feature. The partners wanted a lookup tool, not a co-author.
FirmAssist · Teams chat
Grounded
What's the status of LIT-2025-0142?
Matter LIT-2025-0142 (Apex vs Singh): next hearing Mon 19 May at Bombay HC. Lead: Karan M. Last update 3 days ago: written submissions filed.
Find Acme's latest NDA.
Latest version: ACME_NDA_v3_signed.pdf (matter MAT-2024-0088, signed 4 Mar 2025). Two earlier drafts in the same folder, latest unsigned draft from 22 Feb.
Invoices stuck in approval over a week?
Three: INV-2025-1042 (8 days, with senior review), INV-2025-1051 (11 days, with managing partner, flagged), INV-2025-1056 (7 days, billing).
In production

Matter dashboard · the team's daily view.

firm.app/matters · live
Active matters · 812 · billed Q1 ₹4.6 Cr
Multi-office · 6 practice groups
Search matters
MatterClientPracticeLeadNext eventBilledStatus
LIT-2025-0142Apex IndustriesLitigationKaran M.Mon 19 May · Bombay HC2,84,000Active
MAT-2025-0088Northline VenturesCorporate · M&APriya S.DD report 22 May6,12,500Active
MAT-2025-0091Crest RealtyCorporateKaran M.None98,000On hold
IP-2025-0014Verde FoodsIP · TrademarkAnjali D.Hearing 11 Jun1,45,000Active
LIT-2024-0231Mehta GroupLitigationKaran M.Settled5,80,000Closed
WIP unbilled
₹18.4L
Stuck in approval
3
Avg days to invoice
2.1
"We used to lose two days a month to billing chaos. Now an invoice goes out before I've finished my morning coffee. The bot was a gimmick we asked for. Turns out the juniors use it more than I do."
MP
Managing Partner
Multi-office Indian law firm · anonymized
Live · 7 months
Running a professional services firm?

We build the ERP.
You stop chasing invoices.