What are the different event triggers that we can ...
# ask-ai
h
What are the different event triggers that we can expect during a realtime conversation? And when to expect them
t
Thanks for reaching out, Sandip. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hi there! When you're having a realtime conversation in LiveKit, there are several helpful event triggers that can guide you through the process: • conversation.created: This pops up when a conversation begins, which is great for setting up your state tracking right from the start. • input_audio_buffer.speech_started: This one triggers as soon as speech is detected, perfect for showing real-time voice activity. • input_audio_buffer.speech_stopped: This happens when speech ends, helping you calculate how long someone spoke. • conversation.item.created: This event fires when a new item, like a message, is added—ideal for keeping your chat updated live. • conversation.item.input_audio_transcription.completed: Once the audio transcription finishes, this trigger lets you jump into text processing. • response.created: This marks the start of an agent’s response, so you can get your UI ready. • response.done: Finally, this signals that the response is fully complete, helping you wrap up any workflows. These events really help you stay on top of every stage in the conversation, from detecting speech to generating responses. If you’d like me to walk you through any specific event or have questions, just let me know—I’m here to help! Sources: Events and error handling | LiveKit docs | plugins/openai/src/realtime/api_proto.ts