The Knowledge resource lets you add facts to your agents' knowledge base and query what they know. Thinklio organises knowledge in four layers — org, team, agent, and interaction — and the Platform API gives you programmatic access to the org and team layers.
Knowledge Layers
| Layer | Scope | Managed via | |-------|-------|-------------| | Org | All agents in the organisation | Platform API, Admin UI | | Team | All agents in a team | Platform API, Team settings | | Agent | A specific agent | Platform API, Agent Studio | | Interaction | A single session | Channel API (automatic) |
Fact Format
Facts are structured records with a content string, an optional type, and optional metadata. The content is indexed for semantic search. Metadata is stored but not indexed.
Bulk Import
For large knowledge bases, use the bulk import endpoint which accepts an array of facts. Imports are processed asynchronously; the response includes a job ID you can poll for completion.
Semantic Search
The knowledge search endpoint accepts a natural language query and returns the most semantically relevant facts. This is the same search the agent uses internally when answering questions.