Skip to content

Workflow Editor ​

Concepts: Workflows vs agents explains when to use fixed steps and when to let an agent decide.

Core editor capabilities ​

  • Drag/drop node palette
  • Node-to-node edge connections
  • Curved edges
  • Node configuration in the docked inspector
  • Node delete (Delete key)
  • Save/import/export workflows
  • Execution logs pane and run-inputs pane
  • Per-node run data on the canvas and in the node inspector (see Run data)
  • Agent port + buttons that open filtered drawers for Language Models, Memory, Tools, and Workers
  • One undo history for every canvas change (see Undo and redo)

Adding nodes ​

Open the palette with Add node, a double-click on empty canvas, or the + beside a node's output.

  • Search ranks what you type: an exact node name first (output finds Output, if finds IF), then names that start with it, then other names a node goes by (api or fetch find HTTP Request, foreach finds Loop / ForEach), then words in the description. The top result is marked Best match; Enter adds the highlighted row and the arrow keys move the highlight.
  • After the selected node: with one node selected, the node you pick is placed to its right, clear of other nodes, and connected from its first output that has no connection yet. The new node is selected, so adding several in a row builds a chain. The palette's subtitle names the node it connects after. A trigger or input node, a sticky note, and a model, memory or tool picked after an agent are placed but not connected (attach those through the agent's ports). The connection follows the same rules as one you drag: when they refuse it (for example a model picked before an agent), the node is placed unconnected and the editor shows why.
  • From an output: the + beside an output (shown on outputs with no connection, and on hover) opens the palette connected after that output, for example an IF node's false branch or a node's red Error output (a node added after an Error output goes on the row below). Dragging a connection out of an output and dropping it on empty canvas does the same, and places the node where you dropped it.
  • Drag and drop a palette row onto the canvas to place a node at that point without connecting it.

The canvas pans to show a node it adds when the node would land out of view.

