https://retellai.com/?utm_source=discord&utm_medium=seo logo
Dynamically change prompt for inbound phone calls
# ❓・bug-report
s
Hi. I’m having trouble figuring out how to modify the behavior of the LLM for inbound calls. Because the agent would be answering in a different way than outbound. However, I don’t have access to the stream between the from and to number for inbound. I would love any help here!
n
I think if you have a custom twilio setup, then in the twilio voice webhook (which is triggered for both inbound and outbound calls), you are registering a call with retell. There you can specify an agent id that you like https://github.com/RetellAI/retell-custom-llm-node-demo/blob/main/src/twilio_api.ts You can try this out and attach different agent_ids for different to and from numbers
But natively the platform does not support this feature of having 2 different agents for inbound and outbound