can i use create multiple voice ai agent with same...
# ask-ai
c
can i use create multiple voice ai agent with same LIVEKIT_URL, LIVEKIT_API_KEY, LIVEKIT_API_SECRET?
t
Thanks for reaching out, Hai. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Absolutely, you can create multiple voice AI agents using the same
LIVEKIT_URL
,
LIVEKIT_API_KEY
, and
LIVEKIT_API_SECRET
. These credentials help authenticate access to your specific LiveKit project or server instance, allowing multiple agents to work together under the same project by using a worker pool model where tasks are shared across available agents. To keep things organized and clear, you can assign a unique
agent_name
to each agent when you initialize them. This makes it easier to direct specific tasks or calls to the right agent. For example:
Copy code
cli.run_app(
    WorkerOptions(
        entrypoint_fnc=entrypoint,
        agent_name="inbound-support-agent",  # Unique identifier
    ),
)
For a smooth and secure setup, here are a few recommendations: • Manage your credentials securely by using environment variables. • Consider keeping separate LiveKit instances for different environments like development, staging, and production. • Use containerized deployments such as Docker or Kubernetes to help with scalability. • Take advantage of LiveKit Cloud’s built-in secret management to keep your credentials safe. Just to better assist you, are you thinking about deploying multiple agents in a production environment, or are you currently testing locally with shared credentials? Knowing this will help me guide you towards the best setup for your needs. Sources: Docs::Agents | Accepting incoming calls | LiveKit Docs | Docs::Agents | Voice AI quickstart | LiveKit Docs | Deploying to custom environments | LiveKit Docs