axel@tell-ia
10/29/2025, 8:39 PMVapi Support Bot
10/29/2025, 8:41 PMknowledge-base-request events in your web client. For example:
js
vapi.on('message', (message) => {
if (message.type === 'knowledge-base-request') {
console.log('Knowledge base called:', message);
}
});
This will help you confirm your endpoint is being triggered as expected. Make sure your endpoint is publicly accessible and responds quickly for best results.
Source: [Vapi documentation](https://docs.vapi.ai/knowledge-base/custom-knowledge-base)axel@tell-ia
10/29/2025, 8:43 PMVapi Support Bot
10/29/2025, 8:44 PMtext
Use the knowledge base to provide accurate answers to user questions.
This is only required for Google knowledge bases with query tools, not for custom knowledge bases.
Source: [Custom Knowledge Base documentation](https://docs.vapi.ai/knowledge-base/custom-knowledge-base)axel@tell-ia
10/29/2025, 8:47 PMVapi Support Bot
10/29/2025, 8:49 PMaxel@tell-ia
10/29/2025, 8:52 PM{
model: "gpt-4o-mini",
messages: [
{
role: "system",
content: `You are on the call with: Coline Farmer
Use the knowledge base to provide accurate answers to user questions.
For information, today date is: Wednesday, October 29, 2025`,
},
],
provider: "openai",
maxTokens: 1500,
temperature: 0.2,
knowledgeBaseId: "54336b30-67a7-407b-bc96-e1f6a83b0c9d",
} here you goVapi Support Bot
10/29/2025, 8:53 PM"server": {
"url": "https://your-domain.com/kb/search",
"secret": "your-webhook-secret"
}
Let me know if this matches your setup!
Source:
- [Vapi documentation: Custom Knowledge Base](https://docs.vapi.ai/knowledge-base/custom-knowledge-base)axel@tell-ia
10/29/2025, 9:04 PM{
id: "adac8398-ef45-40a6-9ef8-08877d34c4ee",
orgId: "00eaff08-eb2d-4cc0-9d5e-91967eeb47fa",
provider: "custom-knowledge-base",
createdAt: "2025-10-29T20:58:04.693Z",
updatedAt: "2025-10-29T20:58:04.693Z",
server: {
url: "https://acouty.ngrok.dev/vapi/webhooks/custom-knowledge-base/search",
},
}
And the model again:
{
model: "gpt-4o-mini",
messages: [
{
role: "system",
content: `You are on the call with: Coline Farmer
Use the knowledge base to provide accurate answers to user questions.
For information, today date is: Wednesday, October 29, 2025`,
},
],
provider: "openai",
maxTokens: 1500,
temperature: 0.2,
knowledgeBaseId: "adac8398-ef45-40a6-9ef8-08877d34c4ee",
}Vapi Support Bot
10/29/2025, 9:06 PMjs
app.post('/vapi/webhooks/custom-knowledge-base/search', (req, res) => {
console.log('Received knowledge-base-request:', req.body);
// ...your response logic...
res.json({ documents: [] });
});
This will let you see immediately in your server logs if Vapi is reaching your endpoint during a call.
Source: [Custom Knowledge Base documentation](https://docs.vapi.ai/knowledge-base/custom-knowledge-base)axel@tell-ia
10/29/2025, 9:07 PMVapi Support Bot
10/29/2025, 9:09 PMhttps://acouty.ngrok.dev/vapi/webhooks/custom-knowledge-base/search) is publicly accessible from outside your network (e.g., by sending a test POST request from a service like https://webhook.site or curl from a cloud VM) and that your server logs the request?
This will help rule out any tunnel or firewall issues blocking Vapi from reaching your endpoint.
Source:
- [Vapi documentation: Custom Knowledge Base](https://docs.vapi.ai/knowledge-base/custom-knowledge-base)axel@tell-ia
10/29/2025, 9:10 PMcurl -X POST https://acouty.ngrok.dev/vapi/webhooks/custom-knowledge-base/search
which does trigger a log on my server 🙂Vapi Support Bot
10/29/2025, 9:12 PMknowledge-base-request events in your Vapi call logs or receive any related messages in your web client (listening for knowledge-base-request type, not custom-knowledge-base)?
This will help determine if the assistant is attempting to trigger the knowledge base at all, or if the issue is before the request is sent.
Example event listener:
js
vapi.on('message', (message) => {
if (message.type === 'knowledge-base-request') {
console.log('Knowledge base called:', message);
}
});
Source:
- [Vapi documentation: Custom Knowledge Base](https://docs.vapi.ai/knowledge-base/custom-knowledge-base)axel@tell-ia
10/29/2025, 9:19 PMVapi Support Bot
10/29/2025, 9:20 PMaxel@tell-ia
10/29/2025, 9:23 PMVapi Support Bot
10/29/2025, 9:25 PMbash
curl --location --request PATCH 'https://api.vapi.ai/assistant/YOUR_ASSISTANT_ID' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_VAPI_API_KEY' \
--data '{
"model": {
"model": "gpt-4o-mini",
"provider": "openai",
"messages": [ { "role": "system", "content": "Use the knowledge base to provide accurate answers to user questions." } ],
"knowledgeBaseId": "adac8398-ef45-40a6-9ef8-08877d34c4ee",
"maxTokens": 1500,
"temperature": 0.2
}
}'
Make sure you are not omitting any fields and that the model object is complete, as partial updates for nested objects are not supported and may prevent the knowledge base from being triggered.
[See docs for details](https://docs.vapi.ai/knowledge-base/custom-knowledge-base)
Source:
- [Custom Knowledge Base documentation](https://docs.vapi.ai/knowledge-base/custom-knowledge-base)axel@tell-ia
10/29/2025, 9:26 PMVapi Support Bot
10/29/2025, 9:27 PMknowledgeBaseId and that you can see it in the end-of-call report. Since your endpoint is publicly accessible and your configuration appears complete, but the knowledge base is still not being called during calls, it looks like all the standard setup steps have been covered.
Based on the information provided, there isn't any additional troubleshooting step in the found information or documentation that directly addresses this scenario. If the model object is correct and the endpoint is reachable, but the knowledge base is not triggered, there may be an issue outside the scope of the configuration steps discussed so far.
If you have any other details or changes in behavior, feel free to share them!axel@tell-ia
10/29/2025, 9:28 PMVapi Support Bot
10/29/2025, 9:30 PMknowledgeBaseId, one possible edge case is if the assistant is being invoked with any additional overrides (such as assistantOverrides or workflow-specific settings) that might unintentionally bypass or override the knowledge base integration.
Could you confirm if you are invoking the assistant with any extra overrides or through a workflow that might affect the model configuration at runtime? Even a small override (like a different messages array or missing field) could prevent the knowledge base from being triggered, according to the documentation.
This detail will help determine if the issue is with the invocation context rather than the static configuration.
[See docs for reference](https://docs.vapi.ai/knowledge-base/custom-knowledge-base)
Source:
- [Vapi documentation: Custom Knowledge Base](https://docs.vapi.ai/knowledge-base/custom-knowledge-base)axel@tell-ia
10/29/2025, 9:31 PMVapi Support Bot
10/29/2025, 9:33 PMmodel object (with knowledgeBaseId, messages, provider, etc.) is always present, as missing or partial fields can prevent the knowledge base from being triggered according to the documentation.
If you can, please redact any sensitive info before sharing.
Source:
- [Vapi documentation: Custom Knowledge Base](https://docs.vapi.ai/knowledge-base/custom-knowledge-base)axel@tell-ia
10/29/2025, 9:35 PM{
"assistantId": "13038bda-f6bf-4f25-a8dd-0035d965057a",
"assistantOverrides": {
"variableValues": {
"systemPrompt": "You are on the call with: Coline Farmer\n\nUse the knowledge base to provide accurate answers to user questions.\n\nFor information, today date is: Wednesday, October 29, 2025",
"firstMessage": "Hi Coline, this is Tellia. I'm ready to record your work!",
"workerPhone": "+33652648779",
"conversationId": "68a7f1b61d46d3a1f3ab6a8d"
},
"server": {
"url": "https://acouty.ngrok.dev/vapi/server-setting?workerPhone=%2B33652648779&conversationId=68a7f1b61d46d3a1f3ab6a8d&language=en&workerId=6842c195e5eb4d342bcdb444&companyId=6841d78ae5eb4d342bcd93bc"
},
"model": {
"model": "gpt-4o-mini",
"messages": [
{
"role": "system",
"content": "{{systemPrompt}}"
}
],
"provider": "openai",
"maxTokens": 1500,
"temperature": 0.2,
"knowledgeBaseId": "adac8398-ef45-40a6-9ef8-08877d34c4ee"
}
}
}Vapi Support Bot
10/29/2025, 9:37 PMjson
{
"assistantId": "YOUR_ASSISTANT_ID",
"assistantOverrides": {
"model": {
"model": "gpt-4o-mini",
"provider": "openai",
"messages": [
{ "role": "system", "content": "Use the knowledge base to answer user questions." }
],
"knowledgeBaseId": "YOUR_KNOWLEDGE_BASE_ID",
"maxTokens": 1500,
"temperature": 0.2
}
}
}
If this triggers the knowledge base, the issue may be with how variables are interpolated or with extra fields in your dynamic payload. If not, please contact Vapi support with your payload and logs for further investigation.
[Reference: Custom Knowledge Base docs](https://docs.vapi.ai/knowledge-base/custom-knowledge-base)
Source:
- [Vapi documentation: Custom Knowledge Base](https://docs.vapi.ai/knowledge-base/custom-knowledge-base)axel@tell-ia
10/29/2025, 9:38 PMVapi Support Bot
10/29/2025, 9:40 PMjson
{
"assistantId": "YOUR_ASSISTANT_ID",
"assistantOverrides": {
"model": {
"model": "gpt-4o-mini",
"provider": "openai",
"messages": [
{ "role": "system", "content": "Use the knowledge base to answer user questions." }
],
"knowledgeBaseId": "YOUR_KNOWLEDGE_BASE_ID",
"maxTokens": 1500,
"temperature": 0.2
}
}
}
If this triggers the knowledge base, the problem is likely with variable interpolation or extra fields in your dynamic payload. If not, please contact Vapi support with your exact payload and logs for further help.
[Reference: Custom Knowledge Base docs](https://docs.vapi.ai/knowledge-base/custom-knowledge-base)
Source:
- [Vapi documentation: Custom Knowledge Base](https://docs.vapi.ai/knowledge-base/custom-knowledge-base)axel@tell-ia
10/29/2025, 9:44 PMVapi Support Bot
10/29/2025, 9:47 PMaxel@tell-ia
10/29/2025, 9:49 PMVapi Support Bot
10/29/2025, 9:50 PMtext
Subject: Custom Knowledge Base Not Triggering – Troubleshooting Details
Hi Vapi Support Team,
I'm experiencing an issue where my custom knowledge base endpoint is not being called. Please find attached my payload, call logs, and a summary of the steps I've taken so far.
Thank you!
Support cannot access this chat thread directly, so please include all relevant details in your email for fastest resolution.
For more info, see the [Vapi Support documentation](https://docs.vapi.ai/support).
Source:
- [Vapi Support documentation](https://docs.vapi.ai/support)axel@tell-ia
10/31/2025, 1:29 AMChiranjeet Mishra
10/31/2025, 8:14 PM