For the complete documentation index, see llms.txt. This page is also available as Markdown.

Designer

Build, edit and inspect individual flows in a comprehensive editor.

Designer

Diagram

The Designer renders flows with a redesigned diagram engine. The new diagram uses the Modern theme by default, in both light and dark modes, and is the production default for flows with the standard left-to-right layout.

  • Flows that use the legacy top-to-bottom layout still open in the previous diagram. The top-to-bottom layout is kept as a backup only and is scheduled for removal in a future release.

  • The new diagram supports one-click re-layout of the flow — see the align toolbar button below.

Configuration

Set up a new instance with config parameters and set/get methods:

config.el ...

Learn about widget config here.

config.flowId

Type: String | Default: null

ID of a flow that is opened in the editor.

config.componentId

Type: String | Default: null

ID of a component that is opened in the editor.

config.shareTypes

Type: Object | Default: DefaultShareTypes

Override default sharing dialog types.

config.sharePermissions

Type: Object[] | Default: DefaultSharePermissions

Override default sharing dialog permissions.

config.options.showHeader

Type: Boolean | Default: true

Toggle visibility of the header. &#xNAN;config.options.validation

Type: Object | Default: {}

Controls validation panel settings. Properties:

  • show (Boolean, default: false). Toggles visibility of the validation panel.

Example:

Additional validation options may be added in future versions.

config.options.menu

Type: Object[] | Default: []

Add a dropdown menu input to trigger built-in and custom events:

The optional icon property is a URL of an image or a base64 string.

config.options.toolbar

Type: Array[] | Default: []

Add a toolbar with groups of built-in and custom buttons:

Specify Vue ComponentOptions under widget to create a custom toolbar button.

'align'

The align button key adds an Align Diagram button that re-arranges the whole flow into a clean, layered left-to-right layout with a single click. Branches are ordered by the output port their links leave from, notes are never moved, and the re-layout finishes with a zoom-to-fit. The alignment only changes component positions — links, ports and the flow logic are untouched — and it is persisted as a single flow update, so it can be undone in one step.

The button is available only with the new diagram (left-to-right layouts) and is disabled when the Designer is read-only. Removing the 'align' string from the toolbar array fully disables the feature.

config.options.autoOpenLogs

Type: Boolean | Default: true

Automatically open logs view when the flow is running.

config.options.triggerSelector

Type: Object | Default: null

Automatically open trigger selector dialog when the flow has no trigger.

config.options.copilot

Type: Object | Default: null

Configuration of the AI Copilot panel. The Copilot button is shown only when the Copilot plugin is enabled on the backend.

The Designer also includes a Test flow button that executes a single test run of the flow without starting it (streaming per-component results onto the canvas, with dedicated test-input dialogs for Webhook, Form and Chat triggers), a Versioning panel with the flow's version history and draft management (see Flow Versions), a floating validation panel that replaces the validation sidebar, and per-component Error handling settings (see Handle Flow Errors).

Instance

Learn about widget instance here.

State

loader

Type: Boolean | Default: null

Toggle a custom loading state.

error

Type: String | Default: null

Toggle a custom error message.

stencilLayout

Type: String | Default: 'default'

Sets the stencil panel layout to 'default' (expanded) or 'collapsed'.

validationLayout

Type: String | Default: 'default'

Sets the validation panel layout to 'default' (expanded) or 'collapsed'.

Events

flow:start

Toggle stage button to start the flow.

flow:stop

Toggle stage button to stop the flow.

flow:share

Click menu item to open sharing of the flow.

flow:rename

Click menu item to rename the flow.

flow:export-svg

Click menu item to export diagram of the flow to SVG.

flow:export-png

Click menu item to export diagram of the flow to PNG.

flow:print

Click menu item to print diagram of the flow.

flow:validation

An event containing an array with flow validation errors. If the array is empty, there are no validation errors in the flow.

flow:wizard-builder

Click menu item to open a wizard builder dialog.

component:add

Add a new component to the flow.

component:open

Open component inspector.

component:close

Close component inspector.

component:rename

Rename a component.

component:update-type

Use selection input to change component type.

Click a button to show validation errors.

Example

Last updated

Was this helpful?