Skip to main content
A play runs a workflow over a data model, emitting a run for each row that changes. Where a tool is triggered on demand, a play continuously watches its model and fires when matching changes occur. You define one with definePlay.

Define a play

plays/onboarding.ts
The per-row workflow is deployed as the play’s release. changeKinds and schedule control when runs are created. schedule accepts one of:
realtime and watch are distinct: realtime reacts to row changes in the model, while watch follows an externally managed schedule.

Deploy and trigger

Plays always use batch create, never run createrun create on a play’s workflow returns a playNotCompatible error.

Fallbacks and health

Add fallback paths so a failed step doesn’t fail the whole run (notify, try an alternative provider, write defaults, or skip and continue). Watch success rate and set batch-health alerts. See Triggering for schedules and enrolment, and Monitoring for records and metrics.

Using the UI

See Using the UI for the visual play editor — publishing, manual enrolment, re-running failed runs, and fallback configuration.