A library of complete, runnable workflows to read and adapt. Each ships as a .js file in
examples/workflows/ and with the Pro skill; register any of them with
flowctl def create --file <file> and start it with flowctl run start.
Building blocks
Small workflows that each demonstrate one construct — the fastest way to see a feature in isolation:
| Example | Shows |
|---|---|
hello.js | The minimal workflow: one step, an apiTrigger, next: "end". |
simple-approval.js | A form with a JSON schema, branch() routing, a query. |
multi-step.js | Sequential steps and a signal pause/resume. |
branch-router.js | A pure routing step (and why it still needs a handler). |
form-loop.js | Looping back to a form on invalid input, with a max-attempt escape. |
foreach-batch.js | Iterating an array variable with foreach. |
parallel-fanout.js | Running steps concurrently and joining. |
webhook-order.js | Parking on a webhook and branching on the callback. |
retry-http.js | A connector with retryPolicy + onError. |
http-connector-test.js | The generic-HTTP envelope (GET + POST). |
llm-prompt.js | Form input → LLM connector → store. |
scheduled-report.js | A scheduleTrigger with a collision policy. |
composio-gmail.js | The Composio flat-args envelope. |
neon-mcp.js | An MCP connector over remote HTTP (Neon). |
filesystem-write.js | An MCP connector over a spawned stdio server. |
agent-triage.js | An agent() step with a typed, schema-validated result. |
invoice-approval.js | Multi-level form approval with a result reducer. |
order-processing.js | The kitchen sink: retries, loop, foreach, parallel, webhook, errors, templates. |
Real-world recipes
End-to-end, domain-shaped workflows you can adapt to production scenarios. Each has a walkthrough (problem → diagram → annotated workflow → how to run → variations) and a runnable source file:
| Recipe | Sketch |
|---|---|
| Nightly DB report → email | scheduleTrigger → query a database → LLM summarize → email the summary. |
| Incident escalation | alert → agent() classify severity → branch → parallel notify → human ack. |
| Lead enrichment & routing | new-lead trigger → HTTP enrich → LLM score → branch route → email. |
| Customer refund approval | request → threshold branch → multi-level form approval → payment connector. |
With the flowwork skill installed, you can describe a workflow in plain language and have Claude Code scaffold it from the closest recipe — then run and drive it over channels.