yucky-goldY
VAPI5mo ago
yucky-gold

Knowledge base/query tool issue

Issue: My agent is querying an unknown knowledge base instead of mine, so callers never get the real address or company details.
What I’ve Tried:
Added a top‑of‑prompt rule to force the agent to use query_tool to my custom file (knowledge base).


Created a query tool specifically for my agent to reference my knowledge base


Renamed the fileKey to simple identifiers (e.g. kings_roofing_kb) and updated every prompt reference to match exactly.


Moved the custom‑KB rule to the very top of the system prompt, ahead of all fallback logic.


Despite these changes, the logs still show:

Calling query tool:
Function Arguments
{"knowledgeBaseNames": ["new_knowledge_base"]}

The correct knowledge base is in the file under the prompt section and in the query tool with a proper description and that tool is applied to my agent.
The agent never pulls from the uploaded file.
Could you help me identify what’s keeping my agent from using the correct file and how to fix it?


I’ve made sure to have the knowledge base file in the file area, created a query tool with the file prompted the agent and created a new agent to solely query to knowledge base tool but i cannot get it to work
Screenshot_2025-07-29_212414.png
Screenshot_2025-07-29_212431.png
Was this page helpful?