best-battery-56004
03/19/2026, 9:51 PMlk.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?tall-airline-16756
03/19/2026, 9:51 PMtall-airline-16756
03/19/2026, 9:51 PMlk.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