Notion
Sync entire workspaces or specific pages. Auto-updates on changes.
Your agent is only as good as its knowledge. This guide teaches you how to structure, organize, and maintain knowledge collections for optimal performance.
There are two ways to give an agent a file, for two different jobs:
Rule of thumb: one file, one task → attach it. Information the agent should “just know” going forward → add it to Knowledge.
From the chat composer’s + menu you can:
drive.google.com or docs.google.com link into the composer and the file is attached for you.Organize your knowledge in layers:
Problem: Outdated information leads to wrong answers
Solution: Set up automatic syncing
# Sync schedulesync: frequency: daily time: 02:00 UTC sources: - notion - confluence - githubBad Structure:
/docs - everything.md (10,000 lines)Good Structure:
/docs /getting-started - quickstart.md - installation.md /features - feature-a.md - feature-b.md /troubleshooting - common-issues.md - error-codes.mdAgents use headings to understand content structure.
Bad:
## Stuff
Some information about various things.Good:
## How to Reset Your Password
Step-by-step guide:1. Click "Forgot Password"2. Enter your email3. Check your inboxWithout Examples:
Use the API to create users.With Examples:
## Creating Users via API
Example request:\`\`\`bashcurl -X POST https://api.example.com/users \ -H "Authorization: Bearer TOKEN" \ -d '{"name": "John", "email": "john@example.com"}'\`\`\`
Example response:\`\`\`json{ "id": "user_123", "name": "John", "email": "john@example.com"}\`\`\`Duplicate information confuses agents.
Check for:
Solution: Use a single source of truth for each topic.
For each document in your knowledge:
Break large documents into logical sections:
# Product Overview
## What is it?[Brief description]
## Key Features[Feature list]
## Use Cases[Real-world examples]
## Getting Started[Quick start guide]Each section can be retrieved independently.
Add metadata to help agents find relevant content:
---title: Password Reset Guidecategory: troubleshootingtags: [password, login, security]difficulty: beginnerlast_updated: 2026-04-01---Link related topics:
For more information, see:- [Roles & Permissions](/account/roles/)- [Security](/security/)- [API Authentication](/api/authentication/)Problem: 10,000-page knowledge overwhelms the agent
Solution: Start with essentials, add more as needed
Priority Order:
Problem: Wall of text without headings or formatting
Solution: Use clear structure with headings, lists, and examples
Problem: Information from 2 years ago that’s no longer accurate
Solution: Regular audits and automatic sync
Problem: “Click the button” (which button?)
Solution: Be specific and include screenshots
Track these metrics to optimize your knowledge:
| Metric | Target | How to Improve |
|---|---|---|
| Answer Accuracy | > 90% | Add more examples, clarify ambiguous content |
| Retrieval Speed | < 1s | Reduce document size, improve structure |
| Coverage | > 80% | Add content for unanswered questions |
| Freshness | < 7 days | Enable automatic sync |
Notion
Sync entire workspaces or specific pages. Auto-updates on changes.
Confluence
Connect spaces and pages. Respects permissions.
Google Drive
Sync folders and documents. Supports Docs, Sheets, Slides.
GitHub
Index README files, wikis, and markdown docs.
File Upload
Upload PDF, DOCX, TXT, MD files directly.
Web Crawl
Crawl your website or documentation site.
Track changes to your knowledge:
# Tag versionsv1.0 - Initial launchv1.1 - Added troubleshooting sectionv1.2 - Updated API examplesTest different content structures:
Improve based on usage: