Docs Processes

Processes

A Process is a structured workflow — a directed graph of steps that may include agent runs, human approvals, tool calls, and conditional branches. Processes are designed for reproducibility: the same inputs always produce the same execution path.

Step types

TypeDescription
agentRun a specific agent with mapped inputs
humanPause for manual input or approval
branchConditional routing based on a previous step's output
mergeCombine outputs from parallel branches
loopRepeat a step until a condition is met

Event sourcing

FaynOS records every step transition as an event. This means every Process run is fully replayable. If a step fails midway, you can resume from the last successful checkpoint rather than starting over.

HITL (Human-in-the-Loop)

Any step of type human pauses the process and surfaces a form in the FaynOS UI. The process does not proceed until the human submits the form. HITL steps can be used for data entry, document review, approval gates, or any decision that should not be automated.