Project Info
Halo Dispatch
Halo Dispatch is a 911 call analysis system that uses AI to extract key safety concerns and urgency scores from emergency call transcripts.
Project Structure
- halo-backend: FastAPI backend server with AI processing endpoints
- halo-frontend: Next.js frontend application
- orkes: Orkes Conductor workflow agents and testing tools
Orkes Conductor Integration
This project uses Orkes Conductor to orchestrate AI workflows:
- urgency_score_agent: Rates the urgency of 911 call transcripts on a scale of 1-10
- key_concerns_agent: Extracts key safety concerns from transcripts (e.g., Bleeding, Domestic Violence)
Setting Up Orkes
- Create an account on Orkes Conductor
- Register the workflow definitions from
orkes/workflows/ - Configure your API token in
orkes/.env - See
orkes/README.mdfor detailed instructions
Testing Orkes Workflows
# Navigate to the orkes directory
cd orkes
# Run the trigger script
python trigger_agents.py --workflow urgency_score_agent
python trigger_agents.py --workflow key_concerns_agent
# Test with custom transcript
python trigger_agents.py --transcript "I need help. Someone is breaking into my house."
# Test with sample transcripts
python trigger_agents.py --test-file tests/test_transcripts.json
Backend Setup
The backend uses FastAPI with OpenAI integration for AI analysis.
# Navigate to the backend directory
cd halo-backend
# Install dependencies
pip install -r requirements.txt
# Set OpenAI API key
export OPENAI_API_KEY="l4j4aac28607-4f06-11f0-a795-d685533af8e3"
# Run the server
uvicorn main:app --reload
API Endpoints
GET /: Health check endpointPOST /api/ai/urgency-score: Get urgency score for transcriptPOST /api/ai/key-concerns: Extract key concerns from transcript
Frontend Setup
The frontend is built with Next.js and includes an Orkes client integration.
# Navigate to the frontend directory
cd halo-frontend
# Install dependencies
pnpm install
# Set up environment variables
cp .env.example .env.local
# Edit .env.local with your Orkes credentials
# Run the development server
pnpm dev
Development Workflow
- Start the backend server
- Start the frontend development server
- Test Orkes workflows using the trigger script
- Use the test API script to verify backend endpoints
Testing
# Test backend API endpoints
cd orkes
python tests/test_backend_api.py
# Test with specific transcript
python tests/test_backend_api.py --transcript-id test-emergency-1
# Test only urgency endpoint
python tests/test_backend_api.py --endpoint urgency
Analysis
View
Metric
- 17
- 8
- 4
- 3
Figures cover GitHub contributors during the hackathon window. A co-authored commit counts in full for each author, so per-member totals add up to more than the whole-team figures.
Technology
- CSSIn code
- FastAPIIn code
- Next.jsIn code
- OpenAIIn code
- PythonIn code
- ReactIn code
- Tailwind CSSIn code
- TypeScriptIn code
- VercelClaimed
8 of 9 appear in the indexed code. 1 claimed on Devpost could not be matched to code, which may simply mean the tool leaves no trace in the repository.
AI coding agents
No AI coding agent signals were found in this repository.
Detected from committed agent config files and commit authorship. Absence of a signal is not proof an agent was unused.
Codebase size
Source size
574 KB
Source files
104
Counts recognized source files only; vendored directories, binaries and lockfiles are excluded, so this is smaller than the repository on disk.
Repository
Omer-Ozturk-SJSU/Halo-Dispatch
132 files · 2.5 MB · @ 5fa935c
Structure
Interface
58 files · 44%Screens, components and styles rendered to the user.
API & routing
4 files · 3%Request entry points: routes, handlers and controllers.
Application logic
27 files · 20%Domain rules, services and shared utilities.
+3 moreData & schema
4 files · 3%Schema definitions, migrations and data access.
Supporting
Layers are inferred from where files sit in the tree, not from reading the code. A project that names its directories unconventionally will read oddly here — open the file browser to check anything the diagram implies.
Languages
- TypeScript47%
- YAML33%
- Python15%
- Markdown4%
- CSS1%
Share of indexed source by file size. Binary and vendored files are excluded.
Dependencies
halo-frontend/package.json
npm · 61- @hookform/resolvers
- @io-orkes/conductor-javascript
- @radix-ui/react-accordion
- @radix-ui/react-alert-dialog
- @radix-ui/react-aspect-ratio
- @radix-ui/react-avatar
- @radix-ui/react-checkbox
- @radix-ui/react-collapsible
- @radix-ui/react-context-menu
- @radix-ui/react-dialog
- @radix-ui/react-dropdown-menu
- @radix-ui/react-hover-card
- @radix-ui/react-label
- @radix-ui/react-menubar
- @radix-ui/react-navigation-menu
- @radix-ui/react-popover
- @radix-ui/react-progress
- @radix-ui/react-radio-group
- +43 more
halo-backend/requirements.txt
pypi · 8- fastapi
- mysql-connector-python
- openai
- pydantic
- python-dotenv
- sqlalchemy
- uvicorn
- websockets
halo-backend/orkes/requirements.txt
pypi · 2- python-dotenv
- requests
orkes/requirements.txt
pypi · 2- python-dotenv
- requests
halo-backend/orkes/package.json
npm · 1- dotenv
orkes/package.json
npm · 1- dotenv
Declared in the repository’s manifests at the indexed commit. A declared package is not proof it is used, and runtime dependencies are listed first.
This project’s features have not been analysed yet.
Export this project's context (description, README, evidence, key source files) to chat with an AI agent elsewhere.