TechLuke
09/20/2025, 12:51 AMVapi Support Bot
09/20/2025, 12:52 AMbash
curl --location 'https://api.vapi.ai/tool/' \
--header 'Authorization: Bearer <YOUR_API_KEY>' \
--header 'Content-Type: application/json' \
--data '{
"type": "query",
"function": { "name": "auto-kb-query" },
"knowledgeBases": [{
"provider": "google",
"name": "auto-kb",
"description": "Auto-attached KB",
"fileIds": ["<NEW_FILE_ID_1>", "<NEW_FILE_ID_2>"]
}]
}'
Integrate this into your ChatDash workflow to achieve full automation.
[See API docs for details](https://docs.vapi.ai/api-reference/tools/create#request.body.query.knowledgeBases).
Sources:
- [Using the Query Tool for Knowledge Bases](https://docs.vapi.ai/knowledge-base/using-query-tool)
- [API Reference: Create Tool](https://docs.vapi.ai/api-reference/tools/create#request.body.query.knowledgeBases)Vapi Support Bot
09/20/2025, 1:13 AMChiranjeet Mishra
09/23/2025, 9:33 PM