Skip to main content
Workflows are in preview and not yet available in the product.
Move multi-step orchestration off your server and into Deck. Instead of polling for results, parsing output, deciding what to do next, and firing off another request, define the entire sequence as a workflow. Deck runs it end-to-end with built-in branching, looping, and failure recovery. No queues to wire. No schedulers to tune.

How workflows fit in

Workflows coordinate tasks across one or more agents. Each step specifies an agent and task. When you run a workflow, you pass a connection for each agent involved, and Deck handles the rest. A single workflow can pull data from one source and act on it in another.

Step types

TypeWhat it does
TaskRuns a task using the connection mapped to its agent
BranchEvaluates a condition and runs then or else steps
SleepPauses for a specified duration
Steps execute in order. Output from earlier steps flows into later steps using {{ }} templating, so data moves through the workflow without round-trips to your server.

Workflow run statuses

When you run a workflow, Deck creates a workflow run (wrun_) that tracks every step.
StatusMeaning
queuedWaiting to start
runningExecuting a step
sleepingPaused between steps
interaction_requiredA step needs user input
completedAll steps finished
failedA step failed and the workflow stopped
canceledYou canceled the workflow

Failure behavior

OptionWhat happens
stopThe workflow fails immediately (default)
continueSkip the failed step and continue. Dependents are also skipped.
retryRetry the failed step before stopping

When to use workflows

If you’re chaining API calls, polling for completion, or writing retry logic on your server, that’s a workflow. Define it once, and let Deck handle the rest. If you only need a single task, use the task run endpoint directly.

Deep dives