π‘ Inspiration
π Over 240 million emergency calls are made in the United States each year (National Emergency Number Association), putting extreme pressure on dispatchers in life-or-death situations. In those critical first moments, key details can be missed, delayed, or misunderstood when callers are panicking.
FirstWaveAI was built to rethink the emergency intake process. I created an AI-powered call assistant that speaks directly with callers, asks clarifying questions, and structures critical information in real time. The system then visualizes the situation on a live map, identifies nearby resources, and generates an AI-assisted dispatch recommendation, all while keeping a human dispatcher in full control with an approval override. π
π¨ What it does
FirstWaveAI is a real-time emergency dispatch assistant that combines speech recognition, multi-agent AI, and interactive visualization to help dispatchers work faster and more accurately.
π§ Core Features
ποΈ Voice-First Interface
Callers can speak naturally using the Web Speech API, while the system transcribes the conversation in real time and maintains a full transcript.
π§ Multi-Agent AI Pipeline (LangGraph + LLaMA 3.3 70B)
Six specialized AI agents work together to analyze the call:
- π Extraction Agent β Captures key details (location, injuries, hazards, people count)
- π¦ Triage Agent β Assigns priority levels (P1βP4)
- β Next-Question Agent β Suggests clarifying follow-ups
- π Dispatch Planner β Recommends EMS, Fire, or Police
- πΊοΈ Resource Locator β Finds nearest available units with ETAs
- π‘οΈ Safety Guardrail β Ensures ethical RECOMMENDATIONS
π₯οΈ Interactive Dashboard
A clean three-column interface shows:
- Live chat transcript π¬
- AI-generated emergency summary π
- Dispatch recommendations with approve/cancel controls β
β
πΊοΈ Resource Mapping
An interactive Leaflet map displays nearby hospitals, fire stations, police, and pharmacies with distances and travel times.
π οΈ How I built it
Frontend
- Next.js 16 + React 19
- Tailwind CSS 4 (custom emergency theme)
- shadcn/ui components
- Leaflet + Openstreetmap
- Web Speech API
- TypeScript
Backend
- FastAPI
- LangGraph (multi-agent orchestration)
- Groq + LLaMA 3.3 70B
- Fish Audio API (TTS)
- Server-Sent Events (SSE) for real-time updates
β οΈ Challenges I ran into
Building AI for real emergencies is hard.
- π Avoiding redundant questions β The AI kept asking things the caller already said, so I had to add strict memory rules.
- β±οΈ Speed vs. accuracy β P1/P2 emergencies required immediate action, while P3/P4 allowed more questioning. Encoding this logic took serious prompt tuning.
- βοΈ Ethical safety β I carefully designed guardrails to prevent harmful questions.
π Accomplishments Iβm proud of
π― This was my first fully solo hackathon project!
π What I learned
- ποΈ Solo project management β better scoping, prioritization, and focus
- π Debugging under pressure β isolating issues across multiple systems quickly
π Whatβs next for FirstWaveAI
π MCP Integration - Replace mock data with real Model Context Protocol servers for:
- Live emergency unit locations
- Hospital availability
- Real-time traffic conditions
Built With
- fastapi
- groq
- langchain
- langgraph
- next.js
- python
- typescript
Log in or sign up for Devpost to join the conversation.