Intelligent Legal Assistance for India's Justice System
A multi-stakeholder AI-powered legal platform supporting Citizens, Lawyers, Police, and Administrators with intelligent case management, investigation assistance, cybercrime tracking, and real-time legal guidance โ inspired by Maharashtra Police's MahaCrimeOS AI.
Features โข Tech Stack โข AI Integration โข Installation โข Configuration โข Team
This project is configured with the developer's Azure AI Agent Service, Azure Maps, and other API credentials for demonstration purposes only.
You MUST replace all API keys, endpoints, and credentials in
appsettings.jsonwith your own before deploying or using this application. The developer's services may be deactivated, rate-limited, or removed at any time without notice.The platform currently uses in-memory JSON storage โ all data resets on app restart. For production use, integrate a persistent database (Azure Cosmos DB, SQL Server, etc.).
JurisAI is an innovative AI-powered web application designed to modernize India's legal ecosystem. The platform provides intelligent assistance across the full legal workflow โ from FIR drafting and case management to phone intelligence analysis and cybercrime investigation โ all powered by Azure AI and accessible in 8 Indian languages.
- ๐ค Azure AI Agent โ Intelligent legal chat, FIR drafting, and investigation guidance
- ๐ Phone Intelligence Dashboard โ Telecom, banking, OSINT, and CDR analysis
- ๐ Case Management โ Full lifecycle tracking with BNSS statutory deadlines
- ๐ก๏ธ Cybercrime Hub โ Scam reporting, pattern detection, and emergency SOS
- ๐ Legal Database โ IPC, BNS 2023, IT Act 2000, DPDP Act 2023, Constitution of India
- ๐ Multilingual โ Hindi, English, Bengali, Tamil, Telugu, Marathi, Gujarati, Kannada
- ๐ฅ Role-Based Access โ Citizen, Lawyer, Police, and Admin dashboards
- ๐ PDF Export โ Generate FIR drafts, legal notices, and reports as PDFs
| Module | Description |
|---|---|
| AI Legal Chat | Conversational legal assistant powered by Azure AI Agent |
| Case Management | Create, search, track, and manage legal cases |
| FIR Generator | AI-powered FIR drafting with PDF export |
| Case Tracker | Timeline visualization of case events |
| Deadline Tracker | BNSS statutory deadline calculation & alerts |
| Module | Description |
|---|---|
| Phone Intelligence | Phone number lookup across telecom, banking, and OSINT sources |
| CDR Analysis | Call Detail Record parsing, pattern detection, and visualization |
| Suspect Network | Relationship mapping and communication graph analysis |
| Evidence Custody | Digital evidence chain-of-custody with SHA-256/MD5 verification |
| CaseIQ | AI-guided investigation workflow and recommendations |
| Bank Freeze | Suspicious account freeze request management |
| Module | Description |
|---|---|
| Cybercrime Hub | Cybercrime resources, incident analysis, and case tracking |
| Scam Hub | Trending scams, alerts, and pattern database |
| Report Scam | Citizen scam reporting with categorization |
| Emergency SOS | GPS-based emergency alerts with legal rights display |
| Module | Description |
|---|---|
| Legal Database | Searchable IPC, BNS 2023, IT Act 2000, DPDP Act 2023 |
| Constitution | Full Indian Constitution browser with article search |
| Precedents | Landmark judgments and case law database |
| Legal Notices | 30+ legal notice templates with auto-generation |
| Module | Description |
|---|---|
| Admin Dashboard | System overview and management |
| User Management | Create, edit, suspend, and verify user accounts |
| Reports | Analytics dashboard with charts and exports |
| Settings | Theme, language, and preference management |
| Role | Access |
|---|---|
| Citizen | File FIR drafts, track cases, Emergency SOS, report scams, AI legal chat, search laws/precedents |
| Police | All Citizen features + Phone Intelligence, CDR Analysis, Evidence Custody, Deadline Tracker, CaseIQ, Suspect Network, Legal Notices |
| Lawyer | All Citizen features + Case management, precedent research, legal database, case assignment |
| Admin | All features + User Management, Verification Center, Reports Dashboard, System Settings |
- .NET 10 โ Latest .NET framework
- ASP.NET Core Blazor Server โ Interactive server-side components with SignalR
- Azure AI Agent Service โ Intelligent chat and document generation
- QuestPDF โ PDF document generation
- Razor Components โ Component-based UI architecture
- Bootstrap 5 โ Responsive layout framework
- Bootstrap Icons โ Modern iconography
- Custom CSS โ 50+ stylesheets with dark mode support
- Azure AI Foundry โ AI Agent for legal Q&A, FIR drafting, investigation guidance
- Azure Maps โ Geolocation, geocoding, and map visualization
- Azure Identity โ Managed identity and authentication
- In-memory JSON โ Lightweight storage for development
- JSON configuration files โ Case timelines, legal notice templates
The platform uses Azure AI Foundry to host an AI Agent that provides:
- Legal Q&A โ Answer questions about Indian laws, procedures, and rights
- FIR Drafting โ Generate structured FIR drafts from incident descriptions
- Investigation Guidance โ AI-powered case analysis and next-step recommendations
- Document Generation โ Legal notices, case summaries, and reports
โ ๏ธ The currentappsettings.jsoncontains the developer's Azure AI Agent endpoint. You must set up your own Azure AI Agent Service.
- Create an Azure AI Foundry project
- Deploy an AI Agent with legal domain knowledge
- Update
appsettings.json:
{
"AzureAgent": {
"ProjectEndpoint": "https://<your-resource>.services.ai.azure.com/api/projects/<your-project>",
"AgentName": "<your-agent-name>",
"TenantId": "<your-tenant-id>"
}
}Used for geolocation in Emergency SOS, jurisdiction lookup, and nearby services mapping.
{
"AzureMaps": {
"ClientId": "<your-client-id>",
"SubscriptionKey": "<YOUR_AZURE_MAPS_SUBSCRIPTION_KEY>"
}
}- .NET 10 SDK
- Visual Studio 2022/2026 or VS Code
- Azure Subscription (for AI Agent & Maps)
- Clone the repository
git clone https://github.com/JaswantVathanam/JurisAI.git
cd JurisAI- Install dependencies
dotnet restore-
Configure API keys (see Configuration)
-
Run the application
dotnet run- Open in browser
https://localhost:5031
Update appsettings.json with your own credentials:
{
"AzureAgent": {
"ProjectEndpoint": "<your-azure-ai-endpoint>",
"AgentName": "<your-agent-name>",
"TenantId": "<your-tenant-id>"
},
"AzureMaps": {
"ClientId": "<your-maps-client-id>",
"SubscriptionKey": "<your-maps-subscription-key>",
"DefaultCenter": {
"Latitude": 13.0827,
"Longitude": 80.2707,
"City": "Chennai"
}
}
}| Service | Purpose | Setup Guide |
|---|---|---|
| Azure AI Foundry | AI Agent for legal chat & document generation | Docs |
| Azure Maps | Geolocation & mapping | Docs |
| Azure Identity | Authentication & managed identity | Docs |
JurisAI/
โโโ Program.cs โ Service registration & app startup
โโโ Components/
โ โโโ Pages/ โ 29 Razor pages (main UI)
โ โโโ Layout/ โ App layout & navigation
โ โโโ Shared/ โ Reusable components
โโโ Services/ โ 40+ backend services
โ โโโ AzureAgentService.cs โ Azure AI Agent integration
โ โโโ AILegalChatService.cs โ Legal Q&A processing
โ โโโ CaseService.cs โ Case CRUD operations
โ โโโ PhoneIntelligenceService.cs โ Phone number analysis
โ โโโ FIRDraftService.cs โ FIR document generation
โ โโโ EvidenceCustodyService.cs โ Evidence chain tracking
โ โโโ ... โ 35+ more services
โโโ Models/ โ 24 data models
โโโ Controllers/ โ PDF export API
โโโ Data/ โ JSON configuration files
โโโ wwwroot/ โ CSS, JS, and static assets
JurisAI supports 8 Indian languages to ensure accessibility across India:
| Language | Code | Region |
|---|---|---|
| English | en |
Pan-India |
| เคนเคฟเคจเฅเคฆเฅ (Hindi) | hi |
North India |
| เฆฌเฆพเฆเฆฒเฆพ (Bengali) | bn |
West Bengal, Tripura |
| เฎคเฎฎเฎฟเฎดเฏ (Tamil) | ta |
Tamil Nadu |
| เฐคเฑเฐฒเฑเฐเฑ (Telugu) | te |
Andhra Pradesh, Telangana |
| เคฎเคฐเคพเค เฅ (Marathi) | mr |
Maharashtra |
| เชเซเชเชฐเชพเชคเซ (Gujarati) | gu |
Gujarat |
| เฒเฒจเณเฒจเฒก (Kannada) | kn |
Karnataka |
I'm very grateful to acknowledge the dedicated team members who contributed to the development of this platform:
- Ligoris Cabrini Devanandraj A (https://github.com/ligorisen)
- Sandhiya S (https://github.com/Sandhiya2110)
- Rishika Ponnalagappan (https://github.com/Rishika057)
Special thanks to my mentor for his invaluable guidance:
- Dr. M. Rajasekaran / Associate Professor - Academic Supervisor (https://github.com/Rajasekaran-Aravinthkumar)
- Microsoft โ For .NET 10, Blazor Server, Azure AI Foundry, and Azure Maps
- QuestPDF โ For excellent PDF generation capabilities
- The Open Source Community โ For the libraries and tools that made this possible
- Indian Legal Professionals โ For domain expertise and validation
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For questions, feedback, or support, please open an issue on GitHub.
Made with โค๏ธ for India's Justice System
Empowering legal access through intelligent technology