Workflows
Workflows orchestrate complex, multi-step processes by connecting agents, conditions, and transformations into executable graphs. When a single agent is not enough, workflows let you coordinate multiple agents, add decision points, and include human approvals.
Why Workflows?
Some processes are too complex for a single agent:
- Multi-stage approval -- Review, manager approval, finance sign-off, then execute
- Data pipelines -- Extract, transform, validate, load
- Customer journeys -- Qualify, enrich, route, assign, notify
- Conditional logic -- High-value leads take the premium path; others take the standard path
Workflows give you visual process design, conditional branching, parallel execution, human-in-the-loop approvals, and error handling with retries.
Sample Workflow
Here is how the main node types come together in a typical flow:
Core Concepts
Node Types
Nodes are the building blocks of a workflow. The builder shows the essential ones by default:
| Node | What it does |
|---|---|
| Start | How the workflow begins: on demand, on a schedule, from a webhook, on a platform event, or on any new conversation message |
| Agent | An agent performs a step, from a task you describe |
| Condition | Branches on the previous step's output |
| Handoff | Passes ownership to another agent, chosen by you or routed automatically |
| Agent handoff | Passes work to an agent in another workspace or a partner organisation |
| Human Approval | Pauses until a person approves, rejects or provides input |
| Parallel | Runs several branches at once |
| Retry Loop | Repeats a sequence until it succeeds or reaches its limit |
| End | Finishes the workflow |
Switch the builder to Advanced mode for more:
| Node | What it does |
|---|---|
| Coding Agent | Runs a coding session on a repository |
| Transform | Reshapes data between steps without an agent |
| Delay | Waits for a set time |
| Webhook | Calls an external HTTP endpoint |
| Notify | Sends a notification by email, chat or in-app, optionally to a project's RACI roles |
| Map/Reduce | Runs the same step over every item of a list, then combines the results |
| Consensus | Several agents evaluate the same question and vote |
| Reflection | A reviewer agent checks the work and sends it back until it meets the bar |
| Delegation | A manager agent splits the work and assigns the parts |
| Cross-Org Agent | Calls an agent of a partner organisation |
| Checkpoint | Saves progress so a long workflow can resume |
| Gate | Blocks until a quality or compliance check passes |
Edges
Edges connect nodes and define execution flow. Every node (except End) must have at least one outgoing edge, and every node (except Start) must have at least one incoming edge.
Waiting for parallel branches
A Parallel node's Completion Mode decides when the workflow moves on: Wait for All branches, Wait for Any of them, or First to Complete.
Input/Output Mapping
Data flows between nodes using JSONPath references. You can reference workflow input, previous node outputs, and nested fields to wire data through the graph.
Building Workflows
Visual Builder
The easiest way to create workflows is the Visual Orchestration Builder:
- Go to Work › Automation › Orchestration and open the builder
- Drag nodes from the palette onto the canvas
- Connect them by dragging edges between nodes
- Click each node to configure it in the right sidebar
- Click Validate to check for structural errors
- Click Deploy to make the workflow executable
The builder follows familiar process-diagram conventions: circles for start and end, diamonds for decisions, rectangles for tasks. Use the Advanced switch to reveal the advanced nodes.
Workspace and Project Scoping
The Visual Builder adapts to where you open it:
-
In the Admin layout, the builder is scoped to your currently selected workspace. Agents are grouped by team within that workspace, and flows are saved against the workspace. This is the right choice for orchestrating agents that all belong to the same workspace.
-
In the Projects layout, the builder is scoped to the project and can include agents from every workspace in the project. Agents are tagged by their origin workspace so you can tell them apart at a glance. When agents from different workspaces are connected, the platform automatically wires secure agent messaging between them on deploy so they can communicate across workspace boundaries.
Cross-organization flows (agents from federated external tenants) are also supported in project-scoped flows through dedicated federation nodes. These require an active trust with that organisation to be in place.
Four starter templates are available: Sales Pipeline, Support Triage, Content Pipeline, and Code Review. Start from a template and customize rather than building from scratch.
Workflow Settings
| Setting | Description |
|---|---|
| Max Execution Time | Maximum total duration of a run |
| Max Node Retries | How many times a failed step is retried |
| Enable Logging | Detailed execution logs |
| Share Memory | Agents share memory context across the workflow |
Validation Rules
Workflows are validated before they can be saved or deployed:
- Exactly one Start node is required
- At least one End node is required
- No orphaned nodes (all must be connected)
- All edges must reference valid source/target nodes
- No circular dependencies (except explicit loops)
- Cycle detection prevents infinite loops
Running Workflows
You can execute a workflow manually from the dashboard, via a trigger, or from another workflow. Each execution creates a run with its own status tracking.
From the dashboard, you can monitor:
- Current node and execution path
- Completed and pending nodes
- Output from each node
- Errors and retry attempts
You can also cancel a running workflow at any time.
Starting a workflow on an event
A workflow can start by itself when something happens. Set the Start node's trigger type to Event, pick the integration and the event (for example a new CRM deal), and optionally fill Only when (payload filter) to react to only some of those events, such as deals above a certain amount.
A workflow that belongs to a project reacts only to that project's events. A workflow that belongs to no project reacts to the event wherever it happens in your organisation.
You can also ask Loyd: "When a deal is won in the CRM, start the onboarding workflow."
Importing processes
You can import existing process models instead of drawing them again: BPMN diagrams from standard process tools (see BPMN import) and workflows written in the open Agent Spec format.
Best Practices
Begin with a linear workflow (Start, Agent, End) and add complexity as needed. Validate at each step.
Rather than building separate workflows for different scenarios, use Condition nodes to branch within a single workflow.
Any step that involves money, customer data, or irreversible actions should include a human approval gate. See Human-in-the-Loop.
Always configure a max execution time. Without one, a stuck workflow can consume resources indefinitely.
Next: Learn about Human-in-the-Loop for human approval workflows.