Skip to main content

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:

NodeWhat it does
StartHow the workflow begins: on demand, on a schedule, from a webhook, on a platform event, or on any new conversation message
AgentAn agent performs a step, from a task you describe
ConditionBranches on the previous step's output
HandoffPasses ownership to another agent, chosen by you or routed automatically
Agent handoffPasses work to an agent in another workspace or a partner organisation
Human ApprovalPauses until a person approves, rejects or provides input
ParallelRuns several branches at once
Retry LoopRepeats a sequence until it succeeds or reaches its limit
EndFinishes the workflow

Switch the builder to Advanced mode for more:

NodeWhat it does
Coding AgentRuns a coding session on a repository
TransformReshapes data between steps without an agent
DelayWaits for a set time
WebhookCalls an external HTTP endpoint
NotifySends a notification by email, chat or in-app, optionally to a project's RACI roles
Map/ReduceRuns the same step over every item of a list, then combines the results
ConsensusSeveral agents evaluate the same question and vote
ReflectionA reviewer agent checks the work and sends it back until it meets the bar
DelegationA manager agent splits the work and assigns the parts
Cross-Org AgentCalls an agent of a partner organisation
CheckpointSaves progress so a long workflow can resume
GateBlocks 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:

  1. Go to Work › Automation › Orchestration and open the builder
  2. Drag nodes from the palette onto the canvas
  3. Connect them by dragging edges between nodes
  4. Click each node to configure it in the right sidebar
  5. Click Validate to check for structural errors
  6. 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.

Templates

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​

SettingDescription
Max Execution TimeMaximum total duration of a run
Max Node RetriesHow many times a failed step is retried
Enable LoggingDetailed execution logs
Share MemoryAgents 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​

Start Simple

Begin with a linear workflow (Start, Agent, End) and add complexity as needed. Validate at each step.

Use Conditions for Routing

Rather than building separate workflows for different scenarios, use Condition nodes to branch within a single workflow.

Add Human Nodes for High-Stakes Decisions

Any step that involves money, customer data, or irreversible actions should include a human approval gate. See Human-in-the-Loop.

Set Execution Timeouts

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.