Mujtaba Majid Baig

Law firms · Intake · Dashboard

Legal Operations Hub

Client enquiries are saved to a database, summarised by AI and sent to the right practice-area team by Gmail, with a live dashboard.

  • n8n
  • Gemini
  • Supabase
  • Lovable
  • Gmail
  • Google Calendar

The problem

A law firm receives enquiries that must reach the right lawyer quickly. Reading each one, saving the details and telling the right team by hand is slow, and an enquiry can wait too long.

The solution

When a new enquiry arrives, the workflow saves it in a Supabase database. Gemini writes a short summary, and a switch sends a Gmail alert to the right practice area: business, family, property, corporate or criminal law. A follow-up event is created in Google Calendar. A Lovable dashboard shows the totals and a breakdown by practice area.

How it works

  1. An enquiry comes inThe workflow prepares the fields and checks that the enquiry is valid.
  2. It is saved in SupabaseA new row is created in the leads table, so every enquiry is recorded.
  3. AI writes a summaryGemini reads the enquiry and writes a short summary for the team.
  4. It goes to the right teamA switch node picks the practice area and sends the alert by Gmail to that team.
  5. A follow-up is plannedThe workflow creates a follow-up event in Google Calendar. A separate branch waits, checks the enquiry status and can send a reminder.
  6. The dashboard updatesThe Lovable dashboard shows total, new, in-progress and completed enquiries, and a count by practice area.

See it working

Walkthrough video, about 30 seconds: the dashboard, the n8n workflow and the Supabase table.
The Legal Operations dashboard: a greeting banner, cards for total, new, in-progress and completed enquiries, a status breakdown and a count by practice area.
The Lovable dashboard for client enquiries.
The n8n workflow: edit fields, an if check, create a row in Supabase, Gemini summary, a switch by practice area and a Google Calendar follow-up event.
The n8n workflow: AI summary, smart routing and a follow-up event.
The practice-area switch in n8n sending alerts to separate Gmail nodes for business, family, property, corporate and criminal law.
One Gmail alert for each practice area.
The Supabase table editor showing the leads table with practice area, description and status columns. Names and emails are blurred.
The Supabase database. Personal details are blurred.

Test enquiries only. The enquiries in this demo are test data, personal details are blurred, and the firm name on the dashboard is a sample.

What the demo shows

  • The dashboard with 12 test enquiries and a count for each practice area.
  • The n8n workflow with its AI summary, routing and notification steps.
  • The Supabase leads table with practice area, description and status.
  • Why a database is useful: the data stays in one place and the dashboard reads from it.

A good fit for

  • Law firms and legal teams
  • Clinics, agencies and consultants with several teams
  • Any business that sorts enquiries by type
  • Owners who want one dashboard for incoming work

Want something like this for your business?

Tell me what slows your team down. I will tell you whether it can be automated and how it would work.

mujtaba078123@gmail.com · Karachi, Pakistan (UTC+5)