Skip to main content

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

  1. Upload a file or add a web link to create a document
  2. Link the document to one or more agents
  3. The document is automatically synced to the agent’s knowledge base
  4. 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.
The upload_url expires in 15 minutes (900 seconds). Upload your file before it expires.
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 POST /documents/{id}/confirm to finalize. Vocobase verifies the file exists and transitions the document status from uploading to ready.
The document is now ready and can be linked to agents.

Web links are simpler — no upload step is needed. The document is immediately ready.
The URL content is fetched and stored as a text snapshot when you create the document. The agent uses this snapshot during conversations.

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.

Once your documents are in ready status, link them to an agent to add them to its knowledge base:
The response tells you which documents were newly linked and which were skipped (already linked). Indexing starts for each newly linked document.
  • 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.
An agent cannot use a document during calls until its sync status is synced. Allow a few seconds after linking for the sync to complete.

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:

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.
Deleting a document permanently removes it from all agents’ knowledge bases. This action cannot be undone.

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.