Is it possible to manually call a tool ?
# support
l
I created a tool to gather the time at which the user requested to schedule an appointment. For example "Tuesday at 9 pm ", but sometimes the user didn't say the complete time yet and it sends to the webhook only "Tuesday" for example.
v
@Lucas-_- It sounds like you might need to refine your tool to ensure it captures complete appointment details before sending the information to the webhook. To handle cases where the user provides incomplete information, you could implement a follow-up question feature within your tool that prompts the user for more specific details when the initial input is not sufficient. For instance, if the user only says "Tuesday," your tool could respond with a message like, "Could you please specify the time you would like to schedule the appointment for on Tuesday?" This way, you can gather the complete information needed to book the appointment successfully. If you need assistance with implementing this feature or have any other questions, please let me know!
You can continue this conversation by mentioning me in the message.
l
@Vapi But is it currently possible to call a tool in the prompt ?
v
@Lucas-_- As a Voice API for voice developers, you typically wouldn't call a tool directly within the user's prompt. Instead, you would design your voice application to interpret the user's input and then trigger the appropriate tool or function in response. If the user's input is incomplete, your application should be programmed to ask follow-up questions to gather the necessary information. Once you have the complete details, you can then call the relevant tool or function to process the appointment scheduling. If you need to implement or adjust this logic within your voice application, you might need to update your code or use the platform's built-in features to ensure that the tool is called with all the required parameters. If you're unsure how to proceed, please ask support for more info on this.
s
@Lucas-_- call id please.
4 Views