Jimmy
12/09/2025, 11:48 AM{"knowledgeBaseNames":["clinic_appointment_type"]}
Incorrect result: `[
{
"name": "qr_j573wcg4bba9gb6gfeef2dt8s97tcprf",
"toolCallId": "call_yXsBEQ0qYn9QBbP8MJoFiybA",
"type": "query",
"result": "```text\nMonday: 08:00 - 18:00\n```"
}
]`
Correct Query:
Query : {"knowledgeBaseNames": ["clinic_appointment_type"]}
Correct result: `[ { "name": "qr_j976q1pdjjwgwgznnf96wmdrsn7tntr5", "toolCallId": "call_N9auENLGPuszgbNFjV0EmM8F", "type": "query", "result": "```json\n[\n {\n \"_creationTime\": 1762168946683.3276,\n \"_id\": \"jh79dwk5k1be9sh0mttbr27ty57tqag2\",\n \"agentId\": \"j976q1pdjjwgwgznnf96wmdrsn7tntr5\",\n \"estimatedDuration\": 30,\n \"name\": \"Check Up/Scale Clean\",\n \"pmsId\": \"Sp4DmVITUEyTAPKMPnqupw\",\n \"eventClassId\": \"Sp4DmVITUEyTAPKMPnqupw\",\n \"practitioners\": [\n \"Stephen Vincent Strange\",\n \"Bruce Banner\",\n \"Tony Stark\",\n \"Natalia Romanov\"\n ]\n }\n]\n```" }, { "name": "qr_j976q1pdjjwgwgznnf96wmdrsn7tntr5", "toolCallId": "call_lqUo0ydWYu5nY4z2uRymRqn4", "type": "query", "result": "```text\nClinic Opening Hours:\nMonday: 09:00 - 17:00\nTuesday: 09:00 - 17:00\nWednesday: 09:00 - 17:00\nThursday: 09:00 - 17:00\nFriday: 09:00 - 17:00\nSaturday: 09:00 - 17:00\nSunday: 09:00 - 17:00\n```" } ]`
Broken Call ID: 019b02db-f100-7bb8-987f-57eea4fe632c
Working Call ID: 019b02e2-a3d1-7006-8667-088991a183beVapi Support Bot
12/09/2025, 11:49 AMjson
{
"role": "system",
"content": "When users ask about appointment types, use the 'clinic-appointment-type-query' tool to search the knowledge base. Always call this tool before answering."
}
Review and align the system prompt and knowledge base description across both agents for consistent behavior ([documentation](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)Jimmy
12/09/2025, 12:26 PMJimmy
12/09/2025, 12:28 PMJimmy
12/09/2025, 12:38 PMJimmy
12/09/2025, 1:45 PMJimmy
12/10/2025, 11:17 AMJimmy
12/10/2025, 11:17 AMJimmy
12/10/2025, 11:39 AMChiranjeet Mishra
12/10/2025, 12:51 PM{"knowledgeBaseNames":["clinic_appointment_type"]} is consistent across both agents.
4. **Tool and Agent Creation Date**: It's possible that the discrepancies might stem from updates or changes post-Agent creation. Consider recreating the agent to align configurations.
5. **Procedure in Separate Orgs**: If both agents are in separate organizations, there might be organization-specific configurations affecting query results.
Review these steps and align configurations across both agents as per the [Query Tool documentation](https://docs.vapi.ai/knowledge-base/using-query-tool). If the issue persists, double-check the agent settings and tool configurations within your dashboard for accuracy.