Can I create multiple agents at once? different en...
# ask-ai
h
Can I create multiple agents at once? different entrypoint for different workers
t
Thanks for reaching out, Abhishek. 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 agents at once in LiveKit and assign different entrypoints to different workers—it's a great way to manage your workflow efficiently! To set up multiple agents, you’d use the
RoomAgentDispatch
configuration, which lets you dispatch and run several agents simultaneously. Plus, multi-agent workflows are designed so agents can seamlessly hand off tasks to each other during a session, making collaboration smooth. When it comes to assigning different entrypoints to workers, you can specify particular entrypoint functions using
WorkerOptions(entrypoint_fnc=...)
. You can also add participant-specific entrypoints with
ctx.add_participant_entrypoint()
, giving you detailed control over how each agent behaves. If you'd like, I’m here to provide more details or examples—just let me know! Sources: Dispatching agents | LiveKit Docs | README.md | multi-agent/long_or_short_agent.py | Anatomy of an Agent | LiveKit Docs | Anatomy of an Agent | LiveKit Docs
h
can I create different avatar for different agent?
t
Absolutely, you can assign different avatars to different agents in LiveKit! We’re happy to support this through integrations with several virtual avatar providers like Tavus, Anam, Beyond Presence, and others. Here’s a quick overview to help you get started: • With Anam, you can easily specify a custom avatar by its ID in the
PersonaConfig
using the
avatarId
field. • With Beyond Presence, you set a specific avatar ID using the
BEY_AVATAR_ID
environment variable. • With Tavus, avatars come pre-configured in the Tavus platform and are used during agent sessions. This way, each agent can have their own unique avatar by setting the right avatar ID or configuration for their instance. If you’d like, I’m here to help you with any specific provider or setup you’re working on—just let me know! Sources: Virtual avatar integrations | LiveKit Docs | Anam virtual avatar integration guide | LiveKit Docs | Bringing AI avatars to voice agents | livekit-plugins/livekit-plugins-tavus/README.md