clawflow-inbox-triage
Installation
SKILL.md
ClawFlow inbox triage
This is a concrete example of how to think about ClawFlow without turning the core runtime into a DSL.
Goal
Triage inbox items with one owner flow:
- business → post to Slack and wait for reply
- personal → notify the owner now
- everything else → keep for end-of-day summary
Pattern
- Create one flow for the inbox batch.
- Run one detached task to classify new items.
- Resume the flow when classification completes.
- Route each item in the calling logic.
- Persist only the summary bucket and the current wait target.
Suggested flow outputs
business_threadspersonal_itemseod_summary
Minimal runtime calls
const flow = createFlow({
ownerSessionKey,
goal: "triage inbox",
});
runTaskInFlow({
flowId: flow.flowId,
runtime: "acp",
task: "Classify inbox messages",
currentStep: "wait_for_classification",
});
resumeFlow({
flowId: flow.flowId,
currentStep: "route_items",
});
appendFlowOutput({
flowId: flow.flowId,
key: "eod_summary",
value: { subject: "Newsletter", route: "later" },
});
Related example
skills/clawflow/examples/inbox-triage.lobster