https://retellai.com/?utm_source=discord&utm_medium=seo logo
Transient/Temporary Agents/LLMs
# ❓・bug-report
a
Do you support transient or temporary agents that are instantiated for individual inbound calls and automatically deleted once the call ends? If so, could you provide guidance on how to implement this functionality? The inbound webhook response is not supporting function calls.
f
What are you trying to do? You can configure agents with dynamic variables that you set in webhooks before the call.
or even override the agent based on the call
a
I am using dynamic variables but I also want to customize the functions that an LLM can use under certain conditions. Is there are way to pass functions just like we do dynamic variables?
the webhook only supports dynamic variables, not functions.
f
you could define that in the prompt
or have multi state and depending on the dynamic variables go to different states
or different agents (override agent id)
a
We can't risk LLM making a mistake on wrong function call so we only want to pass selective functions to it.
yeah. but we have like 10 combinations of different functions.
so we will have to create like 10 agents and then override based on a specific combination of functions.
f
outsource it to some other logic, i.e., pass dynamic variables and other information to a function call, that function call then determines what actuall function call to call
create a generic agent that handles the logic and outsource the decision which function to actually call into a function call
e.g. make.com
a
makes sense.
but rn there is no straight way of doing it?
like overriding functions or something?
f
I'd outsource that logic into your function
and keep the complexity within retell limited
a
got it. Thanks.