Skip to content

Workflows

A workflow is a YAML file that defines a sequence of steps for FlowR to execute.

namespace: a3t
name: my-workflow
version: "1.0.0"
title: "Human-readable title"
description: "What this workflow does"
enabled: true
tags: [tag1, tag2]
steps:
- name: step-1
type: set
config:
key: value
export.as: "."
- name: step-2
type: call:http
resource: my-api
config:
method: GET
endpoint:
uri: https://example.com
then: end
FieldRequiredDescription
nameYesUnique step identifier
typeYesTask type (e.g. set, call:http, call:llm)
configYesTask-specific configuration
resourceNoResource reference (namespace/name)
thenNoNext step name, or end to stop
export.asNojq expression to merge output into context (. = merge all)
input.fromNojq expression to transform input before step runs
output.asNojq expression to transform step output
checkpointNoIf true, saves state for resumption
enabledNoIf false, step is skipped

Steps execute sequentially by default. Use then to jump to a named step or end to terminate.

If no then is specified, execution continues to the next step in the list.

Workflows are asyncexecute_flow returns an instance ID immediately. Poll get_execution_status for the result.