JanMitra AI – Bridging Citizens and Government Through AI
Inspiration
Every day, citizens encounter problems such as overflowing garbage bins, potholes, broken street lights, water leakage, and sewer blockages. While governments often provide complaint systems, many citizens struggle with delayed responses, lack of transparency, and difficulty tracking the status of their complaints.
We were inspired by a simple question:
"What if reporting and resolving civic issues was as seamless as tracking a food delivery?"
This idea led us to create JanMitra AI, an intelligent civic governance platform that connects citizens, field workers, and administrators in a single real-time ecosystem. By combining Artificial Intelligence, real-time synchronization, location services, and smart analytics, we aimed to make city governance more transparent, efficient, and citizen-centric.
What It Does
JanMitra AI is an AI-powered civic complaint management platform that enables citizens to report civic issues and track their resolution from start to finish.
The platform consists of three dedicated portals:
Citizen Portal
- Register and submit complaints
- Upload photos, videos, and voice reports
- Auto-detect GPS location
- Track complaint status in real time
- Receive notifications
- Chat with support and AI assistant
Worker Portal
- View assigned complaints
- Navigate to complaint locations
- Upload before and after repair images
- Share live work progress
- Update task status in real time
Admin Portal
- Monitor all complaints
- Assign workers
- Manage departments
- View city-wide analytics
- Analyze performance metrics
- Track resolution efficiency
How We Built It
We designed JanMitra AI as a modern full-stack web application.
Frontend
- React.js
- TypeScript
- Tailwind CSS
- Shadcn UI
Backend
- Supabase
- PostgreSQL Database
Authentication
- Supabase Authentication
- Role-Based Access Control
AI Layer
- Google Gemini API
Maps & Location
- Google Maps API
- Geolocation Services
Real-Time Infrastructure
- Supabase Realtime Channels
The entire architecture was designed to ensure that whenever a citizen submits a complaint, the update instantly appears on worker and admin dashboards without requiring a page refresh.
AI Features
JanMitra AI leverages Artificial Intelligence to automate and improve complaint management.
AI Complaint Classification
The system analyzes uploaded images and descriptions to automatically determine:
- Complaint category
- Severity level
- Responsible department
AI Priority Detection
Complaints are intelligently categorized as:
- Low
- Medium
- High
- Critical
AI Completion Verification
The platform compares before and after repair images to determine whether the issue has actually been resolved.
AI Assistant
A conversational assistant helps citizens:
- Register complaints
- Track complaint status
- Get answers to civic service questions
Challenges We Ran Into
Building JanMitra AI involved several challenges.
Real-Time Synchronization
Ensuring instant updates across citizen, worker, and admin portals required careful implementation of realtime database listeners and event-driven workflows.
Multi-Role Architecture
Creating separate dashboards and permissions for citizens, workers, and administrators while maintaining a seamless user experience was a significant challenge.
AI Integration
Training prompts and workflows for accurate complaint classification and image analysis required extensive experimentation.
Location Accuracy
Handling GPS-based complaint reporting and worker tracking while maintaining performance and usability presented technical complexities.
Scalability
Designing a system capable of handling thousands of complaints while maintaining responsiveness was a key architectural consideration.
What We Learned
Throughout the project, we gained valuable experience in:
- Building scalable full-stack applications
- Implementing role-based authentication systems
- Working with realtime databases
- Integrating AI into practical civic workflows
- Designing user-centric government technology
- Managing location-based services and maps
- Creating enterprise-grade dashboards and analytics
Most importantly, we learned how technology and AI can be used to solve real-world public service challenges and improve citizens' everyday lives.
Future Scope
We envision expanding JanMitra AI with:
- WhatsApp-based complaint registration
- Multilingual support for regional languages
- Predictive maintenance using AI
- IoT-enabled smart city integrations
- Drone-assisted infrastructure inspections
- Blockchain-based audit trails
- Smart city performance forecasting
Impact
JanMitra AI transforms traditional grievance management into an intelligent, transparent, and efficient digital governance platform.
By connecting citizens, workers, and administrators through AI and real-time technology, JanMitra AI helps build smarter cities, faster resolutions, and stronger trust between governments and the communities they serve.
What Makes JanMitra AI Unique?
- Three-role ecosystem (Citizen, Worker, Admin)
- AI-powered complaint classification
- Real-time synchronization across all dashboards
- GPS-enabled complaint tracking
- Before/After image verification
- Intelligent analytics and reporting
- Multi-language support
- Smart city dashboard
- Transparent complaint lifecycle
- Scalable governance architecture
Conclusion
JanMitra AI is more than a complaint management platform—it is a step toward smarter, more transparent, and citizen-centric governance. By leveraging AI, real-time technologies, and modern web infrastructure, JanMitra AI empowers citizens, improves administrative efficiency, and strengthens trust between governments and communities.
Built With
- actions
- api
- app
- authentication
- css
- gemini
- github
- google-maps
- googlegeminiapi
- maps
- postgresql
- progressive
- realtime
- rest
- shadcn
- supabase
- tailwind
- typescript
- ui
- vercel
- web

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