https://retellai.com/?utm_source=discord&utm_medium=seo logo
Unwanted immediate calling of the CallTransfer fun...
# ❓・bug-report
m
I have purchased a twilio number, have successfully connected with Retell, and are easily able to transfer the call in the backend to another number. The issue I am having is the timing. Retell seems very trigger happy to call the CallTransfer function which sends a webhook to my backend. My use case is a call routing front desk. Which once has matched the caller's enquiry with the Company's database (CaseLocator function), to route to an agent. I have ensured these are spaced out into different states, as well as prompting to wait for the user's response before transferring. Despite these instructions, the function to transfer the call activates immediately after the CaseLocator function is called, within a second, resulting in the LLM cutting itself off. I have tried things like time.sleep(), but this results in poor outcomes since it doesn't follow the flow of the conversation. Not sure what I should do. It would be great if the LLM would follow the instructions, otherwise, to receive real time transcripts would allow me to atleast put in some code to manully monitor the conversation so I can instead activate the twilio call transfer myself.
v
I think I know where the problem is. Will need to change a couple of things and refine your prompt, you can DM me.
j
Any information on how this was resolved? I'm having a similar issue and need a delay before calling a function.