Safe4Seniors Technical Architecture

AI-Powered Voice Agent for Senior Aging-in-Place Support

USER VOICE AI CORE DATA Senior Phone Call Senior Webchat Family/Caregiver Dashboard Access Care Coordinator Alert Dashboard 911 / EMS Emergency Transfer Twilio / Voice Provider Inbound/Outbound Calls WebSocket Real-time Webchat Cloudflare Workers Edge Compute / API Deepgram Speech-to-Text Real-time Transcription Claude AI Conversation Engine Health Check • HomeFit Tips • Emergency Detection Deepgram TTS (or ElevenLabs) Natural Voice Output Emergency Detection Fall • Stroke • Chest Pain Cloudflare D1 User Profiles • Call Logs Health Tracking Pain • Sleep • Mood • Meds Vectorize + RAG 88 AARP HomeFit Tips Analytics / Alerts Trend Detection • Reporting Legend: Voice/Audio Flow AI Processing Data Storage Emergency Path Alerts / RAG PLATFORM STATUS: ✓ Built & Deployed

Voice Layer

  • • Twilio (or Telnyx/SignalWire)
  • • WebSocket for webchat
  • • Cloudflare Workers edge

AI Core

  • • Deepgram STT (real-time)
  • • Claude AI (conversation)
  • • Deepgram/ElevenLabs TTS

Data Layer

  • • Cloudflare D1 (SQLite)
  • • Vectorize (HomeFit RAG)
  • • 88 AARP recommendations

Safety Systems

  • • Emergency detection
  • • Direct 911 transfer
  • • Coordinator alerts

HIPAA-Compliant Clinical Analysis Pipeline

Every voice check-in generates a transcript that requires clinical analysis — risk scoring, billing codes, and a summary for care coordinators. Because this involves Protected Health Information (PHI), we built a fully HIPAA-compliant backend on AWS.

AWS Lambda

  • • Call processor in private VPC
  • • Bearer token authentication
  • • Direct PostgreSQL via pg8000

RDS PostgreSQL

  • • KMS encryption at rest
  • • Not publicly accessible
  • • Patient records + clinical sessions

Bedrock Claude

  • • Clinical risk scoring (0–10)
  • • CMS billing code generation
  • • Structured JSON analysis

✓ HIPAA Safeguards Implemented

✓ Encryption at rest (KMS)
✓ TLS everywhere in transit
✓ VPC-isolated PHI database
✓ IAM least-privilege access
✓ Audit logging
✓ Minimum necessary data

Cloudflare HIPAA Partnership

Safe4Seniors is actively exploring a partnership with Cloudflare to operate within their HIPAA-compliant framework. This would enable end-to-end HIPAA coverage across both our edge voice processing (Workers, D1, R2, Queues) and our AWS clinical analysis backend.

Call ends → Cloudflare Queue → AWS Lambda → Bedrock Claude (analysis) → RDS PostgreSQL → Care Coordinator

Safe4Seniors Technical Architecture | Platform Ready for Pilot Deployment