The intelligence behind
the handover.

CascadeAI orchestrates six specialized AI agents native to Microsoft Azure, combining real-time speech processing, strict clinical protocol matching, and Care System data synchronization with typical response times under two minutes.

System Architecture

A unified data flow from clinical frontend to secure Azure AI orchestration.

🖥️

Frontend Client

React SPA + WebRTC Audio

Azure Static Web Apps

FastAPI Gateway

Stateless Python Orchestrator

Azure App Service
Azure Speech

Real-time WebM to Text
HIPAA-compliant transcription

🧠 6-Agent Engine
Intake Update Verify Protocol Draft Coord
Azure OpenAI (gpt-5-mini)
🗄️ PostgreSQL Care Records

Resident master records
Row-Level Security

Supabase

The Stack

Built on modern, scalable primitives for maximum reliability.

Frontend

React + MediaRecorder API

Real-time Base64 audio encoding in the browser.
⚙️

Backend

Python FastAPI

High-performance ASGI server orchestrating 6 agents.
🧠

AI & ML

Azure OpenAI & Speech

gpt-5-mini reasoning combined with HIPAA-compliant transcription.
🗄️

Database

Supabase (PostgreSQL)

Structured Care Record data with strict Row-Level Security.
☁️

Deployment

Azure Cloud Native

Static Web Apps (UI) + App Service (API).

Multi-Agent Workflow

A deterministic state machine orchestrating non-deterministic models.

Audio / Text Input
IntakeAgent
Transcription & Extraction
UpdateAgent
Classification & Formatting
CoordinatorAgent
Orchestrator · Risk Scoring
VerificationAgent
Care Record Verification
ProtocolAgent
Clinical Compliance
DraftGenerator
Narrative & Timeline

Real-Time Data Pipeline

From spoken word to structured Care System insertion in under two minutes.

🎤
Care Team Audio
📡
Base64 Encode
🎵
ffmpeg (WAV)
📝
Azure Speech
🧠
OpenAI JSON
🗄️
Row-Level DB

Database Substrate

PostgreSQL schema engineered for Care Record data integrity and clinical workflow tracking.

📇 public.residents
id uuid PK
resident_id text UNIQUE
name text
age integer
medications jsonb
vitals_history jsonb
🏥 public.staff_shifts
id uuid PK
staff_id text
shift_type text
resident_ids text[]
status text
📋 public.resident_updates
id uuid PK
shift_id uuid FK
resident_id text FK
update_type text
transcription text
extracted_data jsonb
record_verified boolean
📄 public.draft_handoffs
id uuid PK
shift_id uuid FK
status text
structured_data jsonb
narrative_summary text
📨 public.sent_handovers
id uuid PK
draft_id uuid FK
from_staff_id text
to_staff_id text
status text