Docs menuWorkflows and Watchers
Docs/Build

Workflows and Watchers

Define repeatable agent work with cron triggers, data-change triggers, and metric watchers.

Workflow shape

A workflow definition stores the goal, system prompt overlay, steps, enabled state, owner, daily run budget, output contract, and optional trigger configuration. Workflow definitions are also best-effort serialized into config version control as markdown.

FieldMeaning
goalThe durable purpose of the workflow
stepsOrdered instructions the agent should follow
cron / cron_timezoneScheduled execution settings
daily_run_budgetA guardrail on repeated runs
output_contractExpected output shape for downstream review

Trigger types

TriggerUse it forImportant fields
cronScheduled recurring workcron, cron_timezone, cron_enabled
whenData-change driven runstable, where, select, primary_key, version_column, idempotency_key_template
subscriptionSource observations and fan-out controlled by subscription settingsmax_concurrent_runs, debounce, dedupe and source write accounting
watchMetric thresholds and change detectionquery, value_path, op, threshold, cadence_seconds, debounce_seconds
manualOperator-triggered runs from the UI or control planethread_id, trigger payload, and actor context

Watchers

Watchers run GraphJin queries on a cadence, extract a dotted value path, compare the result, and enqueue a workflow fire when the condition is met. Cadence is clamped to at least 60 seconds, and debounce defaults to 3600 seconds.

OperatorMeaning
gtValue is greater than the threshold
gteValue is greater than or equal to the threshold
ltValue is less than the threshold
lteValue is less than or equal to the threshold
eqValue equals the threshold
neValue does not equal the threshold
changedValue differs from the last observed value