JanSetu AI is a multilingual AI platform designed to transform citizen voices, text, and development requests into structured intelligence for policymakers.
It helps identify community problems, understand their context, classify development needs, assess urgency, and generate AI-assisted recommendations for better infrastructure and public-service planning.
AI recommends. Policymakers make the final decision.
- ๐ Multilingual Citizen Input โ Marathi, Hindi, and English
- ๐ค Voice-Based Requests โ browser speech recognition for citizen voices
- ๐ค AI-Powered Analysis โ converts natural-language requests into structured data
- ๐ Development Intelligence โ identifies category, urgency, affected groups, and problem details
- ๐ฏ Priority Scoring โ combines citizen demand, urgency, infrastructure gap, population impact, and vulnerability
- ๐๏ธ Policy Recommendations โ AI-assisted recommendations for development planning
- ๐ Location-Aware Requests โ captures district and state information
- ๐ฑ Fully Responsive UI โ designed for desktop, tablet, and mobile
- ๐ Privacy-Aware Design โ follows data minimisation and responsible AI principles
Citizen
โ
โโโ Text
โโโ Voice
โโโ Regional Language
โ
โผ
Citizen Portal
โ
โผ
AI Request Analysis
โ
โโโ Problem Identification
โโโ Category Classification
โโโ Urgency Detection
โโโ Affected Groups
โ
โผ
Development Intelligence
โ
โโโ Citizen Demand
โโโ Infrastructure Gap
โโโ Population Impact
โโโ Vulnerability
โ
โผ
Priority Scoring
โ
โผ
AI Policy Recommendation
โ
โผ
Policymaker Decision
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Citizen Portal โ
โ React + TypeScript โ
โ โ
โ Marathi โข Hindi โข English โ
โ Text + Voice Input โ
โโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโ
โ
โ REST API
โผ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Backend API โ
โ Node.js + TypeScript โ
โ โ
โ Request Processing โ
โ AI Analysis โ
โ Priority Intelligence โ
โ Policy Recommendation โ
โโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโดโโโโโโโโโ
โผ โผ
โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
โ PostgreSQL โ โ Groq AI โ
โ + Prisma โ โ LLM โ
โโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโ
- React
- TypeScript
- Vite
- Tailwind CSS
- React Icons
- Browser Web Speech API
- Node.js
- TypeScript
- REST API
- Prisma ORM
- PostgreSQL
- Groq API
- AI-powered request analysis
- AI-assisted policy recommendations
- Multilingual citizen understanding
- Git
- GitHub
- ESLint
- TypeScript
JanSetu-AI/
โ
โโโ frontend/
โ โโโ src/
โ โ โโโ hooks/
โ โ โ โโโ useSpeechRecognition.ts
โ โ โโโ services/
โ โ โ โโโ api.ts
โ โ โโโ types/
โ โ โ โโโ speech.d.ts
โ โ โโโ App.tsx
โ โ โโโ main.tsx
โ โ โโโ index.css
โ โโโ package.json
โ โโโ .env.example
โ
โโโ backend/
โ โโโ src/
โ โ โโโ controllers/
โ โ โโโ routes/
โ โ โโโ services/
โ โ โโโ config/
โ โ โโโ middleware/
โ โ โโโ types/
โ โ โโโ utils/
โ โโโ prisma/
โ โโโ package.json
โ โโโ .env.example
โ
โโโ docs/
โโโ .gitignore
โโโ README.md
โโโ LICENSE
git clone https://github.com/SRCarlo/JanSetu-AI.git
cd JanSetu-AIcd backend
npm installCreate a .env file:
DATABASE_URL=your_postgresql_connection_string
GROQ_API_KEY=your_groq_api_key
PORT=5000Run Prisma:
npx prisma generate
npx prisma migrate devStart the backend:
npm run devBackend API:
http://localhost:5000
Open another terminal:
cd frontend
npm installCreate .env:
VITE_API_URL=http://localhost:5000/apiStart the frontend:
npm run devOpen the URL shown by Vite, usually:
http://localhost:5173
JanSetu AI uses the browser's Speech Recognition API.
Supported languages:
| Language | Recognition Code |
|---|---|
| Marathi | mr-IN |
| Hindi | hi-IN |
| English | en-IN |
For the best experience, use a browser with Web Speech API support such as Google Chrome.
Microphone permission is required for voice input.
JanSetu AI calculates development priority using multiple signals:
Citizen Demand
+
Urgency
+
Infrastructure Gap
+
Population Impact
+
Vulnerability
โ
Priority Score
Priority levels:
80โ100 โ CRITICAL
60โ79 โ HIGH
40โ59 โ MEDIUM
0โ39 โ LOW
The scoring system is designed to help policymakers identify requests that may require greater attention.
A citizen request can be transformed into structured information such as:
{
"category": "WATER",
"urgency": "HIGH",
"problem": "Lack of reliable drinking water",
"affectedGroups": [
"Residents",
"Children",
"Elderly"
],
"summary": "The community lacks reliable access to drinking water.",
"confidence": 0.91
}The structured output can then be used by the intelligence layer for priority assessment and recommendations.
JanSetu AI is designed around India's linguistic and geographic diversity.
The platform can support expansion toward:
- Regional Indian languages
- Voice-first citizen interaction
- WhatsApp-based reporting
- District-level dashboards
- Infrastructure intelligence
- Government scheme mapping
- Public grievance intelligence
- Development priority heatmaps
JanSetu AI follows a human-led approach.
- Understand citizen requests
- Structure unstructured information
- Identify development categories
- Estimate urgency
- Generate recommendations
- Assist prioritisation
- Verify information
- Evaluate feasibility
- Allocate resources
- Make final decisions
JanSetu AI assists decision-making; it does not replace human governance.
JanSetu AI aims to bridge the gap between:
Citizen Voice
โ
AI Understanding
โ
Development Intelligence
โ
Policy Priorities
โ
Better Public Infrastructure
The long-term vision is to build a scalable Digital Public Good that enables governments and communities to turn citizen feedback into actionable development intelligence.
- 22+ Indian language support
- WhatsApp citizen integration
- Government/policymaker dashboard
- District-level analytics
- Interactive infrastructure maps
- Priority heatmaps
- Government scheme recommendation
- Offline/low-connectivity support
- Advanced demographic and vulnerability analysis
- Cloud deployment and scalable infrastructure
SRCarlo
GitHub:
https://github.com/SRCarlo
This project is intended for educational, research, and hackathon purposes.
Add an appropriate open-source license before production/public deployment.
Giving every citizen a voice in development.
Listen to citizens. Understand their needs. Prioritize development.