Is there a way to use text only mode with livekit ...
# ask-ai
n
Is there a way to use text only mode with livekit agents framework without dispatching it to a room? I am interested in long running chat sessions
t
Thanks for reaching out, Shrirang. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hi there! I wanted to share some helpful info about LiveKit Agents and their support for text-only mode during long-running chat sessions. While it does require dispatching to a virtual room, you can definitely disable audio input and output and still enjoy smooth text-based communication through LiveKit's text stream feature. Here’s how you can set it up: • Use
RoomInputOptions(text_enabled=True, audio_enabled=False)
to accept text input. • Use
RoomOutputOptions(transcription_enabled=True, audio_enabled=False)
to enable text output without audio. Just so you know, text input goes to the
lk.chat
text stream topic, and agent responses are sent to the
lk.transcription
topic. The AgentSession framework works within a LiveKit room context, so fully room-less text-only sessions aren’t supported at this time. If you have any questions or would like some help getting this set up, please don’t hesitate to reach out. I’m here to help!
n
How much resources does it consume if I have a chat agent in a room permanently? So that it can respond to let's say whatsapp messages that come in few hours interval. I assume we will need to create separate rooms for each whatsapp chat.
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!