For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

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 wherever the standard left-to-right layout is in use.

  • The layout comes from the theme, not from individual flows: when the themed action and trigger shapes carry orientation: 'bottom' — the vertical shape presets — the Designer falls back to the previous diagram for every flow. Detection is keyed on that attribute rather than on the shape name, so custom shapes registered with appmixer.registerComponentShape participate too. The top-to-bottom layout is kept as a backup only and is scheduled for removal in a future release.

  • The layout setting travels inside the theme, and changing the theme unmounts and remounts the Designer, so the orientation is resolved once per Designer lifetime.

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

  • Zooming with the pointer follows the platform convention: ⌘ + scroll on macOS and Ctrl + scroll on Windows and Linux zoom about the pointer. On macOS, ⌘ + scroll previously panned the canvas; on Windows and Linux, Super + scroll still pans.

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.

'commands'

The commands button key adds a View Commands button that opens the Keyboard Commands panel — a floating panel beside the canvas listing every keyboard and pointer shortcut the Designer supports, from copy/paste and undo/redo to marquee selection, nudging and note editing. Each row shows the macOS and the Windows/Linux binding, and the row highlights as you press its shortcut. Keystrokes aimed at text fields are ignored, so typing in an inspector field never flashes a row.

The button sits between Zoom Out and Logs and is available only with the new diagram. Removing the 'commands' string from the toolbar array fully disables it. The panel is themable under the '#Designer/#commandsPanel' scope.

'logs'

The logs button key adds the View Logs button, and integration-test-logs adds View Test Logs for integration tests. Together they decide whether the Designer's built-in logs panel is available at all — they are not only about the buttons.

With neither key in the toolbar array, the whole panel is switched off: the View Logs button and the chevron toggle on the right of the toolbar are both gone, a running flow no longer opens logs by itself regardless of the autoOpenLogs option below, and a test run's View logs links — on the result badge and in a component's test-output popover — are not offered. Use this when your application shows flow logs in its own UI.

config.options.autoOpenLogs

Type: Boolean | Default: true

Automatically open logs view when the flow is running. It applies only while the toolbar offers a logs button — with the logs keys removed from toolbar, the built-in panel is switched off and nothing opens it (see the 'logs' key under config.options.toolbar above).

The logs panel refreshes automatically while its tab is active. Polling is suspended while the browser tab is hidden and resumes when the tab becomes active again; if the API rate-limits the requests, the panel backs off and recovers on its own.

config.options.triggerSelector

Type: Object | Default: null

Configures how a flow with no trigger invites the user to add one. When enabled is true, an empty canvas shows a placeholder with an Add a trigger tile and, where the AI Copilot is available, a Build with AI tile. Choosing Add a trigger opens the trigger selector dialog, whose top entries can be curated with featured.

Property
Type
Default
Description

enabled

Boolean

false

Turns the trigger selector on.

autoOpen

Boolean

false

Restores the legacy behaviour — the trigger selector dialog opens by itself on a flow with no trigger. Mutually exclusive with the placeholder: when autoOpen is true, the placeholder is not shown.

featured

Array

—

Components pinned to the top of the dialog, optionally with a custom label, description, marker and icon.

The placeholder requires a genuinely empty canvas — no components and no notes — so the centred tiles never cover existing content. The Build with AI tile additionally requires the Copilot system plugin to be enabled on the backend and a surface that allows Copilot; it is hidden in integration template mode.

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.

examplePrompts — Type: Boolean | String[] | Default: false

Clickable prompt tiles shown in the panel's empty state. true shows the built-in, localized examples; an array of strings replaces them with your own; omitted or false keeps them hidden.

disclaimer — Type: Boolean | String | Default: true

The hint shown under the chat composer, reminding users to check what the Copilot builds. Omitted or true shows the built-in, localized text — "AI Copilot can make mistakes. Please double-check your flows." — a string replaces it, and false hides it.

If you serve more than one language, override the localization key ui/designer/copilotPanel/disclaimer instead of passing a string: the option carries a single value for every language, while the key can be translated per language. Overriding that key with an empty string also hides the hint.

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'.

copilotSessions

Type: Object | Default: {}

Pointers to the AI Copilot conversations the user has started, as a { [contextKey]: threadId } map — contextKey is 'flow:<flowId>' for a conversation bound to a flow.

Treat the map as opaque: read it, store it, hand it back. Its purpose is to let a Copilot conversation survive a page reload — persist it (for example to sessionStorage) when the Designer fires the change event, and pass it back in state the next time you create the Designer. Reopening the same flow then resumes its conversation instead of starting a new one.

Since Appmixer 6.5.5, the panel also resumes a conversation without a pointer. When it opens on a flow that has none in the map — a host that does not persist the map, another browser, or cleared storage — it asks the backend for the latest conversation the user had on that flow (List Conversations) and resumes it. It then adds the pointer to copilotSessions and fires change, the same as for a pointer you passed in; copilot:chat-start does not fire, because nothing started. A flow with no stored conversation, or a backend without that endpoint, leaves the panel empty.

It holds the conversation context only, never the messages: the backend owns the transcript and the panel restores it from the threadId when the conversation is reopened.

Methods

designer.copilot.send

Available since Appmixer 6.5.5.

Opens the AI Copilot panel and submits message into the conversation the user can see, exactly as if they had typed it in the composer.

