Query Tool Not Working on First Question After Nod...
# support
l
summary: When using VAPI workflows with global nodes, query tools fail to access knowledge bases on the first question after transferring to the global node. The same question works correctly on the second attempt, indicating a context initialization issue after node transfers ( i have verified with the logs that the query tool is not being used on first access to node, only on the second prompt where I ask "are you sure?") as the first answer since it was not based on the KB it was wrong, the second answer was right since it have accessed the KB. Steps to Reproduce Create workflow with node transfer to global node Configure global node with query tool and knowledge base Transfer call to global node Ask question requiring knowledge base lookup Result: First question returns generic/incorrect answer (not from knowledge base) Ask same question again Result: Second question correctly uses knowledge base and returns accurate data Expected Behavior Query tool should access knowledge base correctly on the first question after node transfer, not just on subsequent questions. Current Impact Users receive incorrect information on their first question after transfer Requires asking the same question twice to get accurate knowledge base results Creates poor user experience and undermines system reliability Configuration Details Query Tool: Configured with Google Gemini 2.0 Flash Knowledge Base: Contains correct data (verified) Model: OpenAI GPT-5 Mini Transfer Type: Global node in workflow Additional Context The knowledge base contains correct data and the query tool works perfectly when tested independently. The issue only occurs specifically after workflow node transfers, suggesting a context/tool initialization problem in the workflow system. Call id: 0199ae6a-01b9-7881-90e0-b22f08075ef1 time: Oct 4, 2025, 11:50 (GMT+2)
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
v
Suggestion: To ensure the query tool is initialized immediately after transferring to the global node, try adding an explicit tool initialization or prompt in the global node's configuration. For example, set the global node's First Message or Prompt to directly trigger the query tool, like:
Copy code
yaml
Prompt: "Please answer using the knowledge base. [Trigger query tool here]"
This can help force the tool to activate on the first user input after transfer. Test this adjustment and see if the knowledge base is accessed correctly on the first question after node transfer. Sources: - [Workflows quickstart](https://docs.vapi.ai/workflows/quickstart) - [Workflows overview](https://docs.vapi.ai/workflows/overview) - [Custom Tools](https://docs.vapi.ai/tools-calling)
c
Thanks for the call id. We are reviewing the details of your request and will reach out to you when we have an update or if we need additional information.
2 Views