https://retellai.com/?utm_source=discord&utm_medium=seo logo
How can I make it not transfer during certain hour...
# ❓・bug-report
a
How can I make the call not be transferred during certain hours, for example if I want to transfer it during the day but not during the night. I have tried loading in the numbers with dynamic variables but it still calls the transfer_call function which is a bit confusing. My other option is to have a worker remove and add back transfer_call but I am hoping for a more elegant solution, any ETA/suggestions on this?
s
Hi @alex.local you can add the example prompt i shared you below add in the agent prompt where you want to transfer the call. 1. Check the {{current_time}}. 2. If the time is between 9:00 AM and 5:00 PM: - Proceed to transfer the call using the function transfer_call. 3. If the time is outside of these hours: - Inform the user that call transfers are only available between 9 AM and 5 PM.
a
Thanks but it is important that I do not rely on the prompt for this
if I rely on the prompt for this it will always be breakable which does not make sense for something so rulebased
s

https://www.youtube.com/watch?v=3_gnVpT3yLo▾

a
Where do I put this prompt