Clawflows — Workflow Orchestration
Build and run multi-step automated workflows.
Workflow Definition
Define workflows as a sequence of steps:
Workflow: {name}
Trigger: {manual | schedule | event}
Steps:
1. {action} → store result as {variable}
2. If {condition}: {action}
3. For each {item} in {list}: {action}
4. {final action} using {variable}
Examples
Daily Summary Workflow
- Fetch unread emails → store as
emails - Fetch calendar events for today → store as
events - Fetch open GitHub issues assigned to me → store as
issues - Summarize all into a daily briefing
Deploy Workflow
- Run tests → store result as
test_result - If tests pass: build project
- If build succeeds: deploy to staging
- Run smoke tests on staging
- If smoke tests pass: deploy to production
Flow Control
- Sequential: Steps run one after another
- Conditional:
If {condition}/Else - Loop:
For each {item} in {list} - Parallel:
Run simultaneously: step A, step B - Error handling:
On error: {fallback action}
Guidelines
- Keep workflows focused — one workflow per goal
- Always include error handling for critical steps
- Store intermediate results in named variables
- Test workflows with dry runs before automating