Skip to main content
A workflow file contains declarations. The executor validates the declarations, builds a dependency graph, runs the graph, and returns the output block as JSON.

Common declaration order

A readable workflow usually uses this order:
  1. input
  2. secrets
  3. provider
  4. model
  5. schema
  6. mcp and imports
  7. dynamic
  8. agent
  9. output
The order is for readability. Dependencies are determined by references.

Small workflow

Final output

The final output block is an object expression. It determines the JSON shape returned by /execute.