Build a Voice AI Agent with Memory Using LiveKit + Supabase
Most voice AI agents forget you the second the call ends. In this tutorial, you'll build a voice AI agent with real memory using LiveKit for the voice and Supabase for everything it needs to remember, all in one Postgres database. No separate vector store, no extra embedding bill. Sign up for LiveKit Cloud: https://cloud.livekit.io/signup?utm_source=youtube&utm_medium=video&utm_campaign=devrel&utm_content=xVc8wE1Pj48 We wire a LiveKit Agents voice agent into Supabase and walk through five Supabase-native patterns: RAG over pgvector, agentic memory with hybrid search (Reciprocal Rank Fusion), pre-loaded user context, function-tool CRUD, and session report persistence. Identity is real, too. Supabase anonymous auth gives every visitor a genuine user, and Row Level Security keeps users from ever seeing each other's data. Embeddings run inside Supabase with the gte-small model, so there's no third-party embedding provider to sign up for. The starter ships both a TypeScript and a fully equivalent Python agent. Clone it, point it at a Supabase project and a LiveKit Cloud project, and you'll be talking to your agent in a few minutes. What you'll learn: - How to build a voice AI agent with memory using LiveKit and Supabase - RAG over pgvector for semantic search inside Postgres - Hybrid vector + full-text search with Reciprocal Rank Fusion - Supabase anonymous auth and Row Level Security for per-user data isolation - Running gte-small embeddings inside Supabase with an Edge Function 📚 Resources 📚 Get the starter (GitHub): https://github.com/livekit-examples/supabase-hacker-starter Full written guide: https://livekit.com/blog/supabase-voice-agent-memory/?utm_source=youtube&utm_medium=video&utm_campaign=devrel&utm_content=xVc8wE1Pj48 Agent docs: https://docs.livekit.io/agents/?utm_source=youtube&utm_medium=video&utm_campaign=devrel&utm_content=xVc8wE1Pj48 🤝 Join the Community: https://community.livekit.io/?utm_source=youtube&utm_medium=video&utm_campaign=devrel&utm_content=xVc8wE1Pj48 ⏱️ Chapters ⏱️ 0:00 Intro 0:32 Live demo: agent memory 3:08 Architecture 4:03 Anonymous auth & RLS 5:06 Code walkthrough 8:08 Setup & run #livekit #ai #voiceai