Skip to content

Latest commit

 

History

History
27 lines (27 loc) · 2.29 KB

File metadata and controls

27 lines (27 loc) · 2.29 KB

┌───────────┐ HTTPS ┌───────────────┐ Webhook ┌────────────┐ │ Client │ ──────────────────▶ │ Next API │◀────────────────── │ AssemblyAI │ │ (React) │ (upload request) │ (Vercel/Fly) │ └────────────┘ └────┬──────┘ └──────┬────────┘ │ presigned URL │ queue job ▼ ▼ ┌──────────────┐ BullMQ ┌──────────────┐ │ S3/Spaces │ ────────────────▶ │ Redis Queue │ └──────────────┘ (audio key) └──────┬───────┘ │ ┌──────────────────────┴─────────────────────┐ │ Background Worker (Node) │ │ 1. Download audio from S3 │ │ 2. Call STT (AssemblyAI / Whisper) │ │ 3. Run diarisation, trust‑scoring │ │ 4. Call GPT‑4 with voice profile │ │ 5. Store draft + metadata in Postgres │ │ 6. Enqueue fine‑tune job (if diff present) │ └──────────────────────┬─────────────────────┘ │ Postgres ▼ ┌────────────────┐ │ Database │ └────────────────┘ │ ▼ Client polls /ws