Skip to content

CAFF Overview

CAFF (Cavos Agents Flow Format) is a JSON format for defining portable agent flow definitions. Every agent’s behavior is described as a directed graph of nodes connected by edges.

CAFF flows are:

  • Portable — Export and import between environments
  • Validated — Schema-validated with Zod at build and runtime
  • Visual — Rendered in the drag-and-drop flow builder
  • Executable — Directly executed by the flow runtime engine
$schema: https://cavos.org/schemas/flow/v1.json
version: 1.0.0
flow-builder (visual editor)
flow-schema (Zod validation)
flow-runtime (execution engine)
CategoryTypesPurpose
Corestart, agent, classify, end, note, agent_ref, agent_pool, map_reduceFlow structure and LLM execution
Toolsfile_search, http_api, code_executor, image_generatorExternal integrations
Logicif_else, while, user_approval, set_state, parallel_fork, parallel_joinFlow control
Guardrailsguardrail (pii, jailbreak, content)Safety checks
Triggerstrigger (MENTION, KEYWORD, SCHEDULE, WEBHOOK, MANUAL)Flow activation