Knowledge Base
The knowledge base lets you upload documents and web links that your agents can reference during conversations. When a caller asks a question, the agent searches its linked documents to provide accurate, grounded answers.How it works
- Upload a file or add a web link to create a document
- Link the document to one or more agents
- The document is automatically synced to the agent’s knowledge base
- During calls, the agent searches linked documents to answer questions
Supported file types
Upload a file document
Uploading a file is a three-step process: get a presigned URL, upload the file, then confirm the upload.1
Get a presigned upload URL
Call
POST /documents/upload with the file metadata. This creates a document record in uploading status and returns a presigned upload URL.2
Upload the file
Use the presigned URL to upload your file with a
PUT request. Set the Content-Type header to match the mime_type you specified.This request goes directly to the presigned upload URL, not to the Vocobase API. Do not include the
Authorization header.3
Confirm the upload
After the file is uploaded, call The document is now
POST /documents/{id}/confirm to finalize. Vocobase verifies the file exists and transitions the document status from uploading to ready.ready and can be linked to agents.Add a web link document
Web links are simpler — no upload step is needed. The document is immediatelyready.
Add a paragraph document
Paragraphs let you add custom text content directly without uploading a file. This is useful for FAQs, product descriptions, or any text you want the agent to reference.Paragraph content is limited to 50,000 characters. For longer content, consider uploading a text or markdown file.
Link documents to an agent
Once your documents are inready status, link them to an agent to add them to its knowledge base:
- You can link up to 20 documents per request
- Each agent supports up to 100 linked documents total
- Duplicate links are silently skipped (the operation is idempotent)
Sync statuses
After linking a document to an agent, it goes through a sync process. You can check the sync status by listing the agent’s documents.List and manage documents
List all documents
Get a single document
Fetching a single document also returns a download URL (for files) and the list of linked agents with their sync statuses:List an agent’s linked documents
Update a document
You can rename a document or update its description:Unlink and delete documents
Unlink a document from an agent
Unlinking removes the document from the agent’s knowledge base but does not delete the document itself. You can re-link it later.Delete a document permanently
Deleting a document removes the stored file if applicable, unlinks it from all agents, and deletes the record. This action is irreversible.API reference
Next steps
Create an Agent
Create an agent and link documents to it.
Webhook Payloads
See how KB search results appear in call transcripts.