Example ClawFlow authoring pattern for inbox triage. Use when messages need different treatment based on intent, with some routes notifying immediately, some waiting on outside answers, and others rolling into a later summary.
This is a concrete example of how to think about ClawFlow without turning the core runtime into a DSL.
Triage inbox items with one owner flow:
business_threadspersonal_itemseod_summaryconst 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" },
});
skills/clawflow/examples/inbox-triage.lobster