axel@tell-ia
10/31/2025, 1:27 AM019a37d9-f4f2-7ff0-82f0-1c479242798c
You can also see the data i return:
attributes.response.data.message.content: you are 30 years old
attributes.response.data.message.role: assistant
You can see on the call log that the AI does not use the answser from the knowledge base,
What am I missing ?
Thanks !Vignxt Flow
10/31/2025, 9:36 AMaxel@tell-ia
10/31/2025, 4:24 PMreturn {
"message": {
"role": "assistant",
"content": "you are 30 years old"
}
}; which i took from the [doc](https://docs.vapi.ai/knowledge-base/custom-knowledge-base#option-2-return-direct-response)
I will try to do this instead then :
return {
messages: [
"message": {
"role": "assistant",
"content": "you are 30 years old"
}
]
};axel@tell-ia
10/31/2025, 4:41 PM➜ curl -X POST localhost:3888/vapi/webhooks/custom-knowledge-base/search
{"messages":[{"role":"assistant","content":"There are 4 trucks available."}]}%
The id of the call is 019a3b1f-9214-7225-b913-80c2a25b7b31
When i'm mentionning the attributesresponse.data htat's because i see it on the VAPI dashboard like this:
(see screenshot attached)
https://cdn.discordapp.com/attachments/1433628349133230151/1433858324960379002/image.png?ex=69063820&is=6904e6a0&hm=a4e61c4628e2074ff0cde429735f1820f98ff5be2a30227a2a9d1ff291fb4aef&axel@tell-ia
10/31/2025, 5:05 PMreturn {
message: {
type: 'custom-message',
content: 'There are 4 trucks available.',
}
};Chiranjeet Mishra
11/03/2025, 8:25 PMBuild > Files and configure your assistant accordingly. More details can be found in the [Knowledge Base instructions](https://docs.vapi.ai/knowledge-base).
2. **Configure a Query Tool**: Use the Query Tool feature to enable your assistant to access knowledge bases. Choose either the dashboard or API to set up the tool by associating it with your desired files using file IDs. Instructions are available in the [Query Tool guide](https://docs.vapi.ai/knowledge-base/using-query-tool).
3. **Attach to Assistant**: Ensure that the Query Tool is integrated into your assistant's workflow. On the dashboard, select your assistant and attach the tool under the Tools section. Update the system prompts to instruct when to use the tool.
By ensuring these steps are correctly implemented and using detailed, descriptive prompts within your assistant configuration, your assistant should effectively retrieve and verbalize responses from the Knowledge Base.
If you encounter issues with your assistant not using the Knowledge Base, ensure that the setup is correctly configured and test the assistant thoroughly, checking the system prompts and tool attachment.
For any further detailed challenge or specific configurations, the related documents linked above can offer more guidance.axel@tell-ia
11/03/2025, 11:24 PMChiranjeet Mishra
11/05/2025, 9:54 PM