https://retellai.com/?utm_source=discord&utm_medium=seo logo
Unable to do Operational Time
# ❓・bug-report
d
I am unable to set operational time and have been doing it manually for months by switching the Begin node to the Open or Closed nodes. @Omar Ashraf | Community Lead https://cdn.discordapp.com/attachments/1428140976492384399/1428140977033318430/RetellAI.png?ex=68f16b6e&is=68f019ee&hm=f938e4370c0b899eb3cf27dbc8d2b69d89fa183712fb55686de3fdf27ca2458b&
o
Hello @deezy_01869 , is not working?
Or what is the problem?
d
No it does not work. It never closes and is always on still.
call id: call_495155fb128e10ac447e2edd5d6 I called 3 mins before the store was suppose to open and it said it was open when it is supposed to say it is closed. I just disconnected the time check node because i don't trust it.
@Omar Ashraf | Community Lead
@shahretell
@Colin - Integrations @ Retell AI
o
Hello @deezy_01869 , you can do that with 1- Make a extract variable function and give a description to extract weather you are open or not and make a discission based on it (but sometimes the LLM are not supper accurate ) 2- if this inbound you can send the variable before the calls starts with you are open or not -on your server you handle the logic of your business hours- , this is the best option
d
OK, I will let you know if it works soon
No luck. Please show me example if possible,
Hello
I need help with this still
Hello
o
What are you using it for ? Inbound or outbound?
d
I am using inbound.
o
Hello @deezy_01869 ,you can use the inbound webhook before every call you will get a webhook then on your server you can use a simple code telling you it's in the hours or not then then you can reject the calls before it even started or send a variable to your prompt telling it's after hours
If you are using n8n i can help you do it
d
So I can't do it natively inside of Retell at all? Also, if I were to do the inbound webhook or a function call just to check the time, wouldn't that cause more latency?
o
The inbound comes to your server before the call start while it rings you can run your functions in this time which is less than a second before the call even start so it won’t effect the latency at all
d
Okay thank you for that. I will keep you updated
o
Sure
d
Is extracting the variable the only way to do it natively in Retell?
o
You can do it through prompting but you will have to test some prompts to make sure the llm get it always right
d
So here's an update on what I am trying to do right now and just wanted your feedback on it. When calls begin, I extract the variables for the current time, then there is a transitional prompt for when it collects it, then it goes to the logic split node which has 2 main prompts, one transitions to the opening of the call and then the other one transitions to the closed, and then there is a else which transitions straight to the call transfer to staff if it were to fail. I'm still testing it but I don't think this is robust at all due to LLM and the possibility of hallucination, even if it is a 1% chance because we are doing a lot of volume of calls (20 locations). Wouldn't it be better to do an equation based than a prompt based to reduce llm hallucination to be the most robust situation to happen natively in retellai?
o
Hello @deezy_01869 , Yes that what i meant by prompting it can work sometimes but it will always be a chance to miss , but if you made it on your server using the inbound webhook/custom function based on the your business hours, holidays it will be more robust which i will fit your need since you serving 20 locations