https://retellai.com/?utm_source=discord&utm_medium=seo logo
This is not really what im asking, im asking if it...
# 💬・general
m
This is not really what im asking, im asking if its possible to set a server URL that I can use to create transient agents. Like in VAPI.
Like this:
So that when a call is made, a request is made to the server and then the response will be a payload, containing the JSON for the assistant which can be customised through workflows present in the server (i.e Make)
f
I don't think it's supported directly through an URL. What you could do is: - https://docs.retellai.com/retell-llm/dynamic-variables#inbound-phone-calls-with-retell-numbers use inbound webhook to populate dynamic variables and use them there
I think that would be the preferred easier option. alternatively you could use make.com to create an agent through the retell api? But I think that would get a bit complicated
m
My use case is new callers will go to assistant A, and existing contacts will go to assistant B, the routing logic can be handled by make (using the callers #) and the webhook response will just get populated with either assistant A or B.
Siloing these assitants will make the whole system less prone to error as the prompt shifts when it comes to returning vs new callers, especially in a multistate prompt assistant
f
make a multi state agent that uses inbound hook https://docs.retellai.com/retell-llm/dynamic-variables#inbound-phone-calls-with-retell-numbers in the endpoint you get the phone number of the caller, so you can return a dynamic variable {{new_customer}} true or false
then in the multi state you either transition to agent A or agent B based on the value of the dynamic variable