A node you add starts with what it needs filled in empty, with an example as a grey placeholder: an HTTP Request's URL, one Set row, one Filter condition (empty, it keeps every item), a Loop's input key. A Merge appends (or collects a loop's passes when added straight after a Loop body node). A Schedule Trigger starts off, in your browser's time zone; an Expose as MCP Tool trigger asks for a bearer token. A webhook, form, chat or MCP trigger or a schedule that is off says Off on its card: click it to open the node, then Turn on.

Describe a workflow ​

Builders and admins can say what a workflow should do and get a draft to review. Describe it… is on the Workflows page (Home) and on an empty canvas.

  1. Write what should start the workflow and what it should do, for example "When a form is submitted, check the email address, post the details to our CRM API and reply with a thank-you".
  2. Build asks the model for a workflow. The model reads the node catalog (the node types, their settings, their outputs and an agent's model, memory, tool and worker ports) and hands in a workflow. That workflow is checked against the workflow schema and the same graph rules as a save, and every {{ }} path is checked against what the steps before it output (an LLM Call outputs answer, so {{response}} after it is sent back). When something is wrong, the problems go back to the model, which fixes them (three tries in all). A path still wrong after the last try does not stop the draft: the preview lists it under the settings still to fill in. If the description is too vague, the model asks a question instead: add the answer to your description and build again.
  3. The preview shows a small drawing of the workflow and lists what it creates, the credentials to pick, the settings still to fill in and the addresses it calls when it runs. Nothing is saved yet. Edit description goes back.
  4. Create draft saves it as a new workflow and opens it. It never replaces a workflow you have.

What the builder never does:

  • It runs nothing while it builds. The model's answer is only read as a workflow and checked.
  • It never fills in credentials. Credential values and secret references in the model's answer are left out (the preview says so); pick saved credentials on the nodes afterwards. Settings only an admin may make, such as a trigger's input trust, are left out too.
  • It never takes a model or a model server address from the model's answer. A new LLM Call uses the model the builder used; a chain node such as Summarization Chain stays on the upstream model unless the answer gave it one, and then it gets the builder's model too; a dedicated chat model node keeps its placeholder address (the preview says so), so you set your server on it.
  • Triggers get paths no other workflow uses.

It uses the same model a new LLM Call starts on (see Model nodes), with the keys saved in the project; the dialog shows which one, and under More its Credential shows the saved key it uses (or "The server's key" when the key comes from the API server's environment). Under More you can choose another one (a provider, a model, a base URL for an OpenAI-compatible server, Azure OpenAI or Ollama, and a saved credential); the browser remembers the choice, never a key. On Echo nothing is sent to a model: Echo only repeats its input, so the dialog says a real model is needed and offers the three closest templates (on a tie, those that run without a model first).

An admin can turn the builder off with WORKFLOW_BUILDER_ENABLED=false on the API server: Describe it… goes away and POST /api/workflow-builder/build answers 403 with code: "workflow_builder_disabled". Each build is audited as workflow.builder.build (the model, the outcome and the number of tries, never the description). One build runs at a time per person (and a few at a time per server), for at most two minutes; closing the dialog stops it. The project's model allowlist applies, and a model's error message is redacted before it is shown.

A build's model calls count toward model spending limits like a run's: they are recorded as usage of the project and the person who asked, and show in Settings, FinOps as Describe it (builds) (trigger type workflow_builder). A build that fails or is stopped is charged for the calls it made. While a block budget on the project, the person or the whole deployment is used up, a build is refused before any model call: the dialog says which limit, and the API answers 402 with code: "budget_exceeded". On Echo nothing is spent and nothing is refused.

Undo and redo ​

Ctrl+Z undoes the last canvas change and Ctrl+Shift+Z or Ctrl+Y redoes it (Cmd on macOS). Every change is one step: adding, deleting, moving (one step per drag), connecting and removing a connection (double-click or right-click an edge), Clear, paste, duplicate, a node's settings, and Tidy. Clear asks before it removes the nodes, and can be undone. Opening or reloading a workflow starts a fresh history.

Model nodes ​

A new LLM Call starts on a model that works right away. When the API server's environment sets OPENAI_API_KEY, ANTHROPIC_API_KEY or GEMINI_API_KEY (checked in that order), the node starts on that provider; otherwise, when you have saved a secret for OpenAI, Anthropic or Gemini, it starts on that provider with that secret; otherwise it starts on Echo, the built-in demo model. Echo answers with the prompt it receives, needs no key and calls nothing, so a new workflow runs on the first try. Pick a real provider in the node's Provider list when you are ready. A local Ollama is never picked for you. Nodes you already have keep the model they name.

A new chain node such as Text Classifier or Summarization Chain starts with its Provider "Not set": it uses the model of an upstream model node. Pick a provider to give it its own model, or Not set to go back.

Opening a model node never contacts a model server. To pick from the models a provider offers, click Load models under the model field; until then, type the model name. Model lists for Ollama come only from the node's base URL or the server's OLLAMA_BASE_URL.

The agent's Language Models drawer offers LLM Call too, so an agent can run on Echo before it has a real model.

An LLM Call's answer is answer: read it with {{answer}} in the next step, or {{results.<nodeId>.answer}} further on. Its output also has text, the same value, kept so workflows that read it keep working; autocomplete offers answer only. The node reference lists what each node outputs.

A model node whose name says its provider or model, such as "Chat Model (echo)" or "OpenAI Chat Model", is renamed with it when you change the provider or the model ("Chat Model (anthropic)"). A name you gave it yourself stays.

In a workflow with several agents (a Supervisor and its workers), each agent has its own chat model. When you change the model of one that is an LLM Call and another agent's LLM Call uses a different one, the node offers Use for all agents in this workflow: one click saves the node and puts the same provider, model, base URL and credential on every agent's LLM Call chat model (each keeps its own temperature and token limit). Undo takes it back in one step.

Workflow settings ​

The ⋯ menu in the editor's top bar holds the settings of the whole workflow (they are saved with it), under More settings: No write tools, Strict templates, Ask before write tools…, Subject references… and Error workflow…. Most workflows leave them as they are. More settings says how many are on, and a tick shows which.

Strict templates makes a {{ }} without a value fail its node instead of rendering empty (settings.strictTemplates; off by default). See strict templates.

Error workflow… picks another workflow of the project that starts when a run of this one fails, for alerts or clean-up (settings.errorWorkflowId in the workflow JSON). Start it with an Error Trigger, which outputs the failed run's source_workflow_id, source_workflow_name, execution_id, error, error_stack and timestamp. The failed run's caller still gets the error, replays never start it, and an error workflow in another project runs only when that project shared it with execute access (see what a running workflow can reach). Pick None to turn it off. Its runs are listed in Runs like any other, with the trigger error: the failed run's details say Error workflow ran → run …, and the error workflow's run says which failed run it handled. Each belongs to the person who started the failed run, so someone who sees only their own runs sees the error runs of their runs. An error workflow that fails does not start another one, and a failed run starts its error workflow once, even if it runs again (unless a used-up budget refused that error run, or the queue failed to take it: then it is tried again).

Running from the editor ​

Run workflow runs the saved workflow. Input, next to Run, holds what the run sends as its user_prompt (and, optionally, its system_prompt). It starts empty: there is no built-in test prompt, and nothing is sent while it is empty. It is remembered for each workflow in your browser. It shows only when the workflow can read a prompt:

  • a model, chain, Azure OpenAI Embeddings, Agent or Supervisor node, which falls back to the run's prompts;
  • a Text Input, User Prompt or Chat Trigger node (user_prompt), or a System Prompt node with no text (system_prompt);
  • a Prompt Template, RAG Retrieve, Rerank or Chat Intent Router node that keeps its default template;
  • any node setting that names user_prompt or system_prompt, such as a template or an input mapping that reads one.

A Text Input or User Prompt node with text keeps the Input out, so the node's text is used, and a System Prompt node with text does the same for the system prompt. When a workflow has nothing to work on without a prompt (an agent on behind a Manual Trigger, say) and Input is empty, Run opens Input first. A Manual Trigger whose Test Data has a user_prompt supplies it instead: Input shows it as sample: … and Run runs straight away. The built-in agent templates ship their sample prompt this way.

An LLM Call (or chat model node, or Basic LLM Chain) sends its Prompt field, rendered against its input. With the Prompt empty it sends the input's prompt, user_prompt, message, text or question, else what its one parent sent (a webhook's body, as JSON). When all of these are empty the node fails and says what to fix; it never sends the model an empty message. The chat panel sends the message you type, and its system prompt on the same rule.

Webhook run (canvas toolbar) asks for the request body first: a JSON object that the run receives as a call to the webhook URL would send it (Input is not sent), so nodes read its fields as {{webhook.customer}}. The body is saved with the workflow (settings.testWebhookPayload, at most 64 KB) and filled in the next time. Everyone who can read the workflow sees it, so a field named like a credential (password, token, api_key, authorization, secret and the like) is refused: put credentials in a secret instead.

New workflow opens a User Prompt → Output starter in the editor without saving it. Its first edit (or a save or a run) saves it; open another workflow first and nothing is kept.

Organizing and debugging workflows ​

  • Projects isolate workflows and secrets. The API creates a default project and backfills legacy rows on startup.
  • Folders organize workflows inside a project. Deleting a folder moves its workflows back to the project root.
  • Tags are stored on workflows and can be edited or filtered from the dashboard.
  • The dashboard supports project switching, folder filtering, tag filtering, and search by name, ID or tag.
  • Pinned node data is stored in workflow.pinnedData and reused during test runs unless usePinnedData=false.
  • A single-node run uses runMode: "single_node" with a selected startNodeId and either supplied previous node outputs or pinned parent data.
  • A run from execution history can be loaded back into the editor to debug a failure, or re-run with sourceExecutionId.
  • Debug mode shows compact node input, output and error previews on the canvas, and schema and table views in the node inspector.

Run data ​

Run a workflow from the editor with Debug on (the default) and the canvas shows that run on every node, with nothing to open:

  • Status, items and duration: for example success · 3 items · 28 ms. Nodes that did not run say skipped; a node whose pinned data was reused says pinned data.
  • Out: the first values of the node's output (result and text fields first), not just its field names.
  • Err and a suggested fix when the node failed.
  • Nodes attached to an agent port (chat model, memory, tool, worker, rules, protection) are not steps of the run. They show used by <agent> as its <port> instead; the data they handled is on the agent.

While the run is going the cards update live (running time, the step a node is on, streamed model text).

The node inspector ​

Double-click a node to open it, or click a selected node again. The inspector opens as a panel over the dimmed editor; click the dimmed area, press Esc or use the close button to return to the canvas (unsaved edits are confirmed first). On a wide window the inspector shows Input | Parameters | Output side by side, for every node, so it keeps its shape while you move between nodes; on a narrow window the same parts are tabs (the layout button in the header switches between the two, and the choice is remembered in this browser).

  • The header holds the node's name (edit it in place), its type and node id, the node's run status with its item count and duration, Previous / Next step buttons and Run node. The status shows only here.
  • Input is what the node received: one section per upstream node (From and the node's name), then the run's own input fields. What the node resolved in this run and the run context (the editor's prompt fields, variables, webhook body, trigger) are folded away underneath: the run context is the same for every node of the run.
  • Output shows the data, or the error with a suggested fix when the node failed (in the tab layout the input it failed on is repeated under it).
  • Each data pane has one Table / JSON switch. Its ⋯ menu holds the Schema view, Show internal fields (the run's own bookkeeping fields, such as _telemetry and _branchHandle, are left out of tables until you ask; JSON always shows them; your data's own fields, such as _id, always show) and, on Output, Pin output / Unpin output.
  • Hide a data pane with the arrow in its header (it becomes a thin rail; click it to bring the pane back) and drag the line between panes, or focus it and use the arrow keys, to resize. Both are remembered. The panes give way when the window is narrow, so the parameters and the Output pane stay in view. Before a node has run, its empty Input and Output panes start as rails so the parameters get the room.
  • Parameters shows the fields a first workflow needs. Everything else sits in one More section at the end of the form, closed by default: first the node type's rarely used fields (for example a GET request's headers, an HTTP request's timeout, response type and retried statuses, a Loop's item variable and maximum, a Filter's Items from, a model's temperature and max tokens, an agent's iteration and tool output limits, a content rules node's approval settings), then what every node has: error handling (retries, delays, on error), input mapping, data labels, Disabled and the accent colour. Its title counts the settings that differ from their defaults, and it opens by itself when one of them needs fixing. A POST, PUT or PATCH request shows its Body and Headers next to the URL; a body that is valid JSON is sent as application/json unless the headers set a Content-Type. Help for a field is behind the ? next to its label. The expression helpers under a template field show while you edit it, and its preview shows when the result differs from what you typed (or the expression has an error). Typing {{ in a template field lists the last run's fields, variables and steps to insert, and a field name dragged from the Input pane inserts its {{path}}; a note under the field names any {{ }} the last run had no value for (see writing templates in the editor). A code node's Test Run stays in view, with its test input folded under it.
  • A node saved with an earlier behaviour shows the switch for it, with a one-line note and Upgrade to the new behaviour (until you save, Keep the earlier behaviour takes the upgrade back). New nodes start on the new behaviour and show neither. This covers a Loop's Collect results and Branches route in the loop, an HTTP Request's Fail on HTTP error status, a Filter's Pass or stop mode and a Set field's Text (as before) type. Nothing changes for a saved node until you upgrade it. A node set to the earlier behaviour on purpose (for example by an import) shows the switch without the note.
  • Trace shows timing, token use, the agent's activity and tool policy decisions for the run.
  • Large values stay fast: tables show 50 rows at a time and JSON over 20,000 characters is cut until you ask for all of it. A nested object or list in a table cell whose JSON is longer than 80 characters shows as one line (its first keys and short values, or a list's length and first items); click it to open the full value as JSON.
  • Data that did not come from a run is labelled: pinned data says Pinned data, not from a run, and a code node's test result says so too. With no run, the inspector says there is none.
  • Previous and Next (or Alt+[ and Alt+]) step through the nodes of the run in the order they started, without closing the inspector. Unsaved edits are kept or confirmed first.

Picking a run ​

Run data in the canvas toolbar lists this workflow's latest runs. Pick one to load it onto the canvas and into the inspector; the workflow itself is not changed. An older run stays loaded until you pick the latest one or run the workflow again. Otherwise a run started elsewhere (a webhook, the API) appears on the canvas on its own while it is running. Opening a workflow loads its latest run, so the run pill and Run data show it straight away; Clear logs keeps the canvas clear until the next run.

The editor shows exactly what run history stored for that run: it never fetches anything else. Values that run history keeps masked or as placeholders (see content rules) stay that way here.

Typical flow patterns ​

  1. Basic LLM:
    • text_input -> prompt_template -> ollama_chat_model -> output
  2. Agentic tool loop:
    • webhook_input -> agent_orchestrator -> output
    • Attachments:
      • chat_model: any Chat Model node, including OpenAI, Anthropic, Ollama, OpenAI Compatible, AI Gateway, Azure OpenAI, Gemini, or legacy llm_call
      • memory: local_memory
      • tool: one or more mcp_tool or workflow_tool nodes
  3. RAG:
    • text_input -> rag_retrieve -> prompt_template -> llm_call -> output

What a webhook's caller gets ​

A run started by a webhook (its URL, /webhook-test/, POST /api/webhooks/execute and its stream) answers with the reply of the last Webhook Response node that ran, even when other nodes (an Output node, a notification) run after it. The run's output in Runs is that reply too, so it shows what the caller got; replays and golden sets of a webhook run follow the same rule. That is the webhook trigger's default Response Mode, Automatic (under More): the last Webhook Response that ran, else the last node's output. Last Node Output always answers with the last node's output. A run that fails after its Webhook Response answers with the error. Runs that no webhook started (the editor's Run, sub-workflows, schedules) keep their Output node's result.

On Received answers the caller at once, before the run starts its work: 202 with {"executionId": "…", "status": "accepted"}, on the webhook's URL and on /webhook-test/. The run goes on in the background (on a worker when runs are queued) and is listed in Runs under that id, where its result is. Use it for callers that must not wait, such as a service that retries a slow reply. Content rules on responses check this reply too (a withheld reply starts no run), an idempotency key answers a retry with the same 202, and a used-up block budget, a full queue or too many such runs at once on the instance (DISPATCH_MAX_WAITING, 503) is refused before anything runs. A time limit in the request body counts only for a caller its token or signature verified. POST /api/webhooks/execute always waits for the run.

Validation behavior ​

Validation checks include:

  • Graph structure and required edges
  • Required node config fields
  • Attachment-type correctness (for agent/supervisor ports)
  • Node-type specific rules

An Output node is optional. Without one, a run's result is the output of the last node that ran, and validation lists it as a note, not an error.

Saving keeps a draft: node settings you have not filled in yet (an HTTP Request URL, an IF condition, a model, a Set node's fields and the like) do not stop a save. The editor lists them above the canvas after the save, with a link to each node, and a run stops at them until they are fixed. Such a version cannot be published either. A save is still refused for a broken graph (a cycle, an edge to a missing node, a repeated node id) and for settings that are live as soon as the workflow is saved: trigger and webhook authentication settings, approval and content-rule rules, and attachment rules.

Settings that may be unfinished in a draft ​

These save unfinished; each one stops a run until it is filled in:

  • Templates: a Prompt Template's template, an HTTP Request URL and its Retry on status list, a Set node's fields (and their names and values)
  • Branching: an IF condition, a Switch value and its cases, a Merge node's combine key and its second input
  • Loops: a Loop's input key and item variable
  • Models: an LLM Call's provider, a Gemini model, a chat model's model or gateway base URL, an agent's attached chat model
  • Azure: the Azure OpenAI secret, endpoint and deployment, the Azure embedding secret and settings, and the operation of an Azure Storage, Monitor, Cosmos DB or AI Search node
  • Tools and data: an MCP tool or resource, a connector, a Qdrant operation, an output parser's schema, an input validator's rules
  • Code and sub-workflows: a code node's script, the workflow an Execute Workflow or Workflow Tool node calls

Live triggers of an unfinished draft ​

While the version production would run has unfinished settings (a saved draft with nothing published), its live triggers are paused and the editor says so above the canvas: a production webhook (/webhook/:path, after its own address and authentication checks), form submission, chat message or MCP trigger call answers 409 with code: "workflow_unfinished" and starts no run (the form page and the tool's manifest still show), and a schedule or app trigger skips its tick. Other production runs of that version are refused with the same code: an API key's /execute answers 409; a sub-workflow call fails the calling run with errorCode: "workflow_unfinished" (a webhook answer carries it as code); a call through the MCP gateway returns a tool error with _meta.code. The audit log records the pause once per version (workflow.triggers_paused, "Live triggers paused: unfinished settings"). Webhook run and the test webhook URL (/webhook-test/:path) still run the draft, so you can see where it stops. Save it finished and the triggers serve again.

Non-connected nodes are not executed.

This website (not the L2M product) counts page views with GoatCounter, without cookies.