fresh-iron-75343
11/12/2025, 7:58 PMtall-airline-16756
11/12/2025, 7:58 PMtall-airline-16756
11/12/2025, 7:58 PM# Disable audio output during transfer
bot_session.output.set_audio_enabled(False)
1. Next, perform the transfer to the desired workflow.
2. Finally, re-enable the bot's audio output once the transfer is complete:
# Re-enable audio output after transfer
bot_session.output.set_audio_enabled(True)
This way, your bot stays silent during the transfer, creating a smoother experience. If you have any questions or want me to walk you through it further, just let me know—I’m here to help!
Sources: Agent-assisted warm transfer | LiveKit docs | examples/warm-transfer/warm_transfer.py | Call forwarding | LiveKit docs | Agents telephony integration | LiveKit docsfresh-iron-75343
11/12/2025, 8:04 PMtall-airline-16756
11/12/2025, 8:04 PMsession.say() method for transfer announcements. Instead, you can carry out the transfer directly without creating any verbal or textual messages.
If you'd like to have even more control over the chat history, you might find the conversation_item_added event useful. It lets you watch for new messages and filter out certain ones—like transfer announcements—so they don’t get stored or shown.
I'm here to help if you'd like some step-by-step guidance on how to set this up!
Sources: complex-agents/personal_shopper/personal_shopper.py | examples/voice_agents/restaurant_agent.py | Agent-assisted warm transfer | LiveKit docs | Session recording and transcripts | LiveKit docsfresh-iron-75343
11/12/2025, 8:09 PMtall-airline-16756
11/12/2025, 8:10 PMbot_session.output.set_audio_enabled(False). It’s a more reliable and straightforward way to make sure no audible messages play during the transfer, while still letting everything proceed smoothly.
The second method, where you avoid using session.say(), might be a bit trickier since it relies on making sure no other messages pop up unexpectedly in the workflow. Turning off the audio output directly gives you a bit more control and predictability.
If you’d like, I’m here to help you set this up or answer any other questions you might have—just let me know!fresh-iron-75343
11/13/2025, 8:33 PMtall-airline-16756
11/13/2025, 8:33 PM# Workflow 1: Initial Workflow
async def workflow_one(bot_session):
# Disable bot's audio output to ensure silence during transfer
bot_session.output.set_audio_enabled(False)
# Perform the transfer to Workflow 2
await transfer_to_workflow_two(bot_session)
# Re-enable bot's audio output after the transfer is complete
bot_session.output.set_audio_enabled(True)
# Function to handle the transfer
async def transfer_to_workflow_two(bot_session):
# Logic to transfer to Workflow 2
await bot_session.transfer_to_workflow("workflow_two")
# Workflow 2: Target Workflow
async def workflow_two(bot_session):
# Logic for the second workflow
await bot_session.say("You have been transferred to Workflow 2.")
Here’s what’s happening in this example:
• We start by disabling the bot’s audio output with bot_session.output.set_audio_enabled(False) to make sure it stays silent during the transfer.
• The transfer itself is done using bot_session.transfer_to_workflow(), which moves the session over to the second workflow.
• Once the transfer is all set, we turn the bot’s audio back on with bot_session.output.set_audio_enabled(True).
This way, the bot stays quiet throughout the transfer, creating a smooth experience. If you’d like me to clarify anything or provide more examples, just let me know—I’m here to help!