Skip to main content

Agents

Build AI-powered voice and video agents with LiveKit Agents framework.

All Agents Guides

Building multi-agent architectures with LiveKit agents

Learn best practices for building multi-agent architectures including session state management, chat context handling, TaskGroup patterns, and dynamic per-client routing.
Agents

Can you increase agent deployment limits?

Understand the hard cap on agent deployments and how to build a multi-tenant agent that scales without provisioning more slots.
Agents

How does LiveKit Agents compare to Pipecat?

A technical comparison of LiveKit Agents and Pipecat for building voice AI applications, covering architecture, capabilities, integrations, and developer experience.
Agents

Redacting PII from agent logs and transcripts

Learn how to protect sensitive user data by redacting PII from agent logs, transcripts, and observability data in LiveKit.
Agents

Choosing the right noise cancellation for your agent

Learn the difference between NC and BVC, and how to select the right noise cancellation model based on your participant type.
Agents

Dungeons and Agents: Inworld TTS + LiveKit Agents

A demo of Inworld's text-to-speech model being used with a LiveKit Agent to play an AI-driven tabletop style RPG in real time.
Agents

Grok Voice API Demo: Build Voice Agents with xAI & LiveKit

Learn how to build voice agents with emotional understanding using the Grok Voice API on LiveKit. This demo shows how xAI and LiveKit partnered to bring Grok's voice technology to developers.
Agents

Handling payments with PCI compliance

Learn how to handle payments in LiveKit voice agents using a hybrid architecture that keeps sensitive payment data off the voice channel.
Agents

How can I reduce latency in voice agents using STT, TTS and LLM?

Optimize network proximity and key metrics like TTFT and TTFB to reduce latency in voice agents that use Speech-to-Text, Text-to-Speech, and Large Language Models.
Agents

How to build an agent with speech-to-text input and text-only output

Configure a LiveKit Agent to accept audio input via speech-to-text while responding only with text, and learn how to receive the text responses on your frontend.
Agents

How to detect and handle silence during calls

Learn how to automatically end calls after periods of silence using the built-in user away timeout and custom retry mechanisms.
Agents

How to detect when an agent has finished speaking

Learn how to accurately detect when a voice agent has finished speaking using SpeechHandle, and how to notify web clients.
Agents

How to implement call greeting retries in voice agents

Learn how to create a voice agent that repeats a greeting when there's no response, and gracefully ends the call after multiple attempts using the away state.
Agents

How to set a fixed participant for agent audio processing

Learn how to configure your LiveKit agent to process audio from a specific participant in multi-participant rooms.
Agents

How to Test Your Agent Using Another Agent

Learn how to create an evaluation agent that plays the role of your user, tests your agent, and provides feedback on the interaction.
Agents

LiveKit Agents Quickstart: Create your first Agent

With a few commands from the CLI, you can start talking to your LiveKit Agent directly through your console using LiveKit Inference's free tier.
Agents

Medical Note Taking Assistant with Deepgram Flux + LiveKit Agents

A demo of Deepgram's Flux model being used with a LiveKit Agent to take medical notes and diagnose based on symptoms.
Agents

No-Code Voice AI Agent with LiveKit + n8n (Full Tutorial)

Learn how to build a production-ready AI voice agent with zero code using LiveKit Agent Builder and n8n. Create a restaurant voice agent that answers menu questions and takes orders—all without writing a single line of code.
Agents

Resolving "InvalidState - failed to capture frame" errors in AudioSource

Learn how to fix RtcError: InvalidState - failed to capture frame errors when working with LiveKit AudioSource by adjusting the queue_size_ms parameter.
Agents

Troubleshooting STT not picking up utterances

Learn how to diagnose and resolve speech-to-text detection failures when STT fails to register user speech, including noise cancellation issues, STT provider limitations, and configuration recommendations.
Agents

Using the Testing Framework with Realtime Models

Learn how to properly set up and test your agents using the LiveKit testing framework with both standard LLM models and realtime models.
Agents

VAD and turn detection configuration guide

Understand which VAD and turn detection parameters apply to your agent type, and how to configure them for optimal voice interaction.
Agents

Why do jobs stop after agent rejection?

In Agents 1.3+, job dispatch stops after the first rejection by default. Learn how to route jobs to specific agents using explicit dispatch instead.
Agents

Why is there extra audio at the end of my recordings of an agent session?

Learn why LiveKit egress recordings of agent sessions have extra audio at the end, and how to prevent it by deleting the room or manually stopping egress when the human participant leaves.
Agents