Nyayasarthi
The digital bridge for India's legal system.
Created on 9th May 2026
•
Nyayasarthi
The digital bridge for India's legal system.
The problem Nyayasarthi solves
The Problem: A Disconnected Justice System
The legal system is crippled by over 50 million pending cases. Currently, Citizens, Police, Lawyers, and Judges operate in isolated silos, causing massive delays.
For the common citizen, seeking justice is terrifying due to complex legal jargon (especially with the new BNS laws), language barriers, and zero transparency. Meanwhile, police forces drown in administrative paperwork instead of focusing on active investigations. Justice is not just delayed; it is disconnected.
The Solution: Nyayasarthi
Nyayasarthi is an AI-driven Universal Justice ecosystem that connects all four pillars of the legal system on a single, transparent digital platform.
Breaks the Legal Literacy Barrier: A Multilingual AI Chatbot lets citizens speak or type in their native language. The AI instantly acts as a legal assistant, educating them on applicable BNS sections before they even file a report.
Automates Police Administration: The AI automatically extracts the citizen's chat to generate a structured, Draft Digital FIR, cutting police administrative work down to a single verification click.
Unifies the Network: A secure, role-based 4-Way Chat allows direct, permission-controlled communication between citizens, lawyers, police, and judges, drastically reducing the time between physical court dates.
Guarantees Transparency: A live Case Progress Tracker and an Immutable Transparency Log ensure citizens are never left in the dark and case files cannot be tampered with.
Real-World Impact:
- A non-English speaker easily drafts a legally sound police report via voice.
- Police precincts clear documentation backlogs using AI-generated drafts.
- Citizens track their case live on low-end mobile devices without traveling to a courthouse
Challenges we ran into
1. Taming the AI for Legal Structuring
The Hurdle: When building the chatbot, the AI was initially too conversational. We needed it to extract specific incident details and map them strictly to Bharatiya Nyaya Sanhita (BNS) sections for the Draft FIR, rather than just offering generic advice.
- The Fix:
We overhauled our Gemini API integration using strict system instructions and few-shot prompting. We enforced a JSON-only response format and built a custom parsing layer to feed the structured legal data directly into our database securely.
2. The 4-Way Communication State Management
The Hurdle: Connecting four distinct roles (Citizen, Police, Lawyer, Judge) on a single platform created a massive headache for real-time state management and data privacy. For example, a citizen cannot see internal police remarks, but both need to be interacting with the same active case file.
- The Fix:
We implemented a rigorous custom Role-Based Access Control (RBAC) middleware. Every API route and live chat room is strictly scoped—not just by the user's role, but by their specific authorization level tied to the unique Case ID.
3. Handling Multilingual Asynchronous Data
The Hurdle: Processing non-English inputs and translating them into accurate legal English for the police dashboard caused significant latency, resulting in a poor user experience on the citizen side.
- The Fix:
We decoupled the translation and FIR generation logic into background asynchronous tasks. The user gets an immediate success response, while the heavy lifting happens server-side, updating the front-end via live progress trackers once completed.
Technologies used