Inspiration

Cities receive thousands of complaints every day, but most systems treat them equally. A broken streetlight and a flooding road shouldn’t have the same urgency. We wanted to build something smarter - an AI system that understands risk and helps cities respond faster where it matters most.

What it does

CivicAI 2.0 uses generative AI to automatically classify civic complaints, map them to UN SDGs, assess severity, and prioritize issues based on risk. It assigns departments, escalates overdue cases, and provides real-time analytics — turning raw complaints into actionable governance intelligence.

How we built it

We built CivicAI using: React + Tailwind for the frontend FastAPI for the backend Firebase Firestore for real-time data Google Gemini 2.0 for AI-based classification and risk scoring We used structured prompting and validation layers to ensure reliable AI output, along with a rule-based fallback for system stability.

Challenges we ran into

Getting consistent structured responses from the AI model Handling edge cases in complaint descriptions Designing a scoring system that balances automation with fairness We solved this by refining prompts, validating responses, and implementing fallback logic.

Accomplishments that we're proud of

Built a fully autonomous AI complaint classification system Integrated SDG mapping directly into the workflow Implemented dynamic priority scoring and auto-escalation Created a working, real-time governance dashboard CivicAI is more than a complaint tracker — it’s an AI decision-support system.

What we learned

We learned that generative AI can be structured for real-world civic use when combined with strong validation and system design. Smart prioritization can significantly improve governance efficiency.

What's next for CivicAI 2.0 – AI Urban Risk Intelligence

Geo-based heatmap visualization Predictive trend forecasting Multilingual support Integration with IoT smart infrastructure Our goal is to evolve CivicAI into a scalable AI governance platform for smart cities.

Built With

  • fastapi
  • firebase-authentication
  • firebase-firestore
  • google-gemini-2.0-flash-api
  • python
  • react
  • recharts
  • rest-apis
  • tailwind-css
  • uvicorn
  • vite
Share this project:

Updates