# Create and design a workflow (/docs/workflows/designer)

> Create a draft, find your way around the designer (palette, canvas, inspector, toolbar), add and connect steps, and use expressions and the Check-if-in-Source recipe.

Type: how-to | Status: beta | Last reviewed: 2026-11-21 | Minimum role: builder

You need the **Builder** role or higher to build workflows.

## How do I create a workflow for my agent? [#how-do-i-create-a-workflow-for-my-agent]

Open Workflows, select Create workflow and enter a name. It starts as a draft with a Trigger step. Open the designer, add steps from the palette, connect them on the canvas and edit each one in the inspector. You need the Builder role or higher. Workflows are in beta.

## Create a workflow [#create-a-workflow]

1. Open **Workflows** and select **Create workflow**.
2. Enter a **Name** (up to 120 characters, required: "Name is required"). Add an optional **Description** (up to 2,000), such as "OTP verify, confirm, then cancel in Shopify". "Starts as a draft with a Trigger node. Open the designer to add steps."
3. Select **Create** ("Workflow created"). Open the new workflow from the list.

From a row's **...** menu you can also **Duplicate**, **Disable** and **Delete** a workflow. Deleting "permanently removes the workflow and cannot be undone."

## The designer [#the-designer]

<Screenshot src="/media/workflows/designer.png" alt="The workflow designer with a node palette on the left, a canvas of connected steps and an inspector on the right" caption="The designer: palette, canvas and inspector" captured="2026-11-01" />

| Area | What it does |
|---|---|
| **Header** | Back to **Workflows**, the name (rename it) and a version bar: **Draft — never published**, **Published — live** or **Draft ahead of live** |
| **Toolbar** | **Undo**, **Redo**, **Run history**, **Hide palette**, **Build with AI**, **Test**, **Publish**, and a **More actions** menu with **Settings**, **Duplicate**, **Disable** and **Delete** |
| **Nodes palette** (left) | Search nodes ("Search nodes…") and add steps. Grouped as *Recipes*, *Triggers*, *Conversation*, *Logic*, *Data*, *Trust*, *Records* and *End* |
| **Canvas** (centre) | Your steps and their connections. Zoom, **Fit View**, and **Tidy up** to arrange steps top to bottom |
| **Inspector** (right) | Select a step to edit its name, **Disabled** switch and the fields for that step type |

## Add steps [#add-steps]

- **Click** a step in the palette to add it, or **drag** it onto the canvas. A step that needs something you have not set up shows "Requires …".
- Hover a step's connection point and select **+** to add the next step already connected. IF, Decide and Confirm have one point for Yes and one for No.
- If steps pile up the canvas says so; select **Tidy up**.

## Connect steps [#connect-steps]

Drag from a step's **bottom handle** (its output) to the **top handle** of the next step. The rules:

- The first step is a **Trigger**. A workflow needs at least one. To switch one off use **Disabled**, not delete.
- A step can only link to a step that accepts input (a Trigger has none), and never to itself.
- You cannot add the same connection twice.
- **IF condition**, **Decide** and **Confirm** have two outputs, **Yes** and **No**. **Complete** and **Escalate** have none: they end the workflow.

## Edit a step [#edit-a-step]

Select a step. In the inspector change its **Name** and settings. **Disabled** skips a step without deleting it. **Delete node** removes it. **Undo** and **Redo** step through your changes.

## Use details from earlier steps [#use-details-from-earlier-steps]

Whatever you **Collect** can be used later. In message fields an **Insert detail** row offers chips such as **Email** and **Last lookup**. They insert tokens like `{{collected.email}}` that are replaced when the workflow runs. Use them in Reply, Complete and Escalate messages and in record fields. A token for a detail that was never collected stays empty or appears as written, so collect it first.

## Recipe: Check if in Source [#recipe-check-if-in-source]

The palette's **Check if in Source** adds a *Query Source* step and an *IF condition* wired to Yes and No. On No, a **Not found** Reply says "We couldn't find that email on our list…". Pick the lookup capability (for example *Find row* in Google Sheets) and make sure it is approved in [Integrations](/docs/integrations).

## Capability health [#capability-health]

A step that uses an integration capability shows a badge when something is wrong: **Unavailable** or **Reconnect needed**. Fix the connection in [Integrations](/docs/integrations/security-permissions-and-health).

## Save [#save]

The designer saves a draft as you work ("Draft saved"). Nothing reaches customers until you [publish](/docs/workflows/test-publish-and-attach).

## Settings for this workflow [#settings-for-this-workflow]

**More actions → Settings** opens this workflow's settings:

- **Description**: "What does this workflow do?"
- **AI agent can start this**: "Let your AI agent start this workflow in chat when it decides a visitor needs it. Turn off to keep it for testing only."

## Workspace workflow settings [#workspace-workflow-settings]

The **Settings** button on the Workflows list opens limits and safety switches for **every** workflow in the workspace. Only Owners and Admins can view or change them.

| Setting | Meaning |
|---|---|
| **Max concurrent runs** | New runs are refused with a friendly message above this. Empty means no workspace cap |
| **Max tool calls per minute** | A workspace cap on capability calls |
| **Max LLM tokens per day** | A daily cap on model use by workflows |
| **Allow real side effects in tests** | Off (recommended): test runs are sandboxed and write actions are simulated. On: "Test runs can change real data"; writes execute against live systems. Confirmation is still required for risky actions |
| **Primary model**, **Approved fallbacks** | Which model workflows use; only these are ever used |
| **Retention (days)** | How long runs, run events, executions, facts, the audit log, traces, verification records and builder sessions are kept. The form shows each default. Runs under a legal hold are never deleted |
