Create Knowledge Base
Knowledge Base
Create Knowledge Base
Create a new knowledge base for voice agents
POST
Create Knowledge Base
Overview
Knowledge bases enhance voice agents with additional context from URLs, documents, and custom text. Agents automatically retrieve relevant information during calls without any prompt changes needed. Use cases:- Product FAQs
- Company policies
- Support documentation
- Pricing information
- Technical specifications
Authentication
Your Teli API key
Request Body
Knowledge base name (max 40 characters)
Organization unique_id
User unique_id (creator)
List of URLs to scrape and index. Max 500 URLs per knowledge base.
List of text snippets. Each has
title and text. Max 50 snippets per knowledge base.Enable auto-refresh for URLs (updates content every 24 hours). Default: false
Request Examples
With Text Snippets
URLs + Text Combined
Response
Whether creation was successful
Unique ID of the created knowledge base. Use this to link to agents.
Your platform’s unique ID (for internal reference)
Knowledge base name
Processing status:
in_progress, complete, or errorNumber of sources added
Success message
Platform identifier (“Teli”)
Processing Status
After creation, the knowledge base status will bein_progress.
Processing includes:
- Scraping URLs
- Chunking content
- Creating embeddings
- Indexing for retrieval
Limits
Auto-Refresh
Whenauto_refresh is enabled:
- URLs are re-fetched every 24 hours
- Content automatically stays up-to-date
- Useful for frequently changing documentation
Auto-refresh only applies to URL sources, not text snippets.
Next Steps
After creating a knowledge base:- Wait for status to become
complete(check via GET endpoint) - Link to voice agent via
knowledge_base_idsparameter - Test calls to verify agent uses KB context
Related Endpoints
- List Knowledge Bases - View all KBs
- Get Knowledge Base - Get details
- Delete Knowledge Base - Remove KB
- Create Voice Agent - Link KB to agent
- Update Voice Agent - Update agent’s KBs
Enhance your voice agents with knowledge bases! 🚀

