Skip to content
Step Types

Step Types

A step’s type field in workflow JSON is one of ten values. Five of them (sleep, wait_for_event, approval, sub_workflow, respond) are run by the engine with no worker. The others go to a worker as tasks.

typeRuns onPage
normal (default)WorkerNormal Steps
agent_loopWorker, repeatedAgent Loops
agentWorker, like normal. The step’s metadata carries agent settings for an agent SDK to read.Normal Steps
mapWorker, once per array itemMap Steps
plannerWorker, then the engine adds the generated stepsPlanner Steps
sleepEngineSleep and Timers
wait_for_eventEngineWait for Event
approvalEngine, completed by an API callApproval Gates
sub_workflowEngine, which starts a child runSub-Workflows
respondEngineRespond Steps

An unknown type is an error: workflow validate and workflow register report unknown step type.