What Are Knowledge Bases?
Knowledge bases are collections of information that your AI agents can access during conversations. Instead of hardcoding everything in instructions, you can upload documents, scrape websites, or provide structured data that the AI references automatically.Automatic Context
Relevant information is automatically injected into conversations. No manual retrieval needed.
Multiple Sources
Upload PDFs, scrape websites, or provide structured data. Mix and match sources.
Always Up-to-Date
Update knowledge bases anytime. Changes are immediately available to your agents.
Scalable
Handle large document sets. TopCalls automatically manages indexing and retrieval.
How Knowledge Bases Work
1. Create Knowledge Base
Upload documents, scrape websites, or provide text through the TopCalls dashboard. The content is indexed automatically.
2. Attach to Calls
When making a call, include
knowledge_base_ids in the request to give the agent access to specific knowledge bases.3. Automatic Retrieval
During the conversation, TopCalls automatically retrieves relevant information based on what the caller is asking about.
Creating Knowledge Bases
Knowledge bases are created and managed through the TopCalls dashboard. You can:- Upload files: PDFs, TXT, DOCX, or MD files
- Scrape websites: Provide URLs to automatically extract content
- Add text directly: Paste structured text like FAQs, product info, or support documentation
Using Knowledge Bases in Calls
Once created, attach knowledge bases when making API calls:Example: Customer Support Agent
Step 1: Create Knowledge Base
Through the dashboard, create a knowledge base with your support documentation:Step 2: Use in Calls
Best Practices
Do This
- Organize by topic: Create separate knowledge bases for different topics (products, pricing, support)
- Keep it updated: Regularly update knowledge bases with new information
- Use clear structure: Organize content with clear headers and sections
- Test thoroughly: Test knowledge base retrieval with sample questions
- Combine sources: Use multiple knowledge bases for comprehensive coverage
Avoid This
- Too much information: Keep knowledge bases focused and relevant
- Outdated content: Regularly review and update
- Vague content: Use clear, specific information
- Duplicate content: Avoid overlapping information across knowledge bases
Next Steps
Making Calls
Learn how to attach knowledge bases when making calls.
API Reference
See the complete API documentation.