Inspiration
The idea for the Public Safety Chatbot was born out of a need to make safety information more accessible and responsive in real-time, especially during emergencies. From natural disasters to public health crises and local safety incidents, we saw how difficult it can be for citizens to get clear, immediate, and trustworthy information. We were inspired by the potential of civic technology to bridge this gap — using AI and conversational interfaces to put crucial safety tools directly into people’s hands.
What it does
The Public Safety Chatbot provides real-time alerts, safety tips, and anonymous reporting through a simple and intuitive chat interface. It can inform users about local emergencies, guide them through reporting incidents, and answer common questions about personal and community safety. Available 24/7, it supports multiple languages, making it inclusive and accessible to a broad audience.
How we built it
We built the chatbot using a combination of OpenAI's natural language processing capabilities, a Node.js backend, and a React frontend. For real-time alerts, we integrated APIs from weather, police, and municipal databases. We also ensured the chatbot could be deployed across multiple platforms including web, WhatsApp, and SMS. Accessibility and data privacy were prioritized throughout the design process.
Challenges we ran into
One major challenge was curating accurate, real-time safety data from public sources and integrating them reliably. Ensuring user privacy, especially in anonymous reporting, required careful planning. Another technical hurdle was handling multi-language support while maintaining the chatbot’s accuracy and speed. Testing across different platforms also introduced UX and compliance challenges.
Accomplishments that we're proud of
We’re proud to have created a functional prototype that can handle real-time alerts, user queries, and basic reporting workflows. Seeing the chatbot successfully simulate emergency responses during test scenarios proved the value of our concept. We’re also proud of our commitment to inclusivity—ensuring the tool works for a diverse audience.
What we learned
We learned that combining civic needs with technology can have a real impact when usability and accessibility are front and center. We also deepened our understanding of integrating AI with real-world APIs and managing user trust when it comes to data handling. Community feedback played a crucial role in shaping our features.
What's next for Public Safety Chatbot (Civic Tech Initiative)
Our next steps include launching pilot programs with local government partners, expanding the database of safety-related information, and improving language support. We also aim to integrate voice capabilities and support for accessibility tools to reach elderly and visually impaired users. Long-term, we envision the chatbot becoming a key civic infrastructure tool for smart, safe cities.
Built With
- api
- express.js
- fastapi
- flask
- html/css
- javascript
- node.js
- openai
- python
- rasa
Log in or sign up for Devpost to join the conversation.