-
-
NyayMitra AI in action — describe your legal problem in any language and watch the AI agents activate instantly in real time.
-
One click generates a complete professional legal report as PDF — your entire case always saved and accessible forever.
-
Your Legal Report — automatically identifies Legal Issue Category, extracts Key Facts, Urgency Level, and exact laws that apply.
-
Case Strength Meter — 85% overall with Evidence Strength 95%, Legal Support 90%, Winning Probability 80%.
-
Laws That Protect You — POSH Act Section 4, IPC Section 354A, IT Act Section 67A. Ready to quote in any court.
-
Legal Notice drafted automatically — professionally formatted, legally accurate, ready to copy and send instantly.
-
3 legal documents generated free — Legal Notice, Complaint Letter to ICC, and RTI Application. All in seconds.
-
Legal Deadline Tracker — color coded countdowns for every critical filing date. Never miss a legal deadline again.
-
Government Schemes Radar — finds PMMY, STEP and every welfare scheme you qualify for with free helpline numbers.
-
Simple home screen — select category, type your problem, hit Find My Rights. Works in 6 Indian languages. Free.
-
Voice input — speak your problem in any Indian language. Mic records and types automatically. No typing needed.
-
Live AI pipeline — 4 agents working in real time. Intake done, Legal Research done, Document Drafter active now.
-
Case Summary Report — header, situation summary, case strength bar and all applicable laws in one clean professional PDF.
-
Case Summary Report continued — action plan, lawyer urgency gauge, free legal aid box and government schemes. All in one download.
Inspiration
India has 1.4 billion people but fewer than 50,000 lawyers accessible to common citizens. Every day millions of Indians face salary theft, workplace harassment, illegal evictions, and consumer fraud — but never fight back because they cannot afford a lawyer. We were inspired by one simple question: what if every Indian had a knowledgeable lawyer in their pocket, for free, in their own language? That question became Nyay Mitra AI.
What it does
Nyay Mitra AI is a free multi-agent AI legal rights assistant for every Indian citizen. A user describes their legal problem in any Indian language — Hindi, Telugu, Tamil, Bengali, Marathi or English — by typing or speaking via voice. Four specialized AI agents then activate in real time: the Intake Agent categorizes the problem, the Legal Research Agent finds every applicable law across IPC, POSH Act, RTI Act, Consumer Protection Act, Payment of Wages Act and more, the Document Drafter generates complete ready-to-use Legal Notices, Complaint Letters and RTI Applications, and the Scheme Radar finds every government welfare scheme the user qualifies for. The app also shows a Case Strength Meter with Evidence Strength, Legal Support and Winning Probability scores, a Legal Deadline Tracker with color-coded countdowns, and a one-click Case Summary PDF Report so users never have to re-explain their problem again.
How we built it
- Frontend: React.js + Tailwind CSS — clean two-panel layout with live agent activity panel
- AI Engine: Claude Sonnet 4 via OpenRouter API with a carefully engineered system prompt that returns structured JSON containing legal summary, applicable laws, drafted documents, government schemes, deadlines, and case strength
- Multi-Agent Pipeline: Four sequential agent cards with animated status indicators built in React, activating with staggered timing to make AI visible and trustworthy
- Voice Input: Web Speech API supporting 6 Indian languages with automatic language detection
- PDF Generation: jsPDF library for both individual legal documents and the full Case Summary Report
- Multilingual System: Language detection from user input with full response mirroring in the same language
- Deployment: Lovable.dev with GitHub integration
Challenges we ran into
- Language consistency: Getting Claude to respond entirely in Telugu or Hindi without mixing English required multiple iterations of the system prompt with strict language detection rules
- PDF content quality: Early PDF generations showed raw markdown asterisks and incomplete content — we rebuilt the entire PDF generation using pure jsPDF drawing commands to fix this
- Agent animation timing: Synchronizing the four agent cards with the actual API response required careful state management so animations felt real and not fake
- JSON parsing reliability: Claude occasionally returned markdown-wrapped JSON — we added a cleaning function to strip code blocks before parsing to ensure zero failures
- Multilingual voice: Web Speech API behaves differently across browsers for Indian languages — we added graceful fallbacks and error messages for unsupported environments
Accomplishments that we're proud of
- Built a fully functional multi-agent AI legal assistant in 48 hours that works in 6 Indian languages
- Generated real, legally formatted documents — Legal Notices, Complaint Letters, RTI Applications — that users can actually print and send
- Case Strength Meter giving users a visual percentage score with Evidence Strength, Legal Support and Winning Probability — never seen before in any Indian legal app
- The Case Summary PDF Report that saves users from re-explaining their problem every time — their complete legal case always accessible in one document
- Legal Deadline Tracker automatically calculating critical filing windows from today's date
- Government Scheme Radar surfacing welfare schemes most Indians never knew they qualified for
- Zero cost to the user — completely free, works on any smartphone browser, no app download needed
What we learned
- Multi-agent architecture does not require complex infrastructure — four well-defined agents with clear responsibilities, orchestrated through a single Claude API call with a structured JSON response, is powerful enough to deliver professional-grade legal analysis
- System prompt engineering is everything — the difference between a generic AI response and a genuinely useful legal document came entirely from how precisely we instructed Claude
- Real-world impact requires language accessibility — the moment we added Telugu and Hindi support, the app transformed from a tech demo into something that could genuinely change lives
- Hackathons teach you to prioritize ruthlessly — we cut features that were impressive but not useful and doubled down on what actually helped the user take action
What's next for Nyay Mitra AI — Free AI Legal Rights Assistant
- Document Scanner: Upload a photo of any legal document — rent agreement, court summons, salary slip — and AI reads every clause, flags dangerous terms, and explains it in plain language
- Nearest Legal Help Map: Google Maps integration showing the 5 nearest District Courts, Legal Aid Centres, Labour Commissioner offices and Consumer Forums
- Legal Emergency Mode: One-tap emergency button for domestic violence and police situations with instant helplines and pre-written WhatsApp SOS messages
- WhatsApp Bot Integration: Access Nyay Mitra AI directly through WhatsApp — the app most Indians already use daily — with no browser needed
- Offline Mode: Downloadable legal rights database for the most common problems so rural users with poor connectivity can still access their rights
- Pan-India Expansion: Add all 22 scheduled Indian languages so every citizen regardless of region can access justice in their mother tongue.
Built With
- claude-sonnet-4
- css3
- html5
- javascript
- jspdf
- lovable.dev
- openrouter-api
- react.js
- tailwind-css
- web-speech-api

Log in or sign up for Devpost to join the conversation.