Transfer only between specific time #2
# support
d
To go back on this topic here : https://discord.com/channels/1211482211119796234/1289255283939344526 Would something like this work in my transfercall tool? "conditions": [ { "type": "time-window", "start": "09:00", "end": "17:00", "timezone": "Europe/London" } ] @Shubham Bajaj
v
@Digi Yes, the structure you've provided for the
conditions
array in your
transferCall
tool looks correct for defining a time window condition. This condition will ensure that the call transfer only occurs during the specified hours of 09:00 to 17:00 in the Europe/London timezone. If you need to implement this condition or have any further questions about configuring your Voice API, please let me know, and I'd be happy to assist you!
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
d
I just want to double check with a team member if it's valid
The context is that I have a transferCall tool and I want to transfer the user to that phone number only between their specific time work (9-5) and outside of this time it wouldn't make that transferCall.
@User anybody?
s
no it won't work, you have to use defined rules.
d
How would that work?
Will the bot know if I add those rule in the prompt?
What do you suggest if I can only play with make automation and the vapi dashboard
Where should I put those defined rule?
p
@Vapi where do one input this Json , in the tool function or in the system prompt
v
@Philip_E To implement time-based conditions for your
transferCall
tool, you would typically define these rules within the tool's configuration settings. If your tool supports JSON configuration for conditions, the JSON snippet you provided would be entered in the appropriate section of the tool's configuration interface, likely in the VAPI dashboard where you manage your voice application. However, if the tool does not directly support such conditions, you might need to create an automation or script that checks the current time against your desired time window before executing the
transferCall
action. If you're unsure where to input the JSON or how to set up these rules, it's best to consult the documentation for the
transferCall
tool or reach out to support for more detailed guidance on how to implement time-based routing within your specific setup. If you need assistance with creating an automation or using the VAPI dashboard, please provide more details, and I'll do my best to guide you through the process.
d
@Shubham Bajaj Are you sure it won't work? Because your AI is telling me otherwise
@User?
@Shubham Bajaj @Sahil can I get a answer on this please?
s
I'ts upto you.
d
It’s up to me?
s
@Digi check https://api.vapi.ai/api-json# go to components > schemas > CreateTransferToolCallDTO
who to believe.
d
I was planning to do it this way but you said that it wasn’t possible this way
s
you will find the definition of these rules from here.
d
Alright I guess I will just test it out and see
Okay thanks
s
@Digi do let me know how it goes.
d
I will let you know 👍
@Shubham Bajaj condition cannot be added in tool
so my idea doesn't work
s
condition can be added but not your rules.
d
Right
3 Views