Problem with QUERY tool.
# support
m
Hello, I have an issue - I want to retrieve information from knowledge base by using query function. I'm using gemini 1.5 flash or 2.0 flash lite to do it. I have prompted in the instructions that if the user wants to get information about xyz then always use the tool zyx. And the assistant uses the tool correctly, but after using the tool it doesn't give me an answer. I need to ask him again and then it answers correctly based on the info retrieved earlier. Here are two examples of calls: 28761cb2-9eba-46af-b5c9-6fa89a7f5e14 58ca5365-4bfd-4dec-89f8-73dfde739eee So basically right after correctly using the tool, instead of giving an answer based on the tool resposne, it doesn't answer until I ask again https://cdn.discordapp.com/attachments/1416733799676514344/1416733800117043301/Screenshot_2568-09-14_at_17.34.11.png?ex=68c7ebab&is=68c69a2b&hm=09e801c93881763e2e54141afe37cda8d00d2a36fad2dbc57d9ed4d4e54dfe8c&
c
Hi there, Thank you for your message. Our team is currently out of the office. We operate Monday through Friday, from 9:00 AM to 8:00 PM Pacific Standard Time (PST). We’ll get back to you as soon as possible during our normal business hours. If your message is urgent, please mark it accordingly or include “URGENT” in the subject line, and we’ll do our best to respond promptly. Warm regards, Vapi Customer Support Team
m
Update: The issue only occurs when I'm trying to set up either tool start message, tool complete message or both at once. Once the messages are deleted - it works correctly
k
hey Marcello, I had the same problem, but I just figured out that in the tools, at the query tool settings, just delete the field from messages, making it empty like in the photo. it solved this same problem for me just recently https://cdn.discordapp.com/attachments/1416733799676514344/1416743826978115625/IMG_9369.jpg?ex=68c7f502&is=68c6a382&hm=577b961a8aa39a51cff1439cad1cc7e8a8bccc0102951ca949f5c1c24521f915&
l
I understand the issue you’re facing with the assistant not responding immediately after using the tool when tool start/complete messages are enabled. I can help diagnose why the response isn’t triggered and adjust the flow so the assistant delivers the answer correctly every time. To clarify, are you looking for the assistant to respond immediately after tool completion while still keeping the start/complete messages visible?
m
Thanks @Krisztian, I've also noticed that. It still would be nice to have some start request message cause even though gemini flash lite is fast, it still gives some latency, which should have been filled with start request message 😄
@Lordvickthor The complete message is quite unnecessary as long as after completing the tool the model actually gives an answer based on the query tool. The start message would be great to have because it perfectly fills in the gap while the tool is being used.
@Lordvickthor Any update on this issue? 🙏
c
We are continuing to recommend leaving the
request
messages empty for the time being. Let us know if the tool isn't working without the messages
l
I see what you mean, the start message is useful as a filler, but the complete message adds no value if the assistant doesn’t answer right after. I can help you adjust the setup so the assistant automatically gives the response from the query tool immediately after it completes, while still keeping the start message. This way you don’t need the complete message at all and the flow feels seamless. @Marcello
m
Yeah when there is no message it is working correctly. The issue is with the latency of this tool. When the tool is used there is silence which is annoying. Is it possible to fix the issue with the start message?
Yeah I know, request complete is unnecessary and let's skip that. But when I am adding the start message, then I don't get the tool response, but I see that the tool has been successful
l
Yes, it’s possible to fix this.
We can configure the start message to display while the tool runs, without blocking the tool’s response. The complete message can be skipped, and the assistant will still deliver the result right after execution. I can help you set this up so the flow feels seamless with no silence or missed answers.
@Marcello
m
Okay so how to do it? Because as I've described in the problem and also I believe @Krisztian is facing the same issue, when there is start message, the tool doesn't give a resposne
3 Views