# Tater Rapid Prototype

A fast prototype for **Tater** as a live, in-person cofacilitator.

## What this prototype does
- Facilitator console with:
  - Realtime chat with Tater
  - Browser microphone or shared-tab/system-audio capture
  - Quick actions for summary, poll draft, word cloud, slide deck, and design-thinking prompts
  - Live poll and artifact panel
- Participant page with:
  - Lightweight chat UI
  - Active poll voting
- Server-side tool handlers for:
  - `create_poll`
  - `generate_word_cloud`
  - `generate_slide_deck`

## Architecture
- **Browser ↔ OpenAI Realtime** over WebRTC for live chat/audio session
- **Browser ↔ App Server** for SDP relay, tool execution, polls, and artifacts
- **App Server ↔ OpenAI Responses API** for deck content generation

## Notes
- Browser/system audio capture depends on browser and OS support.
- For fast testing, the facilitator console is the main experience.
- This is intentionally lightweight and uses in-memory state, not a database.

## Setup
1. Install dependencies:
   ```bash
   npm install
   ```
2. Create `.env` from `.env.example` and add your API key.
3. Start the app:
   ```bash
   npm run dev
   ```
4. Open:
   - Facilitator console: `http://localhost:3000/`
   - Participant chat: `http://localhost:3000/participant.html`

## Suggested next steps
- Add session IDs and workshop rooms
- Add persistent storage
- Add QR-code join flow
- Add live shared artifact screens
- Add role-aware prompts for different workshop formats
