The Platform API

Flow: Document Context for Agent

Manage your videos, ask questions, and build applications with the Platform API. Explore the operations below for request details, responses, and examples.

Flow: Document Context for Agent

1

Upload reference document

POST /projects/:projectId/documents with status: "available"

2

Mark as "included" to inject into agent prompt

PUT /projects/:projectId/documents/:docId with { "status": "included" } — triggers auto-compilation

3

Agent now has document context

Included docs are always taken into account. Available docs are searchable on demand.

Document states and agent access:

StatusAlways UsedLooked Up When NeededUse Case
availableNoYesLarge reference docs, manuals — agent searches on demand
includedYesYesPolicies, instructions — always visible to agent
archivedNoNoDisabled, not visible to agent at all