acoustic-guitar-10279
06/28/2025, 6:41 AMtall-airline-16756
06/28/2025, 6:42 AMtall-airline-16756
06/28/2025, 6:42 AMllm_node
or transcription_node
.
• Session History: The entire conversation history is accessible through the session.history
property.
• Event Listeners: Events like conversation_item_added
(when an item is added to chat history) and user_input_transcribed
(when user input is transcribed) help track conversations.
• Transcription Outputs: Transcription outputs such as _ParticipantLegacyTranscriptionOutput
and _ParticipantTranscriptionOutput
handle participant speech transcription.
• Multi-User Transcription: Agents can create sessions for each participant and transcribe their audio individually, identifying who said what.
Let me know if you need further details or assistance!
Sources: Session recording and transcripts | LiveKit Docsacoustic-guitar-10279
06/28/2025, 7:40 AMtall-airline-16756
06/28/2025, 7:40 AMdetected_answering_machine
in your agent class. Think of it like a smart assistant that knows exactly what to do when voicemail picks up. Here's a cool example: @function_tool
async def detected_answering_machine(self):
"""Call this tool if you have detected a voicemail system, AFTER hearing the voicemail greeting"""
await self.session.generate_reply(
instructions="Leave a voicemail message letting the user know you'll call back later."
)
await asyncio.sleep(0.5) # Add a natural gap to the end of the voicemail message
await hangup_call()
• Alternative Implementation: If you prefer a different approach, you can use the @llm.ai_callable()
method: @llm.ai_callable()
async def detected_answering_machine(self):
"""Called when the call reaches voicemail. Use this tool AFTER you hear the voicemail greeting"""
<http://logger.info|logger.info>(f"detected answering machine for {self.participant.identity}")
await self.hangup()
These functions are like your personal call management buddies – they'll help your agent smoothly handle voicemail situations. Need more help? I'm always here to chat and guide you through! 😊 Sources: Agents telephony integration | LiveKit Docs | Making calls using SIP | LiveKit Docsacoustic-guitar-10279
06/28/2025, 7:41 AMtall-airline-16756
06/28/2025, 7:41 AM