Hi livekit team
@livekit @LiveKit-Community @livekitteams @darryncampbell @CWilson @Muhammad_Usman_Bashir
We are evaluating the LiveKit Agent Framework (Python SDK) for a specific architectural use case and want to check technical feasibility and best practices.
Current System Architecture
-
We have an existing legacy chatbot microservice that handles user frontend connections, decision-tree routing, database persistence, and overall session state management.
-
We want to incrementally upgrade this system by routing queries requiring dynamic LLM responses to a dedicated agent service.
Core Requirement
We want to run LiveKit Agents primarily as a stateless, text-only processing service (Endpoint style) rather than a full real-time audio/video WebRTC pipeline.
Questions & Requirements:
-
Stateless / External Session Injection:
- Is it possible or recommended to run an Agent where session state & conversation history are strictly provided by an upstream service in the payload (e.g., passing
session_id,chat_history, andcurrent_query) rather than relying on LiveKit Server’s internal room/session persistence?
- Is it possible or recommended to run an Agent where session state & conversation history are strictly provided by an upstream service in the payload (e.g., passing
-
Exposing Agents as an API / Non-WebRTC Triggers:
- Can a LiveKit Agent be triggered via custom backend RPC or Direct API calls from our upstream service without establishing a full WebRTC connection loop from a frontend client?
Can the agent receive an external session ID and history and generate responses without relying on a LiveKit-managed session?Can the AI logic be reused independently of the LiveKit server, or does the existing framework require server-side infrastructure even for chat-only use?
- Can a LiveKit Agent be triggered via custom backend RPC or Direct API calls from our upstream service without establishing a full WebRTC connection loop from a frontend client?
-
Pure Text Mode (Stripping STT/TTS):
- What is the recommended way to configure
JobContextorAgentworkers to skip audio tracks, STT, and TTS entirely, listening purely for text DataPackets / RPC events?
- What is the recommended way to configure