Update Assistant Knowledgebase Files via API
# support
w
I have uploaded a new file via API to my overall Vapi knowledgebase. I see it under "Files". However, when I go to my assistant, it isn't selected. I'm trying to find a way to automatically add it to the selected files, but can't seem to find a way.
v
You can continue this conversation by mentioning me in the message.
@Wrathed To automatically add your newly uploaded file to the selected files for your assistant, you would typically need to use an API endpoint or a function provided by VAPI that allows you to update the assistant's configuration. However, VAPI might not have a direct function exposed for this specific action. If there is an API endpoint or function available for this purpose, you would need to provide the assistant's identifier and the identifier of the newly uploaded file to make the association. Since I don't have the specific details of such a function or endpoint, I would recommend checking the VAPI documentation for a function that updates an assistant's configuration or selected files. If you cannot find the information in the documentation or if there is no direct way to do this via the API, you may need to manually select the file for your assistant through the VAPI user interface as described in Step 2 of the context provided. If you need further assistance with this process or if there is anything else I can help you with, please let me know!
s
@Wrathed You can follow this guide https://docs.vapi.ai/knowledgebase on how to set up the knowledge base and use it for the assistants. As of now, knowledge base integrations are doable using the API only and only uploading files using the dashboard works.