future-umbrella-45124
08/26/2025, 10:48 AMtall-airline-16756
08/26/2025, 10:48 AMtall-airline-16756
08/26/2025, 10:49 AMfuture-umbrella-45124
08/26/2025, 10:50 AMtall-airline-16756
08/26/2025, 10:51 AMon_user_turn_completed node or something similar to add the notification into the context.
• Call turn_ctx.add_message(role="assistant", content="You have 5 minutes remaining.") to insert the message.
• Make sure to save the changes by calling update_chat_ctx(turn_ctx) right after you update the context.
If you want, I’m happy to help you set this up or even create a timer-based system to estimate the time. Just let me know!
Sources: Voice pipeline nodes | LiveKit Docs | External data and RAG | LiveKit Docs | complex-agents/nutrition-assistant/nutrition-assistant-frontend/components/... | Pipeline nodes and hooks | LiveKit Docsfuture-umbrella-45124
08/26/2025, 11:09 AMtall-airline-16756
08/26/2025, 11:10 AMfuture-umbrella-45124
08/26/2025, 11:15 AMadd_message() as suggested by you will trigger the assistant to speak the provided message?tall-airline-16756
08/26/2025, 11:15 AMadd_message() won’t make the assistant actually say the message out loud. It simply adds the message to the chat history for internal tracking.
If you want the assistant to speak the message aloud, you’ll want to use session.say() or generate_reply(), as these are built to trigger the Text-to-Speech (TTS) system and get that audio going.
Feel free to ask if you'd like me to show you an example of how to do this—I’m happy to help!
Sources: livekit-agents/livekit/agents/voice/agent_activity.py | Agent speech and audio | LiveKit Docsfuture-umbrella-45124
08/26/2025, 11:17 AMtall-airline-16756
08/26/2025, 11:17 AMsession.say() or generate_reply(). These handy methods kick off the assistant's Text-to-Speech (TTS) system, so the message gets spoken out loud.
For example:
await session.say("You have 5 minutes remaining.")
This way, the user won’t miss the notification. If you want, I’m here to help you set this up or answer any questions!