Introduction
DispatchAI uses a multi-agent system to analyze emergency calls in real-time. The system processes both audio and text streams to provide dispatchers with critical information including:- Emergency service classification (EMS, FIRE, POLICE, OTHER)
- Emotional state assessment
- Situation summaries
- Semantic tags for quick triage
Architecture
The agent system follows a dual-track processing architecture:Processing Tracks
- Audio Track - Analyzes raw audio for distress signals
- NLP Track - Processes transcribed text for semantic understanding
Core Agents
The system includes specialized agents that work together:| Agent | Purpose | Output |
|---|---|---|
| STT Client | Converts speech to text | Real-time transcript |
| Emotion | Classifies emotional state | CALM, TENSE, DISTRESSED, etc. |
| Service Classify | Determines emergency type | EMS, FIRE, POLICE, OTHER |
| Summary | Generates dispatcher brief | 1-2 sentence summary |
Data Flow
- Audio Input → STT Client produces partial and final transcripts
- Parallel Processing:
- Audio features → Distress score
- Transcript → Emotion, Service Classification, Summary
- Results Merge → Combined analysis packet
Key Concepts
Distress Score
A float value between 0.0 and 1.0 indicating audio-based distress level:0.0 - 0.15: CALM0.15 - 0.3: TENSE0.3 - 0.7: DISTRESSED0.7+: HIGHLY_DISTRESSED
Service Categories
Every call is classified into one of four primary categories:- EMS - Medical emergencies
- FIRE - Fire, hazmat, rescue
- POLICE - Crime, violence, public safety
- OTHER - Non-emergency or unclear
Semantic Tags
Detailed situation markers likeACTIVE_SHOOTER, CARDIAC_ARREST, FIRE, etc. that provide granular context beyond the primary category.
The agent system is designed to handle real-time streaming - agents process data as it arrives rather than waiting for the complete call.
Configuration
Agents are configured via environment variables:Next Steps
Pipeline Coordination
Learn how the pipeline orchestrates agents
Emotion Classification
Understand emotional state detection
Service Classification
Explore emergency type detection
Summary Generation
See how AI summaries are created