Query Tool Not Working on First Question After Node Transfer in Workflows

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)
Was this page helpful?