CONCEPT · WORKFLOW
Workflow
A typed DAG of ops logic — trigger, condition, ai-decision, action — compiled from natural language.
What it is
A workflow is a directed acyclic graph of nodes. Four node types are enough for almost anything you'd build in Zapier or n8n plus the reasoning cases they can't express cleanly.
How you author one
Type a sentence in /workflows/new. The compiler (Gemini 3 Flash + Zod schema) emits a typed DAG you can edit visually. No node-by-node clicking.
How it runs
The engine walks the graph. When it reaches an ai-decision node, it calls the bound agent and pipes structured JSON into the next node. Every edge carries a typed payload.
Shape
| Field | Type | Note |
|---|---|---|
| nodes | Node[] | trigger | condition | ai-decision | action |
| edges | Edge[] | Typed data flow between nodes. |
| schedule | cron? | Optional recurrence (pg_cron on roadmap). |