Transfer only between specific time
# support
d
Is it possible to only let the bot transfer the user to a phone number between specific times with tools?
v
@Digi Yes, it is possible to configure the bot to transfer users to a phone number only during specific times using tools. You would typically use a scheduling tool or a time-check function to determine if the current time falls within the specified window. If it does, the bot can proceed with the transfer. If not, the bot can inform the user about the hours of operation and offer alternative options such as scheduling a callback or providing assistance through other means. Would you like to set up a time-based transfer now or learn more about how to implement this feature?
You can continue this conversation by mentioning me in the message.
d
@Vapi I would like to learn how to implement this feature
@Vapi How do I implement this feature? Is there a document about it?
v
@Digi To implement a feature that allows the bot to transfer users to a phone number only during specific times, you would typically follow these steps: 1. **Time Check**: Implement a function to check the current time against the specified operating hours. 2. **Decision Logic**: Based on the time check, decide whether to proceed with the call transfer or provide an alternative response. 3. **Call Transfer**: If the current time is within the specified hours, use a call transfer tool to connect the user to the desired phone number. 4. **Alternative Handling**: If it's outside the specified hours, inform the user and offer alternatives such as taking a message or scheduling a call for later. Unfortunately, as a support bot for VAPI, I don't have access to external documents or the ability to provide a specific document. However, the implementation details would typically be found in the developer documentation for the specific API or platform you are using to build the bot. If you are using a specific platform or toolset, you may need to consult the documentation provided by that platform for the exact implementation details. If you need assistance with a particular tool or function within the VAPI environment, please provide more details, and I'll do my best to assist you.
d
@User Do I need to create a separate tool for this or I can implement this in my call forwarding tool that I have made?
s
Please join the OH and get your question answered https://discord.gg/Q4kmWaKq?event=1288127751869431950 @Digi
d
Sorry, I'm quite busy right now to join 😅
s
use vapi live call events to track the call duration and inject messages in model history to trigger the tool call or use tool call on every user input.
d
Alright so using a tool should be good enough?
s
yes.
d
okay thanks!