Compose flows from smaller flows, push slow work to the background, finish a request with the answer you want, and leave a trail in logs and metrics. This page documents 6 blocks. For how flows work, see Flows and the flow editor. Values in settings can use templates such as {{ input.id }} and {{ steps.load.output.email }}; see Block reference overview.

Call flow

Key: flow.call Calls another flow inline and continues with its result. Continues to: next

Queue flow

Key: queue.flow Runs another flow as a background job. Continues to: next

Log

Key: log.write Writes a line to the run’s log (visible in Studio). Continues to: next

Metric

Key: metric.increment Increments a named metric. Continues to: next

Fail

Key: error.raise Fails the run with an HTTP status and message. Ends the run: nothing follows this block.

Respond

Key: response.return Answers the HTTP request that triggered the run, and ends it. Ends the run: nothing follows this block.