Does livekit uses openai session to automatically ...
# ask-ai
p
Does livekit uses openai session to automatically maintain conversation history across multiple agent runs?
t
Thanks for reaching out, Mario. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hi there! Just to clarify, LiveKit doesn’t automatically keep track of your conversation history across multiple agent runs using OpenAI sessions. Instead, you’ll want to manage and pass the conversation history yourself using tools like
chat_ctx
or
UserData
to keep things flowing smoothly. If you’re working with OpenAI’s Realtime API, you can definitely load previous conversation history manually. Just a heads-up though—sometimes this might make the API respond with text-only output, even if you’ve enabled audio responses. To work around this, you could run the Realtime API in text-only mode and then use a separate Text-to-Speech (TTS) plugin to get consistent audio output. Please feel free to reach out if you’d like me to walk you through the steps or if you have any other questions—I’m here to help! Sources: context-readmes/USERDATA_GUIDE.md | livekit-plugins/livekit-plugins-openai/livekit/plugins/openai/realtime/real... | Workflows | LiveKit Docs | OpenAI Realtime API integration guide | LiveKit Docs | OpenAI Realtime API integration guide | LiveKit Docs