| Example | Description |
|---|---|
| Save Conditional Workflow Steps | Save a workflow whose Condition evaluator is a plain function, then reload it from Postgres by registering that function in a Registry. |
| Save Custom Executor Workflow Steps | Register a custom executor function in a Registry so a saved workflow’s non-agent step resolves on load from Postgres. |
| Save Loop Workflow Steps | Persist a Loop step whose end_condition function is restored from a Registry, iterating HackerNews and web research up to 3 times before summarizing. |
| Save Parallel Workflow Steps | Save a Parallel research pipeline (HackerNews plus web) to Postgres and reload it by ID without a Registry, since all steps are agent-backed. |
| Save Router Workflow Steps | Persist a Router whose keyword-based selector function is restored from a Registry, dispatching topics to HackerNews or web research before summarizing. |
| Registry Agents in Workflow | Expose code-defined agents with stable IDs through the AgentOS /registry endpoint so UI-built workflows resolve them by ID instead of loading them from the database. |
| Save HITL Condition, Loop, and Router Steps | Round-trip requires_confirmation, on_reject, and route-selection settings on Condition, Loop, and Router through workflow save/load, then drive the pauses interactively. |
| Save HITL Confirmation Workflow Steps | Save a workflow whose ProcessData step requires confirmation, reload it via get_workflow_by_id with a Registry, and confirm or skip the paused step at run time. |
| Save HITL User Input Workflow Steps | Persist a workflow whose step declares a UserInputField schema (tone, length, include_examples), reload it from Postgres, and fill the paused step’s fields interactively. |
Workflows
Workflows
Examples for saving and loading workflows with advanced step types.