# Workflow Studio

> The portal editor for workflows. Build the graph on the canvas, configure each node with its input and output side by side, save the draft, run it with live progress, inspect events in the debug console and deploy a version.

Source: https://docs.sommatic.ai/en/workflows/studio/ (updated 2026-11-26)

Workflow Studio is where a workflow takes shape. You open it from **Workflows**: each workflow has the tabs
**Overview**, **Runs**, **Workflow Studio** and **Settings**, and the studio tab holds the canvas.

## The canvas

- **Add nodes.** The add button opens the nodes panel with the catalog. A node you add appears with its operator's
  icon and name, which becomes its `label`.
- **Connect ports.** Each node shows its output ports. Drag from a port to another node to create an edge. A node with
  several outcomes (`true` and `false`, `found` and `miss`) has one port per outcome, plus `error` on almost every node.
- **Organize.** The canvas controls include an auto-layout button; the node menu has **Tidy Up Workflow**.
- **Undo and redo** live next to **Save draft** in the header.

Right-click a node, or use its menu, for **Open**, **Rename** (F2), **Execute step**, **Copy**, **Paste**,
**Duplicate**, **Replace** and **Delete**.

> **Warning: Renaming a node changes its expressions**
>
> Expressions such as `{{ $('Classify request').item.json.label }}` find a node by its label. Rename a node and every
> expression that used the old label stops finding it. The `node_id` does not change.

## Configuring a node

Open a node to see three panels side by side:

- **Input**, on the left: the nodes that run before this one and the fields they produce. Here you set **sample data**
  for earlier nodes.
- **Configuration**, in the center, with two tabs:
  - **Config (Parameters)**: the node's own fields, from its schema in the [catalog](https://docs.sommatic.ai/en/nodes.md). Fields that accept
    [expressions](https://docs.sommatic.ai/en/expressions.md) take `{{ … }}`. Credential fields are pickers: you choose a stored credential and
    the secret is resolved on the server when the node runs.
  - **Settings**: execution settings such as **Retry On Fail**, **Max Retries**, **Wait Between Retries (ms)** and
    **Timeout (ms)**. Only some nodes honor them; see [Limits](https://docs.sommatic.ai/en/workflows/limits.md).
- **Output**, on the right: the node's ports and the result of its last execution (output and meta, or the error).

A webhook trigger also shows its **Webhook URL** section here, where you create the endpoints. See
[Webhooks](https://docs.sommatic.ai/en/workflows/webhooks.md).

The header shows a warning count when a node's configuration does not match its schema. It does not block saving,
but read it before you run.

## Saving the draft

**Save draft** stores the graph as the workflow's draft. The **Unsaved** badge tells you there are changes that are
not saved yet. The studio only runs saved drafts: if there are pending changes, **Run workflow** asks you to save
first.

Sample data is part of your editing session, not of the draft: it is not saved with the workflow and never reaches
production runs.

## Running from the studio

**Run workflow**, on the canvas, starts a test run of the saved draft:

- With a **webhook trigger**, the canvas waits (**Waiting for webhook...**) until a call reaches the `test` URL. You
  can cancel the wait.
- With any **other trigger**, the run starts at once. If you set sample data, the trigger is skipped and its sample
  input is used instead.

While the run moves, each node shows whether it is pending, running, finished or failed, and the run monitor follows
the run. **Execute step** runs a single node with the data available to it, which is useful to tune one node without
running the whole graph.

See [Testing](https://docs.sommatic.ai/en/workflows/testing.md) for the full testing workflow.

## The debug console

The terminal icon in the canvas controls (**SSE debug console**) opens the **Debug Console**: every event the run
sends over Server-Sent Events, in order, with the node and operator that produced it and any error. It also has a
JavaScript input where `$events` is the list of events, `$last` the last one and `$('…')` finds an event by its id.

## Deploying

The **…** menu in the header has **Deploy**. It saves pending changes and publishes the draft as a new version
(`Flow v3 published successfully`). The history button lists recent versions; **View all history...** opens every
version with **Restore**, which loads that version into the canvas so you can save and publish it again.

The same menu has **Duplicate**, **Download**, **Import from File...**, **Sync from Git...**, **Export for Git...**,
**Rename** and **Settings**. For Git, see [Git Sync](https://docs.sommatic.ai/en/git-sync.md).

## Next steps

- [Testing](https://docs.sommatic.ai/en/workflows/testing.md): Sample data, single steps, test webhooks and reading results.
- [Ports and envelope](https://docs.sommatic.ai/en/workflows/ports-and-envelope.md): How a node's result chooses the next node.
- [Publishing](https://docs.sommatic.ai/en/workflows/publishing.md): Versions, rollbacks and pausing.
