Skip to main content

Agent Workflow

Early Alpha Version

AI Agents are in early alpha. Node interfaces, behaviors, and APIs are subject to change.

The Agent Workflow node lets you build step-based pipelines that chain agents and tools together. Steps can run sequentially, in parallel, or conditionally based on previous results.

Inputs

InputTypeDefaultDescription
Workflow NameStringMy WorkflowHuman-readable name for the workflow
DescriptionString (multiline)What this workflow does
StepsArrayArray of step definitions (see below)
Execution ModeEnumSequentialHow steps run: Sequential, Parallel, or Conditional
Input DataObjectInitial data passed to the first step
ExecuteSignalTrigger to start the workflow
Max RetriesNumber1Number of retry attempts per step on failure
TimeoutNumber60000Maximum time (ms) before a step times out

Outputs

OutputTypeDescription
ResultObjectFinal result from the last step (or combined results)
Step ResultsObjectResults keyed by step name
StatusStringCurrent workflow status (idle, running, completed, failed)
Current StepStringName of the currently executing step
CompletedSignalFires when the entire workflow finishes
Step CompletedSignalFires after each individual step finishes
ErrorStringError message if the workflow failed
ProgressNumberCompletion percentage (0–1)

Execution Modes

Sequential (one after another)

Steps run in order. Each step receives the output of the previous step as input.

Step 1 → Step 2 → Step 3 → Result

Parallel (all at once)

All steps run simultaneously. Results are combined into a single object keyed by step name.

Step 1 ─┐
Step 2 ─┤→ Combined Result
Step 3 ─┘

Conditional (based on results)

Steps include conditions. Only steps whose conditions are met will execute.

Step Definitions

Each step in the Steps array is an object with:

PropertyTypeDescription
nameStringUnique name for this step
agentObjectThe agent instance to use for this step
messageStringThe prompt/instruction for this step
conditionString(Conditional mode only) Expression that must be truthy to execute

Usage Tips

  • Use Sequential mode for multi-step reasoning: "Research → Analyze → Summarize"
  • Use Parallel mode when steps are independent: "Translate to Spanish + French + German"
  • The Progress output is useful for showing a progress bar during long workflows
  • Connect Step Completed to update the UI after each step finishes
  • Max Retries helps with transient API errors — the step will retry before failing