How jwchoikr/ai_builder_cup_uh works
Live Studio is a real-time live-commerce compliance and fact-checking copilot. Before a show, an operator uploads product and regulation documents and approves the extracted product information. During the show, host audio is transcribed and judged for regulatory claims, product facts, context and prompter progress; the host sees correction guidance, while comments can be screened, triaged and answered or sent to an operator. Afterward, the system produces an AI recap. The graph preserves the documented operator, host and viewer surfaces and runtime state services. Several backend subsystems are represented at directory level because their implementations were not excerpted; arrows reflect README statements, not inferred calls.
Main entry points: utterances.py Utterance judging · runtime.py Session runtime · api API and events · agents Compliance and fact judges
Components 23
Show preparation
- Document onboarding
frontend/src/screens/Onboarding.tsx - Onboarding processing
backend/app/onboarding - Approved releases
backend/app/onboarding/storage.py - Session setup
backend/app/api/sessions.py
Live show runtime
- Host audio
backend/app/api/audio_ws.py - Speech recognition
backend/app/providers/stt.py - Utterance judging
backend/app/pipelines/utterances.py - Compliance and fact judges
backend/app/agents - Product and rule catalog
backend/app/logic/catalog.py - Session runtime
backend/app/pipelines/runtime.py - Comment handling
backend/app/pipelines/comments.py - Show recap
backend/app/pipelines/summary.py
Show interfaces
- Host screen
frontend/src/screens/host/HostScreen.tsx - Operator console
frontend/src/screens/operator/OperatorScreen.tsx - Viewer screen
frontend/src/screens/viewer/ViewerView.tsx - Summary screen
frontend/src/screens/summary/SummaryView.tsx
Runtime services
- API and events
backend/app/api - Show state store
backend/app/store - Gemini provider
backend/app/providers/llm.py - Document retrieval
backend/app/providers/retriever.py
Other components
- Operator
- Host
- Viewers
Connections 27
- Operator → Document onboarding: uploads documents
README.md - Document onboarding → Onboarding processing: submits documents
frontend/src/screens/Onboarding.tsx - Onboarding processing → Approved releases: stores approvals
backend/app/onboarding/storage.py - Operator → Session setup: starts show
README.md - Session setup → Session runtime: creates session
backend/app/api/sessions.py - Host → Host audio: speaks into mic
README.md - Host audio → Speech recognition: streams audio
README.md - Speech recognition → Utterance judging: transcribes lines
README.md - Utterance judging → Compliance and fact judges: judges in parallel
README.md - Utterance judging → Product and rule catalog: checks product facts
README.md - Compliance and fact judges → Gemini provider: requests judgments
backend/app/agents/utterance_judge.py - Compliance and fact judges → Document retrieval: retrieves documents
- Utterance judging → Session runtime: updates show state
backend/app/pipelines/runtime.py - Session runtime → Show state store: reads and writes state
backend/app/pipelines/runtime.py - Session runtime → API and events: publishes show state
backend/app/api/sessions.py - Utterance judging → Host screen: sends correction guidance
README.md - Utterance judging → Host screen: ticks prompter
README.md - Viewers → Comment handling: send comments
README.md - Comment handling → Operator console: routes questions
README.md - Comment handling → Viewers: answers comments
README.md - Operator → Operator console: monitors show
README.md - Viewers → Viewer screen: watch show
- Session runtime → Show recap: builds recap
backend/app/pipelines/runtime.py - Show recap → Summary screen: provides recap
- Host screen → API and events: uses show API
- Operator console → API and events: uses show API
- Viewer screen → API and events: uses show API