livekit-voice-agent

Build LiveKit voice agents with multi-agent handoffs and context preservation.

2|4|Updated Nov 21, 2025
One-click install
npx skills add https://github.com/Okeysir198/P20251122-claude-skills --skill livekit-voice-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: livekit-voice-agent
Source: https://github.com/Okeysir198/P20251122-claude-skills/tree/main/skills-reference/livekit-voice-agent
Command: npx skills add https://github.com/Okeysir198/P20251122-claude-skills --skill livekit-voice-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill provides a ready-to-use pattern for building production-ready LiveKit voice agents that can hand off conversations between specialized agents and escalate to humans when needed. It also preserves conversation context across handoffs and supports scalable deployment patterns.

Core Features & Use Cases

  • Multi-Agent Workflows: Chains IntroAgent, SpecialistAgent, and EscalationAgent with shared state and configurable handoffs.
  • Intelligent Handoffs: Function tools return new agent instances to transfer control, with clear transition messages.
  • Context Preservation: Shared user data persists across handoffs and across agents via chat_ctx.
  • Production-Ready Patterns: Templates, prewarming, testing scaffolds, Docker deployment, and observability hooks.
  • Extensibility: Easy to add new agents, tools, and custom workflows; supports hub-spoke, escalation, and bidirectional handoffs.
  • Use Cases: Real-time customer support, sales routing, and complex information gathering with escalations.

Quick Start

  • Run the quick start script to scaffold a working project: scripts/quickstart.sh livekit-voice-agent
  • Install dependencies with uv sync
  • Copy .env.example to .env.local and configure LiveKit, OpenAI, and STT/TTS providers
  • Start the agent with: uv run python src/agent.py start

Frequently Asked Questions about livekit-voice-agent

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build a LiveKit voice agent with multi-agent handoffs?

Build LiveKit voice agents with multi-agent handoffs by chaining specialized agents like IntroAgent and EscalationAgent. Function tools return new agent instances to transfer control, maintaining shared conversation context across the routing workflow.

How does context preservation work during a voice agent handoff?

Context preservation during a voice agent handoff works by retaining shared user data across agents via chat_ctx. This ensures the receiving agent has full conversational history without losing information when routing between specialized agents.

Can I deploy LiveKit voice agents using Docker for production?

You can deploy LiveKit voice agents using Docker for production environments. The implementation provides production-grade templates, prewarming, testing scaffolds, and observability hooks to support scalable and reliable real-time voice workflows.

What is the best way to escalate a LiveKit voice conversation to a human?

Escalate a LiveKit voice conversation to a human by implementing an EscalationAgent within a multi-agent workflow. The bidirectional and escalation handoff patterns route the conversation dynamically while preserving the existing chat context.

Do I need specific STT and TTS providers to run a LiveKit voice agent?

You need to configure STT and TTS providers alongside LiveKit and OpenAI credentials in your environment file. These external services are required to enable real-time speech-to-text and text-to-speech processing for the voice agent.

What multi-agent workflow patterns are supported for LiveKit voice routing?

Supported multi-agent workflow patterns for LiveKit voice routing include hub-spoke, escalation, and bidirectional handoffs. These modular patterns allow you to route real-time conversations between specialized agents based on dynamic function tool calls.