Christopher
05/14/2024, 3:12 PMVapi Support
05/14/2024, 3:12 PMVapi Support
05/14/2024, 3:12 PMVapi Support
05/14/2024, 3:12 PMjavascript
curl --request POST \
--url https://api.vapi.ai/assistant \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"transcriber": {...},
"model": {
"provider": "openai",
"model": "gpt-4-turbo",
"knowledgeBase": {
"fileIds": ["<file_id>"], // Ensure this is correctly set
"provider": "canonical"
},
...
},
...
}'
[(2)]() , [(1)]()
3. **Handling Errors**:
- If you are receiving errors like "invalid assistant" or "couldn't fetch assistant," double-check the assistant ID and ensure it matches the one you are trying to configure. An example cURL request to get an assistant configuration is:Vapi Support
05/14/2024, 3:12 PMjavascript
curl --request GET \
--url https://api.vapi.ai/assistant/{id} \
--header 'Authorization: Bearer <token>'
[(3)]()
4. **Check for Permissions and Errors**:
- Make sure your API token has the necessary permissions to access and modify assistants and knowledge base documents.
- Review the logs for more detailed error messages that might indicate what’s going wrong with the assistant's configuration.
5. **Custom Functions**:
- Consider using custom functions to interact with your knowledge base, as outlined in the [Function Calling documentation]() [(4)]() .
By ensuring the configuration is correct and all steps are followed as per the documentation, you should be able to resolve the issues related to knowledge base integration.adriancowham
05/14/2024, 3:41 PMadriancowham
05/14/2024, 3:42 PMChristopher
05/14/2024, 4:41 PMSahil
05/14/2024, 4:55 PMChristopher
05/14/2024, 4:59 PMSahil
05/14/2024, 5:04 PMsh.lim
05/15/2024, 5:49 AMSahil
05/15/2024, 8:10 AMdidomcbl
09/22/2024, 9:44 AMSahil
09/23/2024, 2:32 PMSahil
09/23/2024, 2:33 PM