Docs / Workflows / Chaining tasks

Chaining tasks

Chaining connects one scheduled duty to the next so multi-step work runs without you clicking each stage. Reliable pipelines use a single source of truth — usually ~/files/{pipeline-name}/state.json — plus explicit wiring in the dashboard. Recipe deploy sets both; manual workflows need you to design them. See workflows hub and recipe system.

Two ways to hand off

Use one pattern per pipeline segment — do not assume both fire for the same completion. Cycles in Run next links are rejected at save time.

Design a state file

Convention: ~/files/content-pipeline/state.json (replace the folder name with your pipeline). Keep JSON small:

Every duty prompt should name the state path, read it at start, save before exit, and append dated notes to a notes/ folder instead of overwriting history blindly.

Guardrails

When the next duty runs

Run next fires after a scheduled run completes with a normal finish (not when the provider filters or aborts mid-flight). Only one chain fire per duty execution — duplicate webhook events are deduped. If your account is out of AI credits, continuation turns on an already-running chain may soft-stop with a limit error; the first turn of a cron tick still runs — see limits FAQ.

Team Task Board

The board visualizes static Run next chains (LLM-driven trigger_duty links are not drawn on the graph):

The Workflows tab loads the same pipeline graph, run history, optional state.json preview, and health hints.

When a chain stalls

  1. Open the duty thread — read the last tool trace and whether state was saved.
  2. Inspect ~/files/... in the dashboard Files tab — is the expected output missing?
  3. Check state.json — is any row stuck in generating or publishing?
  4. Fix or skip the row (set skipped), delete duplicate state files, re-run manually once before trusting cron again.

Deeper fixes: scheduling troubleshooting · general troubleshooting · status.

Related: Threads & memory (dedicated thread per duty) · File editing · File management