By default, LiveKit agent listens to `lk.chat` tex...
# ask-ai
b
By default, LiveKit agent listens to
lk.chat
text stream topic for incoming text messages from its linked participant. Can we change an agent session to listen to a different text stream topic?
✅ 1
t
Thanks for reaching out, Masayuki. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’m responding to your question about whether an AgentSession can listen on a different text stream topic than the default
lk.chat
. Short answer: No — an AgentSession cannot be configured to listen to a different text stream topic. Agent sessions listen to
lk.chat
for incoming text from their linked participant. You can customize how the agent handles incoming text (for example via a
text_input_cb
in
RoomOptions
), and downstream clients can register handlers to receive messages from other custom text topics, but there is no documented option to change the input topic the agent itself listens to. If your goal is to accept input from a different topic, two options to consider: • Keep the agent on
lk.chat
and have a mediator (your server or a client) forward messages from your custom topic into
lk.chat
so the agent receives them. • Have the agent continue on
lk.chat
while downstream clients also subscribe to your custom topics for additional signaling or data; then coordinate routing on your side. If you’d like, tell me which approach you’re considering (forwarding via a server, or coordinating multiple topics on clients) and I’ll outline concrete steps or example code to implement it. Sources: Text and transcriptions | LiveKit Documentation, with interactive elements