构建并执行带条件逻辑的多步工作流,将 API 调用、代理动作和 shell 命令链接为序列,并支持 if/else 分支。
Install: clawhub install workflow-builder-lite
Plan, save, and execute multi-step workflows with conditional logic.
Detect from user's message language. Default: English.
User: "Lag en workflow: hent vær → hvis regn → send meg melding"
Agent:
text
Workflow: weather-alert 1. ⛅ Hent vær (web_fetch wttr.in/Oslo?format=j1) 2. 🔀 Sjekk: Er det regn? → Ja: 3. 📨 Send melding "Ta paraply!" → Nei: StopGodkjent? (ja/nei/rediger)
"Legg til steg: hent data fra API X" "Legg til betingelse: hvis status != 200, stopp" "Slett steg 2"
When user approves a workflow, save to memory/workflows/{name}.md:
markdown
# Workflow: {name}
## Steps
1. [type] description
2. [type] description
→ condition: if X then step 3, else stop
## Created
YYYY-MM-DDTHH:mm+ZZ:ZZ
## Last Run
Never
When user says "kjør workflow {name}":
Step types and how to execute:
TypeExecution MethodRequires ConfirmationAPI callweb_fetch or agent built-in HTTPNo (after workflow approval)Agent actionBuilt-in tools (message, browser, etc.)No (after workflow approval)Shell commandexec toolYes — show command, ask each timeFile writewrite toolYes — show content, ask each time
Shell/file steps require per-step confirmation. Show the exact command/content and wait for Y/N.
text
Running: weather-alert
[✅] Step 1: Hent vær — 15°C, delvis skyet
[⏭️] Step 2: Sjekk regn — nei
[⬜] Step 3: (skipped)
Done. No rain today.
User saysAction"lag workflow"Start building"vis workflows"List saved workflows"kjør {name}"Execute saved workflow"rediger {name}"Modify steps
memory/workflows/ for reusememory/workflows/ if it doesn't existInstall the full suite:
bash
clawhub install workflow-builder-lite smart-api-connector context-brief cross-check