What is a workflow?
A workflow is a named, ordered sequence of steps. Each step references an agent ID and optional configuration. When you execute a workflow, Agent Manager runs each step in order, feeding the output of one step as the input to the next. The state of every run is persisted to the database, so workflows survive restarts and can be resumed after a human approval pause.Content pipelines
Research a topic with
web_agent, summarize with procurator_assistant, then draft a post.Research flows
Gather data across multiple sources, analyze findings, and produce a structured report.
Data processing
Extract, transform, and validate data across agents with different tool sets.
Creating a workflow
WorkflowDTO):
string
required
A human-readable name for the workflow.
string
Optional description of what the workflow does.
Adding steps
After creating a workflow, add steps to define what each agent should do. Steps execute in the order they are added (bystepOrder).
WorkflowStepDTO):
string
required
The ID of the agent to invoke for this step.
string
required
The prompt or instruction sent to the agent for this step.
number
The position of this step in the sequence, starting from 1. Steps execute in ascending order.
1
Step 1: Search
2
Step 2: Summarize
3
Step 3: Draft
Executing a workflow
Trigger an asynchronous run of the workflow:string
required
The initial input passed to the first step.
string
Optional session ID for context continuity. A new session is created if omitted.
202 Accepted:
The workflow runs asynchronously. The
jobId in the response is an internal queue job identifier. Use the workflow runs endpoint (below) to track execution progress by workflowId.Checking run status
List all historical runs for a workflow, newest first:?page=0&size=20.
Run response fields:
string
Unique identifier for this workflow run.
string
ID of the parent workflow.
string
The session used for this run.
string
Current run status:
RUNNING, COMPLETED, FAILED, or PAUSED.number
The step number currently being executed (or last executed if the run is paused or complete).
number
Total elapsed time in milliseconds (computed from
createdAt to updatedAt).string
ISO 8601 timestamp when the run was created.
string
ISO 8601 timestamp of the last status change.
Resuming a paused workflow
If a step involves an agent tool that requires human approval, the workflow pauses at that step and the run entersPAUSED status. Resume it with the approved output:
string
required
The human-approved content to inject as the output of the paused step. This value is passed as input to the next step in the sequence.
202 Accepted:
Cloning a workflow
Create an independent copy of an existing workflow with all its steps: (Copy) appended to its name and a new unique ID.
Example response: