Lumi is a voice-first AI assistant that helps you discover and register for Luma events — entirely hands-free. Speak to find events matching your interests, hear a curated list read back to you, and register with a single voice command.
Lumi runs as three separate processes:
User speaks
│
▼
Next.js Frontend (LiveKit client)
│ WebRTC audio
▼
LiveKit Cloud
│
▼
Voice Agent (LiveKit Agents framework)
├── Deepgram STT → speech-to-text
├── Silero VAD → voice activity detection
├── OpenAI GPT-4o-mini → LLM for conversation
├── OpenAI TTS → text-to-speech
├── LumaClient → Apify actor for event data
└── mem0 → user preference memory
│
▼ (LiveKit data channel)
Frontend sidebar renders events
| Layer | Technology | Purpose |
|---|---|---|
| Voice pipeline | LiveKit Agents | Real-time STT → LLM → TTS orchestration |
| Speech-to-text | Deepgram | Transcribes user speech |
| Voice activity | Silero VAD | Detects when the user is speaking |
| LLM | OpenAI GPT-4o-mini | Conversational reasoning and tool calls |
| Text-to-speech | OpenAI TTS | Generates voice responses |
| Event data | Apify (matyascimbulka/luma-event-scraper) |
Scrapes public Luma events by category and city |
| Memory | mem0 | Stores per-user preference signals across sessions |
| Backend | FastAPI | Generates LiveKit access tokens for the frontend |
| Frontend | Next.js + livekit-client |
Orb UI, event sidebar, email modal |
luma-agent/
├── main.py # FastAPI server (LiveKit token generation)
├── agent/
│ ├── voice_agent.py # LiveKit voice agent (LumiAgent class, tools)
│ ├── luma.py # LumaClient — Apify actor wrapper for events
│ ├── conversation.py # Conversation state placeholder
│ └── memory.py # mem0 wrapper for user preferences
├── prompts/
│ └── system_prompt.txt # LLM system instructions for the voice agent
├── frontend/
│ ├── src/
│ │ ├── app/
│ │ │ ├── page.tsx # Main page: orb, LiveKit room, event rendering
│ │ │ ├── layout.tsx # Root layout
│ │ │ └── globals.css # Global styles (Tailwind)
│ │ ├── components/
│ │ │ ├── EventList.tsx # Event sidebar list
│ │ │ ├── VoiceAgent.tsx # Voice agent UI component
│ │ │ ├── CalendarView.tsx
│ │ │ ├── ConversationPanel.tsx
│ │ │ └── RegistrationModal.tsx
│ │ └── lib/
│ │ └── api.ts # API client (token fetch)
│ └── package.json
├── .env.example # Environment variable template
├── requirements.txt # Python dependencies
└── README.md
- Python 3.11+
- Node.js 18+
- A LiveKit Cloud project (or self-hosted LiveKit server)
- An OpenAI API key
- A Deepgram API key
- An Apify API token
- (Optional) A mem0 API key for cross-session preference memory
Copy .env.example to .env and fill in your values:
| Variable | Description |
|---|---|
LIVEKIT_URL |
Your LiveKit server URL (e.g., wss://your-project.livekit.cloud) |
LIVEKIT_API_KEY |
LiveKit API key from your project dashboard |
LIVEKIT_API_SECRET |
LiveKit API secret from your project dashboard |
OPENAI_API_KEY |
OpenAI API key — used for GPT-4o-mini (LLM) and TTS |
DEEPGRAM_API_KEY |
Deepgram API key — used for speech-to-text |
APIFY_API_TOKEN |
Apify API token — used to run the Luma event scraper actor |
LUMA_EVENT_CATEGORIES |
Comma-separated event categories to search (e.g., ai,tech,crypto) |
LUMA_CITIES |
Comma-separated city names to search (e.g., San Francisco,New York) |
MEM0_API_KEY |
(Optional) mem0 API key for user preference memory |
git clone https://github.com/your-username/luma-agent.git
cd luma-agent
python -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
pip install -r requirements.txtcd frontend
npm install
cd ..cp .env.example .envEdit .env and fill in all required values (see Environment Variables above).
You need three separate terminals:
source venv/bin/activate # Windows: venv\Scripts\activate
uvicorn main:app --host 127.0.0.1 --port 8000source venv/bin/activate # Windows: venv\Scripts\activate
python agent/voice_agent.py startcd frontend
npm run dev- Open http://localhost:3000 in your browser
- Click the orb to start a voice session
- Lumi will greet you and ask for your email (entered via a modal)
- After submitting your email, Lumi fetches upcoming events and reads them to you
- Pick an event by name or number — Lumi checks for conflicts and confirms
- Confirm registration and Lumi provides the event link in the sidebar
- The frontend requests a LiveKit access token from the FastAPI backend (
POST /token) - The frontend connects to the LiveKit Cloud room using the token
- The voice agent joins the same room and begins the conversation
- User speech is transcribed by Deepgram STT, processed by GPT-4o-mini, and responses are spoken via OpenAI TTS
- The agent uses function tools to fetch events (via Apify), check conflicts, and trigger registration
- Event data is sent to the frontend via LiveKit data channels and rendered in the sidebar