Why LiveKit Is Used
LiveKit is the realtime audio layer. It provides:- Rooms for each call
- Audio transport between the phone participant and the AI agent
- Agent job dispatch through
livekit-agents - SIP APIs for connecting phone calls
- JWT-based access tokens for browser/local testing
Room Naming
Outbound lead calls use:SIP Participant Creation
The scheduler calls LiveKit’s SIP API:VOBIZ_PHONE_NUMBER is configured, it is also passed as sip_number.
Agent Runtime
Both agents are LiveKit agents:agent.py: Sarvam STT + LLM + TTS pipelineagent_realtime.py: OpenAI Realtime session
Token Server
token_server.py exposes: