Tools firing before user response is finished
# support
d
I have a tool that says "Fire this tool when the user responds to xyz" and I'm trying understand how to get it to wait until the user FINISHES responding. But the tool is firing like after the first few words or sentence which doesn't really contain the content I need to review. Is this just a prompt engineering thing on the tool description? Or does this have to do with some kind of vapi setting around endpoint?
v
@danemyers It sounds like you're dealing with an issue related to the timing of your tool's activation in response to user input. This could be due to the way the tool is configured to interpret when a user has finished speaking. It's not just a matter of prompt engineering; it may involve adjusting the settings of your Voice API (VAPI) to better detect the end of a user's response. Voice APIs typically have settings or parameters that define what constitutes the end of a user's speech, such as silence detection or waiting for a specific keyword. You may need to look into these settings and adjust parameters like the length of silence the API should wait for before considering the input complete, or implementing a mechanism to allow the user to indicate they have finished speaking. If you can provide more details about the specific tool or settings you're using, I can offer more targeted advice. Otherwise, you may need to consult the documentation for your Voice API or reach out to support for more detailed guidance on how to adjust the endpoint settings to ensure the tool waits for the complete user response.
You can continue this conversation by mentioning me in the message.
d
e4856686-4f28-44cf-8244-45cf4bc2b0e3 Here's a call ID Where you can see 12:35:55:792 [LOG] Model called tool: needstocheckwithspouse({"userResponse":"That makes sense to me."})
@Shubham Bajaj Also can you let me know what's up with office hours? I've been trying to join at the time listed in the Events tab but it seems like they haven't been happening?
s
Hey we have office hours daily at 12:00AM IST or 01:30 PM EST.
@danemyers try this change and do let me know how it goes.
Copy code
If they address your concerns according to the following criteria, after that <wait for user response> and then you will fire the 'needstocheckwithspouse' tool.
BTW it's best to reformat your prompt according to the VAPI prompting guide.
2 Views