AutoProc's bot system combines real-time health monitoring, multi-layered failure prevention, and AI-powered clinical extraction — engineered to run reliably at scale across 18 clinical verticals including NDIS.
Twelve background jobs coordinate bot launch, health monitoring, AI processing, and recovery — all orchestrated by a single APScheduler daemon.
Three phases coordinate to deliver a complete, AI-extracted clinical session with zero manual intervention.
Every 60 seconds, the scheduler scans for confirmed appointments. A 4-layer safeguard prevents duplicates, caps concurrency, and routes to the right bot type.
Two parallel jobs watch every active bot. Heartbeat detection via Daily.co webhook events; direct process exit monitoring via OS signal checks — every 30 seconds.
On session end, Whisper transcribes the audio. Claude Opus extracts structured clinical fields — summary, diagnosis, goals, progress — pushed in real-time to mobile.
Appointments are automatically routed to the optimal bot based on your AI agent configuration, language needs, and session type.
Full-featured clinical assistant powered by Claude with ElevenLabs TTS. Handles complex multi-turn clinical conversations across all 18 verticals.
Google Gemini Live API with native multilingual support. Preferred when gemini_enabled = 1 is set on the tenant.
Optimised for follow-up calls. Lower resource footprint, faster startup, designed for scripted or structured follow-up session types.
Every launch passes through four independent checks before a subprocess is spawned. If a bot fails mid-session, the system detects it within 30 seconds and notifies the patient automatically.
Non-fatal OS signal verifies whether the existing process is still alive. If dead, records are cleaned and a fresh subprocess is spawned.
A 60-second lock stored in bot_launch_locks prevents re-launch storms after a service restart. No race conditions.
If a bot has failed to launch 3 or more times, the scheduler stops and creates an incident. No infinite retry loops.
Active bot count is checked per tenant before each launch. If over the configured limit (default: 40), the appointment queues for the next cycle.
When a bot fails mid-session, the patient receives an automated recovery notification within 2 minutes containing a secure 4-hour resume link — no manual intervention required.
Whisper STT transcribes the session. Claude Opus extracts structured clinical data. Both push to your mobile dashboard in real time.
Bot constructs full transcript, SOAP note, and session metadata on exit.
HTTP POST to /tenant/daily/webhook. HMAC-SHA256 signature verified. Up to 5 retries on failure.
OpenAI Whisper transcribes the audio file. Confidence score 0.95. Supports 21 languages. Polled every 15 seconds.
Claude Opus extracts six structured clinical fields from the transcript. 0.92 confidence. Saves 5–10 minutes of manual data entry per session.
WebSocket emits note_extracted event. Clinician sees the note on their mobile dashboard before leaving the session room.
The details matter. Here's how the bot system handles the hard cases.
Join clinics already running AutoProc bots across 18 specialties. Setup takes minutes.