Hey guys! - Does anyone have a solid example or re...
# agents
h
Hey guys! - Does anyone have a solid example or repo which dynamically sets all the configurations for the agent via a remote json. I would assume that we would have to use manual dispatching, so we can pass metadata to the Job, so it’s available during runtime via the ctx. I’m assuming that what all the low/no code platforms are doing under the hood (Vapi, Retell, Bland). Dynamically be able to pass the STT, LLM, TTS to the agent with type safe configuration for each plugin. Any resource available to get all the different configurations that each plugin takes? Trying to keep it sync with my front end.
m
h
Thank you @miniature-nail-35141
a
@helpful-author-83080 & @miniature-nail-35141 how guys are dispatching the agent in case of Web call? where do you write the logic of which agent to dispatch with which config?
h
You have to explicitly dispatch the agent when your backend is generating a access token for the web user to join the room. When creating a dispatch for the agent, you can pass agent config in the metadata property. You will have access to this metadata properly in the entry point of the agent at ctx.job.metadata
@agreeable-dusk-79385 This should help you get started - https://docs.livekit.io/agents/worker/agent-dispatch/
a
@helpful-author-83080 thanks a lot.