Use it to drive Copilot from your own UI — for example a Fix it with Copilot button in a dialog that explains what a flow created from a template still needs from the user.

Everything else about the prompt is unchanged: the reply streams into the panel, copilot:chat-start fires for a new conversation, the thread is retained in copilotSessions, and the confirmation the composer shows before creating or replacing an automation draft is shown for an SDK prompt too.

The promise resolves once the prompt has been submitted — not when Copilot has finished answering.

Calling it immediately after designer.set('flowId', id) is safe: the prompt waits for the flow to finish loading before it is sent. A flow that cannot be loaded at all — a wrong or inaccessible id — is reported as no-flow, which can take up to 30 seconds.

Property
Type
Description

sent

Boolean

Whether the prompt was submitted.

reason

String

Why it was not. Present only when sent is false.

reason

Meaning

unavailable

The Copilot plugin is not enabled on the backend, its availability could not be confirmed right now (for example a network or server error — worth retrying later), or this Designer runs in integration template mode.

not-mounted

The Designer is not open — designer.open() has not been called, designer.close() has, or it was closed while the prompt was waiting.

no-flow

No flow is open, the flow could not be loaded, or the host switched the Designer to another flow while the prompt was waiting.

busy

A Copilot request or a test run is already working on this flow, or an earlier send() is still being processed. Worth retrying when it finishes.

declined

The prompt reached Copilot and was not sent: the user dismissed the draft confirmation, or it was superseded first — the flow was switched while the confirmation was on screen, or another request claimed Copilot.

empty-message

The message was empty or whitespace only.

error

The Designer failed on its way to sending; the reason is logged to the browser console.

A refused prompt leaves the Designer as it was — with one deliberate exception: declined means the user was asked something, so the panel is open, showing the question they answered.

Sending a message straight to the Copilot API instead reaches the same server-side conversation, but it will not appear in an open panel — the panel renders its own transcript. Use this method whenever the user should see the prompt.

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.

copilot:chat-start

An AI Copilot conversation has begun. Fires once per conversation, no matter how it was started — the composer, a suggestion chip, or designer.copilot.send().

Property
Type
Description

threadId

String

The conversation assigned by the backend, which owns its message history.

flowId

String | null

The flow the conversation was started for. null for a conversation not bound to a flow.

context

Object | null

The same binding, structured: { type: 'flow', flowId }. null when no flow is open.

Resuming a conversation does not fire this event — nothing started. The Designer keeps the pointer in copilotSessions for you, so listen to this only if you want the threadId for your own purposes. Because it fires once per conversation and not at all for a resumed one, it cannot be used to account for individual prompts — use copilot:message-sent for that.

copilot:message-sent

A prompt has been accepted and is on its way to AI Copilot. Fires once per prompt, for every entry path — the composer, a suggestion chip, or designer.copilot.send() — and for every prompt of a resumed conversation.

It reports an attempt, not a delivery. The event fires the moment the Designer accepts the prompt, before the request goes out, so it also covers a prompt the backend goes on to refuse and one whose request never completes. For attribution that is usually what you want — the user did type it — but it means a prompt can be reported and then produce nothing else at all.

Property
Type
Description

threadId

String | null

The conversation. null on the first prompt of a new one, because the backend assigns the id with the reply.

flowId

String

The flow open in the Designer when the prompt was accepted. Never null — Copilot cannot be prompted without a flow.

messageId

String

Identifies this prompt, and is quoted again by copilot:flow-applied if the prompt goes on to change a flow.

A prompt the Designer turned away never fires this — an empty message, a Copilot request already running, a test run holding the flow, or a draft confirmation the user declined.

One prompt reports once. If the backend refuses a prompt because a request is already running on the conversation, the composer hands the text back for the user to send again — that send reuses the same messageId and fires no further event, so a refusal and its retry are one entry in your records rather than two. A refused prompt the user never sends again keeps its single report and is followed by nothing.

messageId is generated by the SDK to pair these two events within one browser session. It is not a platform identifier: Appmixer stores a conversation as messages and text with no per-message id, so this value cannot be used to look a prompt up server-side.

copilot:flow-applied

A flow generated by AI Copilot has been written to its target. Fires at most once per prompt, after the flow is stored.

Property
Type
Description

threadId

String | null

The conversation the output came from.

messageId

String

The prompt that produced it — the value reported by copilot:message-sent.

flowId

String

The flow the prompt was made from.

targetFlowId

String

The flow the output was written to. Often a different one: Copilot routes its output into a draft when the flow being edited is running, already has a draft, or belongs to another user.

alsoChangedFlowId

String | null

A flow other than targetFlowId that this same prompt changed. null in normal operation — the backend writes only the flow the output was routed to, so there is no second flow to report.

snapshotVersionId

String | null

The flow version holding targetFlowId as it stood before this prompt changed it, a draft created for this prompt included. It is taken by the backend before its first write, or by the Designer before its own. null when no such version was created — for example when the flow was still empty before the prompt, or when the backend could not create the version.

No event fires for a prompt Copilot answered without building a flow, or for one that failed before its output reached a flow. The absence of copilot:flow-applied therefore means the Designer wrote nothing, not that the prompt failed — and it is not a guarantee that no flow changed: a request the user stops, or one whose connection drops, can leave the backend still writing with no result for the Designer to report.

Example

Last updated

Was this helpful?