Urgent: Vapi Query Tool Not Accessing Multiple Too...
# support
k
v
Actionable Fix: Update your system prompt to explicitly instruct the assistant when to use each tool by its exact name. For example:
Copy code
json
{
  "role": "system",
  "content": "You are a helpful sales agent. When users ask about product details, use the 'know_1' tool. For pricing or billing questions, use the 'know_2' tool. Always call the appropriate tool before answering."
}
Be sure the tool names in the prompt exactly match those in your configuration. For more, see the [official guidance](https://docs.vapi.ai/knowledge-base/using-query-tool). Source: - [Using the Query Tool for Knowledge Bases](https://docs.vapi.ai/knowledge-base/using-query-tool)
k
it is not working if i am removing second then first is started working and if i remove first then second is started working but both are not working as expectead
c
Could you please provide a call id where both query tools are attached? In the previous call id you sent, there was only one query tool
know_1
attached.
e
I am having the same issue. I have an agent with multiple tools, in the prompt I use the unique name and how to use each of them, but I only see the first one being used. If I change the first one for another, then it starts using that one. Any work around? Is this a bug or am I doing something wrong here?
c
please provide a call id and we will take a look at the config