capabilities.work

File-Backed Knowledge Base Assistant

A 3-step recipe with Vapi. We can help you get access.

Recipe · 3 steps

File-Backed Knowledge Base Assistant

with Vapi

Upload a file, wrap it in a query tool, and back an assistant with it.

  1. Upload the document to Vapi so it can back a knowledge base.
  2. Create a query tool whose Google knowledge base is backed by the uploaded file so an assistant can retrieve from it.
  3. Create the assistant and attach the query tool by id so it can answer from the uploaded knowledge base.
What you'll need to have ready
  • apiToken: Vapi private API key used as a Bearer token.
  • fileContent: The file payload to upload to Vapi.
  • knowledgeBaseName: A name for the knowledge base built from the file.
  • knowledgeBaseDescription: A description of what the knowledge base contains.
  • name: A human-readable name for the assistant.
  • firstMessage: The opening message the assistant speaks.
  • systemPrompt: The system prompt that shapes the assistant's behavior.
For your developer

Arazzo workflow vapi-ai:file-knowledge-base-assistant, 3 operations: FileController_create → ToolController_create → AssistantController_create. Specs on APIs.io.