Prerequisites
- A SambaCloud account
- A SambaNova API key
- A LiveKit Cloud account or self-hosted LiveKit server, with
LIVEKIT_URL,LIVEKIT_API_KEY, andLIVEKIT_API_SECRET - Python 3.11.5 or later
Installation and setup
1
Create and activate a virtual environment
macOS/Linux:Windows:
2
Install LiveKit agents
3
Set environment variables
Example use cases
You can combine LiveKit with SambaCloud models to create powerful, real-time AI agents. Some common applications include:- Multimodal assistants – Support text, voice, and screen sharing with an AI assistant.
- Telehealth – Enable real-time AI support during virtual medical consultations.
- Call centers – Automate inbound and outbound customer support with AI voice agents.
- Real-time translation – Translate conversations instantly across languages.
Example - voice agent with SambaCloud
The following example shows how to build a voice AI agent using LiveKit with SambaCloud LLM models:LiveKit documentation
See LiveKit documentation for more details.Troubleshooting
Agent fails or returns None for base URL
Agent fails or returns None for base URL
Ensure
SAMBANOVA_URL is exported: export SAMBANOVA_URL=https://api.sambanova.ai/v1.ModuleNotFoundError: No module named 'livekit'
ModuleNotFoundError: No module named 'livekit'
Run
pip install "livekit-agents[openai,silero,deepgram,cartesia,turn-detector]~=1.0" with the virtual environment active.
