Customization Workflows & reminders

Workflows & Reminders

Language: English · 简体中文

Turn repeatable engineering routines — weekly Wiki lints, nightly audits, release verification checklists, or structured triage — into declarative Agentic Workflows (/workflows) or lightweight conversational Reminders.

Workflow DAG

Visual DAG Editor (/workflows)

Open Work → Workflows to author, run, and inspect *.workflow.json DAGs.

The 5 Node Types

Node TypePurposeKey Behavior
startEntry point & inputsDeclares workflow parameters and initial artifact addresses.
agentDispatches an Agent RunTargets any agentId + optional model override; supports JSON outputSchema to enforce structured JSON output.
scriptSandboxed deterministic scriptRuns inside Linux bubblewrap or macOS sandbox-exec with no network, isolated PID namespace, and no access to dataDir or .env. Opt-in via WORKFLOW_SCRIPTS_ENABLED=1.
humanHuman-in-the-loop gate / formPauses execution (waiting_human) and renders a web approval or structured question form in both the execution trace and /today.
endTerminal stateMarks success or failure and captures final outputs.

Conditional Routing & Artifacts

  • JSON-Logic edges: branch dynamically on an agent node's structured output or a human node's form answers.
  • Frozen routing: outgoing edges evaluate once at node completion and freeze into CompletionRecord.routedTo — past executions never drift on replay.
  • Join semantics: converging paths use any-of join semantics.
  • Typed artifacts:// handoffs: pass reports, diffs, and JSON files between nodes cleanly.

Drafting via Side-Panel Chat (/workflow_design)

  1. Open any workflow editor and invoke /workflow_design in the embedded PA side-panel.
  2. The PA generates the DAG and validates it with parseWorkflow (the runtime's exact schema validator).
  3. Following Propose ≠ Save, the draft opens as an unsaved proposal on the canvas — review every node, edge, and cron trigger, then press Save (Ctrl+S / Cmd+S).

Cron Triggers & Live Executions

  • Attach UTC cron schedules in the Triggers panel (e.g. 0 3 * * 0 for Sundays at 03:00 UTC).
  • Watch node-by-node progress live over SSE on /workflows/<id>/executions/<executionId>, inspect node logs/outputs/artifacts, submit human forms inline, or cancel running executions cleanly.

Conversational Reminders (/reminder_manage)

For lightweight one-shot or recurring reminders scoped to a single chat thread, invoke /reminder_manage directly in /chat:

  • remind_me: "Remind me every Monday at 09:00 UTC to check open Requirements."
  • reminder_list: list active reminders in the current conversation.
  • reminder_cancel: cancel a scheduled reminder.