Skip to content

Workflow Builder

An editable canvas for agent workflows: trigger, agent, tool and condition steps, drag to link them, and an inspector with each step's config. Problems show on the step and next to the field. It works with mouse, trackpad, touch and keyboard.

On this page

Examples

Pick a step, press 2 to add an agent, C to link, or drag from a step's right-hand dot. Ctrl + scroll or pinch zooms.

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

Props

value / defaultValue / onChange
Workflow / Workflow / (workflow, issues) => void
Defaultempty
{ nodes, edges }. A node is { id, kind: "trigger" | "agent" | "tool" | "condition", title, x, y, config }; an edge is { id, from, port: "out" | "yes" | "no", to }. onChange runs after each edit (a drag reports once, when it ends) with what is still wrong.
config
Record<string, string>
trigger: type (manual, schedule, webhook, event) and schedule. agent: model, prompt. tool: tool, args (JSON text). condition: expression.
models / tools
string[]
Defaultbuilt-in lists
What the inspector offers for agent and tool steps.
onRun
(workflow) => void
Shows a Run button. It is disabled while there are problems.
mobileBelow
number
Default720
Below this container width the inspector opens in a bottom Sheet. Tap a picked step again, or Edit.
storageKey / label / className
string
storageKey remembers the divider between canvas and inspector. Give the root a height: the builder fills it.
validate(workflow)
Issue[]
The same checks the builder runs, for your own save button: no trigger, a second trigger, a step nothing leads to, a branch without a link, a missing model, tool or instruction, arguments that are not JSON.
Links
rules
One link per output. Nothing links to itself, into a trigger, twice or in a loop, and the builder says why when a link is refused.
Pan and zoom
pointer
Drag the background to pan. Mouse: Ctrl + wheel zooms at the cursor. Trackpad: pinch zooms, two fingers pan. Touch: pinch and one-finger pan. A plain wheel only moves the canvas while it has focus, so the page still scrolls past it.
Keyboard
canvas
Arrows pick a step, Shift + arrows pan. 1 to 4 add a trigger, agent, tool or condition next to the picked step. C then arrows then Enter links. Enter edits, Delete removes, + - 0 zoom and fit. Links can also be removed in the inspector.
--kn-accent
CSS
Defaultindigo
The selected step and the link you are drawing follow --kn-accent. Kind is shown by icon and label, and red is only for problems.
a11y
listbox
The canvas is a listbox of steps named by kind, title, links and problems. Changes are announced in a status line. Moving and drawing links by pointer also work with the keys above. Reduced motion removes the transitions.

When to use

When to use

  • Letting people build or edit an agent workflow themselves: a trigger, agents, tools and conditions, linked.
  • An automation editor where the person must see what is wrong before they can run it.

When not to use

  • Showing a running team of agents, view only: use Agent Graph.
  • A fixed list of steps an agent plans to take: use Agent Plan.
  • Following when each step of a run happened: use Trace Waterfall.

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Workflow Builder to my app and wire it to my own data.
  • I need letting people build or edit an agent workflow themselves: a trigger, agents, tools and conditions, linked. Set that up with the Knowns UI Workflow Builder.
  • Which Workflow Builder props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "workflow-builder" }) and search_docs({ query: "workflow builder" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on Workflow Builder, or found something off? We read every message.