Collections
Documents are organized into collections — folders that group related content together. For example, you might have collections for “Product Documentation”, “Company Policies”, or “API Reference”. Each collection can be configured to restrict access to specific agents, or left open for all agents to search.Documents
Uploading Documents
Click Upload Files in a collection to add files. Supported formats:| Format | Extension |
|---|---|
.pdf | |
| Markdown | .md |
| Plain text | .txt |
| Word | .docx |
Processing Pipeline
When a document is uploaded or created, it goes through an automatic processing pipeline:- Extracting — text content is extracted from the file
- Chunking — content is split into semantic chunks
- Embedding — chunks are converted to vector embeddings for search
How Agents Use Documents
Agents automatically search your files using thesearch_knowledge tool when they need information. This uses semantic similarity (vector search) to find relevant chunks across all collections the agent has access to.
No configuration is needed to enable search — if a document is in a collection the agent can access, it’s searchable.
Bookmarks
Bookmarks let you pin specific documents so they appear directly in an agent’s system prompt. This is useful for content the agent should always be aware of, rather than discovering through search.How Bookmarks Work
When you bookmark a document for an agent:- The document’s title and usage description appear in the agent’s system prompt
- The agent uses the
read_documenttool to access the full content when needed - The agent knows the document exists and what it’s for, without loading the full content into every request
When to Use Bookmarks
Bookmarks are ideal for:- Instructions and SOPs — step-by-step procedures the agent should follow
- Policies — refund policies, escalation rules, compliance guidelines
- Reference material — pricing tables, product specs, FAQ documents
- Templates — response templates the agent should use in specific situations
Bookmark Modes
Each document can be bookmarked with one of three modes:| Mode | Behavior |
|---|---|
| Off | Not bookmarked. Only discoverable through search. |
| All agents | Bookmarked for every agent in the organization. |
| Specific agents | Bookmarked only for selected agents. |
Collection Agent Access
By default, all agents can search all collections. You can restrict a collection to specific agents if you want to limit which agents can find its documents through search. This is separate from bookmarks — a bookmarked document is always available to the agents it’s bookmarked for, regardless of collection access settings.Code Execution
Every agent has access toexecute_code, a tool that runs Python in a restricted sandbox. This is useful for calling external APIs via allowed domains, processing data, and performing calculations.
The sandbox:
- Has no
import— standard library modules are not available - Uses
data = await fetch(url)for HTTP GET requests to allowed domains - Requires assigning a JSON-serializable value to
result - Has access to a
contextdict withorganization_id,agent_id, andrun_id - Automatically injects authentication headers configured on allowed domains
execute_code for specific tasks (e.g., “Use execute_code to look up orders from our API”).
Best Practices
Organize by Topic
Group related documents into collections. This makes it easier to manage access and keeps your knowledge base organized.
Bookmark Sparingly
Only bookmark documents the agent truly needs to know about at all times. Too many bookmarks add noise to the system prompt.
Write Clear Usage Descriptions
When bookmarking, write a specific usage description. “Use this when customers ask about returns” is better than “Return policy”.
Keep Documents Focused
Smaller, focused documents search better than large catch-all documents. Split broad content into separate documents by topic.