Linea Docs

Workflows

Building, deploying, and managing workflows.

Workflows

A Workflow is the core unit of automation in Linea. It defines a sequence of steps — nodes connected by edges — that run together as a single execution.

Lifecycle

StateMeaning
DraftIn progress, not yet runnable from triggers
DeployedLive — can be triggered by schedules, webhooks, or the API
TrashedSoft-deleted — can be restored

Only deployed workflows can be triggered automatically. Drafts can still be run manually from the preview panel.

API Endpoints

MethodPathDescription
GET/workspaces/:wId/pods/:pId/workflowsList workflows (?starred=true, ?trashed=true)
POST/workspaces/:wId/pods/:pId/workflowsCreate workflow
GET/workspaces/:wId/pods/:pId/workflows/:idGet workflow
PATCH/workspaces/:wId/pods/:pId/workflows/:idUpdate name, description, or definition
PATCH/workspaces/:wId/pods/:pId/workflows/:id/starToggle starred
PATCH/workspaces/:wId/pods/:pId/workflows/:id/trashMove to trash
PATCH/workspaces/:wId/pods/:pId/workflows/:id/restoreRestore from trash

Node types

Workflows are built from nodes. Each node performs a specific action:

CategoryNodeWhat it does
CoreStartEntry point — receives trigger input
CoreEndOutputs the final result
AIAgentRuns an LLM with tool use and structured output
AIMemoryRead or write persistent memory
LogicIf / ElseBranch based on a condition
LogicRouterRoute to multiple paths
ToolsHTTPCall any external REST API
ToolsMCPUse a connected Model Context Protocol server
DataTransformReshape variables with a JS expression
DataExtractScrape web content
DataRetrieverQuery a knowledge base
SafetyGuardrailsPII detection and content filtering
SafetyCodeRun sandboxed JavaScript
FlowLoopIterate over an array
FlowSub-workflowCall another workflow and wait for its result
IntegrationsSlackSend messages or DMs
IntegrationsGitHubCreate issues, comments, and PRs
IntegrationsNotionCreate pages and query databases
IntegrationsGmailSend and read email
Human-in-loopApproval GatePause and wait for a human to approve or reject

See the Node Reference for full configuration details on each type.

Building a workflow

Open the visual builder from the dashboard. Drag nodes from the library panel onto the canvas, connect them with edges, and configure each node in the side panel. Click Deploy when ready.

The Chat Preview panel lets you run the workflow immediately — in text mode or JSON simulation mode — without deploying first.

On this page