Knowledge Base Overview
How to add and manage knowledge sources for your AI agent
Knowledge Base Overview#
Your agent's knowledge base is the foundation of its intelligence. The more relevant content you provide, the better your agent can answer questions.
Source Types#
AlonChat supports 5 types of knowledge sources:
| Type | Description | Best For |
|---|---|---|
| Documents | Upload PDF, Word, Excel, CSV, or Markdown files | Product manuals, policies, guides |
| Text | Paste text directly | Quick FAQs, announcements, policies |
| Q&A | Add specific question-answer pairs | Common customer questions |
| Website | Crawl and import website content | Help centers, documentation |
| Conversations | Import past chat history | Learning from real interactions |
Adding Sources#
Documents#
- Go to Knowledge Base in your agent dashboard
- Click Add Source → File
- Upload your file (max 10MB per file)
- Click Add to queue for processing
Supported formats: PDF, Word (.docx), Excel (.xlsx), CSV, Markdown
Text#
- Click Add Source → Text
- Enter a name (e.g., "Pricing Policy")
- Paste your content
- Click Add
Q&A Pairs#
- Click Add Source → Q&A
- Enter a question and its answer
- Optionally add an image
- Repeat for more pairs
Website#
- Click Add Source → Website
- Enter your website URL
- Configure crawl settings:
- Maximum pages to crawl
- URL patterns to include/exclude
- Click Start Crawl
Conversations (Facebook)#
- Export your Facebook Messenger data
- Click Add Source → Import Conversations
- Upload the exported ZIP file
- Select conversations to import
Training Your Agent#
After adding sources, you need to train your agent:
- Click the Train button in your dashboard
- Wait for processing to complete (usually 30-60 seconds)
- Your agent is now ready to answer questions
What happens during training:
- Content is split into smaller pieces
- Each piece is analyzed for meaning
- An index is created for fast retrieval
Source Status#
| Status | What It Means |
|---|---|
| New | Added, waiting to be trained |
| Training | Currently being processed |
| Ready | Successfully trained and active |
| Error | Something went wrong (check the error message) |
Google Drive Integration#
Connect Google Drive to sync files automatically:
- Go to Connections → Google Drive
- Authorize access
- Select files to link
- Files will sync when you train
Changes made to linked files in Google Drive are detected automatically.
Best Practices#
Do:
- Add specific, relevant content
- Use Q&A pairs for common questions
- Keep content up-to-date
- Train after making changes
Don't:
- Upload irrelevant documents
- Add duplicate content
- Forget to train after changes
Next Steps#
- File Sources — Detailed file upload guide
- Website Sources — Website crawling guide
- Training Your Agent — Training best practices