Knowledge base
Give your agent facts by uploading text knowledge.
Upload
POST /v1/files
{
"filename": "faq.txt",
"content": "Q: opening hours? A: We are open 9-17.",
"agent_id": 3
}
- Max 500 KB per file. Formats: .txt, .md, .csv, .json.
- `agent_id` optional — attach immediately or later from the dashboard.
How the agent uses it
All files assigned to an agent are injected into the system prompt as a KNOWLEDGE BASE section. The agent treats them as its facts. For very large libraries, split into topic files and assign only what is relevant.
Manage
- `GET /v1/files` — list with sizes and assignments
- `DELETE /v1/files/{id}` — delete