Open source file-system and knowledge based agent template. Build AI agents that stay up to date with your knowledge base
Add Source
Guide for adding a new knowledge source to the Knowledge Agent Template instance.
Via Admin UI (recommended)
- Navigate to
/admin - Click Add source
- Fill in the fields:
GitHub Source
| Field | Required | Description |
|---|---|---|
id |
Yes | Unique identifier (e.g. my-docs) |
label |
Yes | Display name (e.g. My Docs) |
repo |
Yes | GitHub repository in owner/repo format |
branch |
No | Branch to fetch (default: main) |
contentPath |
No | Path to content directory (default: docs) |
outputPath |
No | Output directory in snapshot (default: id) |
readmeOnly |
No | Only fetch README.md (default: false) |
YouTube Source
| Field | Required | Description |
|---|---|---|
id |
Yes | Unique identifier |
label |
Yes | Display name |
channelId |
Yes | YouTube channel ID (starts with UC) |
handle |
No | YouTube handle (e.g. @MyChannel) |
maxVideos |
No | Maximum videos to fetch (default: 50) |
- Click Sync to pull content into the knowledge base
Via API
# Create a GitHub source
curl -X POST <your-url>/api/sources \
-H "Authorization: Bearer <admin-api-key>" \
-H "Content-Type: application/json" \
-d '{
"id": "my-docs",
"type": "github",
"label": "My Docs",
"repo": "org/docs-repo",
"contentPath": "docs"
}'
# Trigger sync
curl -X POST <your-url>/api/sync \
-H "Authorization: Bearer <admin-api-key>"
Notes
- After adding sources, always trigger a sync to pull content
- YouTube sources require
NUXT_YOUTUBE_API_KEYto be set - Sources are stored in SQLite and can be managed from the admin UI at any time