# Agent Context Carryover in Livekit Tutorial

## Executive summary

This tutorial demonstrates 'Agent Context Carryover,' a feature released for LiveKit using AssemblyAI's Universal 3.5 Pro model. This capability automatically feeds conversational context into the speech-to-text model, significantly boosting transcription accuracy—especially for proper nouns and key terms—without requiring manual plumbing or explicit context prompting from the developer.

## Key takeaways

- Agent Context Carryover Functionality: The feature automatically provides conversational context to the model, improving transcription accuracy when building voice agents on LiveKit. This is achieved by enabling a single parameter rather than implementing complex key term handling.
- Implementation Simplicity: AssemblyAI's LiveKit plugin handles the necessary context plumbing automatically, allowing developers to gain accuracy benefits without setting up custom logic for key terms or sending agent messages manually.

## Technical details

- LiveKit Agent Setup: The demonstration uses the LiveKit quick start and involves installing the AssemblyAI plugin for LiveKit. The process requires configuring the agent to use AssemblyAI for speech-to-text, specifying the `Universal 3.5 Pro` model, and setting the parameter `agent_context_carryover` to `true`. API keys must be added to the `.env.local` file.
- Model Parameters: The core technical improvement is enabling 'Agent Context Carryover,' which provides context for better transcription, particularly useful in complex conversational flows like phone ordering where proper nouns and specific menu items are mentioned.

## Practical implications

- Build engineers can deploy more robust and accurate voice agents by integrating context carryover features, reducing the need for complex state management or custom prompt engineering.
- The feature simplifies integration with LiveKit, making advanced speech-to-text capabilities accessible via a single parameter toggle.

## Topics

Voice AI, Speech-to-Text (STT), LiveKit, Contextual NLP, Agent Development, Livekit Voice Agent Quickstart, Livekit Coding Agent Docs, AssemblyAI Context Carryover Docs

Source: https://www.youtube.com/watch?v=iXQFtjvXUK8
