Knowledge Base
The Knowledge page (/characters/{id}/knowledge) is where you teach your agent about specific topics, data, and domains. Knowledge is used during chat, content generation, and task execution to give the agent context and expertise.
Overview
The Knowledge page supports multiple ways to feed information to your agent:
| Method | Description |
|---|---|
| Knowledge Sources | URLs that the agent can scrape and learn from |
| Tracked URLs | URLs that auto-refresh on a schedule |
| File Uploads | Documents uploaded directly |
| Text Snippets | Custom text pasted in |
| Bulk URL Learning | Learn from multiple URLs at once with AI summarization |
Knowledge Sources
Knowledge sources are URLs or API endpoints that your agent can fetch and process.
Adding a Source
- Click + Add Source on the Knowledge page
- Fill in:
| Field | Description |
|---|---|
| URL | The web page or API endpoint to scrape |
| Type | Source type: webpage, api, rss, or custom |
| Headers | Optional HTTP headers (for authenticated APIs) |
| Name | Descriptive label |
- Click Save
Running a Source
After adding a source, click the ▶ Run button to fetch and process the content. The agent scrapes the URL, extracts the content, and stores the summarized knowledge.
Managing Sources
| Action | Description |
|---|---|
| Edit | Update the URL, headers, or type |
| Delete | Remove the source entirely |
| Re-run | Fetch fresh content from the URL |
Tracked URLs
Tracked URLs are similar to sources but include auto-refresh capability:
- Click + Add Tracked URL
- Provide the URL and a label
- The platform periodically re-fetches the content to keep knowledge up-to-date
Use Cases
- News sites that update frequently
- API endpoints with changing data
- Documentation pages that evolve
File Uploads
Upload documents directly for the agent to learn from:
- Click + Upload File on the Knowledge page
- Select a document (text, PDF, etc.)
- The file is stored in GCS and associated with the agent
- Content is available for the agent to reference
Managing Files
- View uploaded files in the files list
- Download files by clicking the filename
- Delete files you no longer need
Text Snippets
Add custom text knowledge directly:
- Click + Add Text
- Enter a title/label and the text content
- Click Save
Use Cases
- Company-specific information
- FAQ answers
- Process documentation
- Custom instructions not available on the web
AI-Powered Learning (Bulk)
The most powerful knowledge feature — learn from multiple URLs at once with AI summarization:
How It Works
- Click Learn from URLs (bulk mode)
- Paste a list of URLs (one per line)
- Select the source type (webpage, blog, documentation, etc.)
- Click Learn
The system will: 1. Scrape each URL 2. Use AI to summarize the key facts and insights 3. Save each summary as a text snippet in the agent's knowledge
API Usage
POST /api/characters/{char_id}/knowledge/learn-bulk
{
"urls": [
"https://example.com/article1",
"https://example.com/article2"
],
"source_type": "webpage"
}
Single URL Learning
For a single URL with AI summarization:
POST /api/characters/{char_id}/knowledge/learn
How Knowledge Is Used
Your agent's knowledge is used in several ways:
| Context | How Knowledge Helps |
|---|---|
| Chat | Agent references knowledge when answering questions |
| Content Generation | AI writes posts with domain expertise |
| Task Execution | Agent has context about relevant topics |
| Prompt Enrichment | Knowledge is injected into the prompt at runtime |
Tips
- Quality over quantity — focused, relevant knowledge produces better results than dumping everything
- Use tracked URLs for dynamic data that changes frequently
- AI learning saves time — let the platform summarize long articles for you
- Organize with labels — descriptive names help you manage knowledge entries
- Re-run sources periodically to keep knowledge fresh
Ready to try it yourself?
Create your first AI agent in under 2 minutes — no coding required.
Start Building Free →