Build a Workflow
Create workflows, organize the workflow list with folders, customize the list order, get an AI employee to help build, add steps on the canvas, save drafts, debug, publish, share, and import and export
Last updated:
Build a workflow: overview
A workflow turns fixed multi-step work into a sequence of steps that runs from start to finish and can be run over and over, and it can pause in the middle to wait for a person to confirm or provide information. Steps can branch on conditions (each run follows only the branch whose condition is true), or let several AI employees each do a step at the same time (parallel branches; see Parallel Branches).
- If a task can be described in one sentence and finishes in one go: hand it to an AI employee directly in chat.
- If the steps are fixed, it will run repeatedly, it needs human confirmation midway, or it must run deterministic code: use a workflow.
- If you only want an AI employee to do one thing on a schedule: use its scheduled tasks (on its detail page, Work Tasks → Create via Chat); there is no need for a workflow.
Page overview

Prerequisites
- Your role needs the View Workflows permission for Workflows to appear in the left sidebar. With this permission you can create, edit, publish and run workflows. The system role Member has it by default.
- If the company info has not been set up, the page shows Complete company info setup before creating workflows.
- What you can do with a given workflow depends on your relationship to it:
- The workflow's owner (the creator or the person it was transferred to) and the system role Admin: all actions, including sharing, transferring, unpublishing, deleting and changing the assisting AI employee;
- Colleagues added to the Can edit list: can edit, debug and publish;
- Colleagues with only Can use permission: can only view and run; to change it, Duplicate it. When viewing, the code of Run Code steps is not shown (with the note Code is shown only to people who can edit this workflow. You can duplicate it if you need it.), and the duplicate contains the code.
Workflow list

Click Workflows in the left sidebar.
- At the top is Waiting on Me: when a workflow run stops at a step that needs you (or your role) to act, it appears here; see Run a Workflow.
- Tabs: All, My Published, My Drafts, Shared by Colleagues. You can also Search workflows.
- The actions on a card depend on your permissions:
- For a published workflow, Run appears when you hover over the card;
- If you can edit it you see Edit this workflow on the canvas; if you can only use it you see View;
- Owners and admins have Share (Manage Sharing once it has been shared);
- A published workflow can be exported with Export as File; a workflow with at least one step can be copied with Duplicate;
- The More Actions menu on every card has Move to Folder (see the next section); owners and admins also have Unpublish (when published), Transfer and Delete (when unpublished).
Organize with folders
Folders are visible only to you. They do not affect the list your colleagues see and do not change the workflows themselves (names, sharing scope and owners stay the same).
- Click New Folder in the top right (if you have no folders yet, you can also click the dashed box above the workflow cards) and enter a name (it cannot duplicate one of your own folders). After it is created, you go straight into the folder.
- In a card's More Actions (⋯), click Move to Folder, choose a folder and click Move; you can also New Folder right in the dialog. Both your own workflows and workflows colleagues shared with you can be put in folders. A workflow can be in only one folder, and one that is already in a folder can be taken out with Remove from Folder.
- Folder cards appear above the workflow cards and show how many workflows each folder has under the current tab. When there are many folders, they wrap to new lines and all are shown. Click a folder card to enter it and see only the workflows inside; folders work together with the tabs and search.
- Once inside a folder, the current location is shown at the top: click All to return to all workflows, and click the folder name to Rename or Delete it. In the All view, hovering over a folder card shows a ⋯ (Folder Actions) menu that can also rename or delete it. Deleting a folder does not delete the workflows in it; you can still see them under All.
Nested folders are not supported yet, and neither is sharing a folder with colleagues. Inside a folder, New Folder, Import and New Workflow are not shown in the top right; to create one, go back to All first. A newly created workflow is not put into a folder automatically; you need to move it in.
Change the list order
The list is sorted by Last Run by default, and you can also arrange it in your own order:
- Click Custom Order above the cards, then click Reorder.
- Hold the handle on the left of a card and drag it onto another card, then release.
- Click Done to save; Cancel or Esc discards the change.
The order applies only to you and persists across browsers. Tabs, folders and search all share this order. Workflows you have not ordered (newly created ones, or ones just shared with you) go to the front.
Create a workflow
- Click New Workflow in the top right.
- In the Who should help you build this workflow? dialog, choose an AI employee you can use and click Choose This One, or click Skip, I'll Build It Myself. AI employees already used as a customer service entry are not listed.
- You enter the canvas editor. The workflow is named Untitled Workflow by default; click the title to rename it, with a maximum of 128 characters (the same limit applies to the names you enter when creating, duplicating or importing). The line under the title is the workflow's description (Describe what this workflow does is shown while it is empty); click it to edit directly: Enter saves, Shift+Enter inserts a line break, Esc discards, up to 500 characters, and you can also clear it. Renaming and editing the description take effect immediately; you do not need to click Save Draft, and no new version is created. While someone else is editing the workflow, neither the name nor the description can be changed.
Edit on the canvas
- Ask AI to help: click Ask AI to Help in the top left of the canvas (it shows the AI employee's name once one is assigned) to open the chat panel on the left, describe the workflow you want in natural language, and it builds the steps and writes the configuration for you. While the chat panel is open, step configuration and adding steps are read-only, but Ask AI to Edit on a Run Code step and Use under Code Versions can still be clicked, and the code can still be expanded to view and copy; for anything else, collapse the chat panel first. If you skipped this when creating, the owner and admins can choose later by clicking here; other collaborators are prompted to ask the author to choose first.
- Change the assisting AI employee: only the owner and admins can change it, using the button next to the name at the top of the chat panel (Switch to a different AI employee to help with this workflow); earlier conversations with the previous one are not deleted. Other collaborators can only keep using the one already chosen.
- Add steps: click Add Step at the bottom of the canvas and choose a type by group:
- Input: File Upload, Text Input, Choice. Wherever you place it, the run stops at this step and waits for a person to fill it in on the run details page or under Waiting on Me; even placed first, it is not filled in on the launch dialog (the first half of the panel's note for this group, Place at chain start = collect before launch; place mid-chain = pause mid-run to collect, does not match actual behavior). The exception is File Upload with Source set to From Knowledge Base: it automatically takes the latest version of the selected knowledge base file and does not stop, so configure it this way when a scheduled run needs a fixed file. The launch dialog and scheduled runs only carry the start parameters declared on the start step; declare the parameters needed for each run there; see Run a Workflow;
- AI Step: a step driven by a prompt;
- Run Code: runs fixed code deterministically, without calling a model;
- Capabilities: Call Tool, Run for Each Item, List Knowledge Base Files, Get Full Document, Knowledge Base Search, Email Draft, Email Action, Notify, Hand Off to AI Employee;
- Chat & Loop: Chat, Loop;
- Human Decision & Branching: Human Decision, Conditional Branch, Branch Merge, End. For the Wait Mode of Branch Merge and the rules for parallel branches, see Parallel Branches.
- Click a step on the canvas to configure it in the right-hand panel. When you delete a step, the steps before and after it are connected automatically.
- Call Tool uses the Personal Authorization of whoever runs it (for scheduled runs, the person who created the scheduled trigger) and directly calls read-only tools with Allow permission in a third-party app. The full result is passed to the next step as is, without being relayed by an AI employee. You can only choose apps that you have connected yourself. Tools that write data, or tools set to Require Approval / Deny in Permission Settings under App Authorization, cannot be chosen; to write data, use Hand Off to AI Employee. Inputs are generated from the tool's declaration, and you can enter fixed values or insert upstream results. A timeout or connection failure is retried once automatically, and if it still fails the whole run stops; a result larger than 1 MB also fails. If the other app changes a tool's inputs, the panel shows a notice and you must reselect the tool, otherwise the run fails at this step.
- The top toolbar also has Business Context (fixed information used repeatedly across the whole workflow, such as the company name and currency; fill it in once and every step can reference it) and Versions (opens Version History, where you can look back at older versions or Restore This Version: this saves a new draft version and does not affect the published version).
- When there are problems, Warnings appears on the toolbar; open it to see the list of issues, and you can click Ask AI to Fix. For wrongly filled settings, the list says which setting it is, what is filled in now, and what it should be; issues that will block publishing are marked Blocks publishing.
Save a draft
The editor does not autosave. When there are changes, Unsaved appears next to the title; click Save Draft to save a draft version. It saves automatically once before you open or collapse the AI help panel, before a debug run, and before publishing. If you leave the page with unsaved changes, it asks whether you want to save first. When you open some workflows, Save Draft may be active even without changes, and the issue list may say a step's kind is wrong: this cannot be fixed on the canvas, and clicking save corrects it.
Debug run
- Click Debug Run on the toolbar. If there are steps that send emails or hand off to an AI employee, it first warns that they will really execute. If start parameters are needed, fill them in as prompted (the gray text in an input is a format hint), then click Start Debug Run. It cannot be clicked until required fields marked with * are filled in, and the missing ones are listed below. If the draft has structural problems with parallel branches, Debug Run is grayed out; fix them according to the issue list first (see Parallel Branches).
- A debug run executes the current draft and, like a production run, really executes: emails are actually sent and steps handed off to an AI employee actually operate external systems. If you do not want the email to go out, change the recipient to yourself first.
- Debug runs do not appear in the default list of the run history; when troubleshooting, switch to Debug Run on the run history page to see them.
- When a debug run fails, the top of the debug panel shows the error, prefixed with the internal ID of the step that failed, not the step name on the canvas. For a Run Code step, the error first lists what was printed before the failure (the last part), then the error itself, and the error box stays on the line where the error actually occurred by default. Click Fix with Agent next to it to open the help chat panel with the error and a fix request filled into the input; you confirm and send.
- You can also use Auto Debug (requires an assigned AI employee): the platform first runs one round, and if it fails, the assisting AI employee reads the result, fixes it and runs again. If there are human decision steps, the top of the debug panel has an Approve on My Behalf switch (owners and admins can change it); when on, the assistant can click Approve for you, and you get a 20-second countdown to veto.
- When the assisting AI employee changes the code of a Run Code step during debugging to fix the current error, or when you explicitly say which step to change and how, it saves directly without asking you first, and after saving it tells you in the chat which step it changed and which version it was based on. In other cases it shows you the code first and saves only if you agree. To go back to the previous version, click Use on that version under Code Versions in the step's right-hand panel, or ask it in the chat to switch back.
- If you have chatted with the assisting AI employee about this workflow, a round you start yourself with Debug Run leaves a system message in the chat panel saying it replaces the earlier debug; after the run finishes, the AI employee does not look at it automatically. To have it look at the result or troubleshoot, ask it in the chat panel and it reads your most recent run of this workflow before answering. When a debug it started itself finishes, fails or stops to wait for a person, it continues handling it on its own.
- To debug just one step without rerunning the earlier ones: select that step and click Debug from This Step at the top of the right-hand panel. The earlier steps are not executed and reuse their outputs from your own most recent debug. You can choose Run to the End or Run This Step Only, and before starting it lists the steps that will actually write or send anything externally. If earlier steps were changed after that debug, the starting point automatically moves forward to the changed step; insisting on starting from the original point requires another confirmation, and the result does not count as sample acceptance. This is not possible if you have not debugged yet, if an earlier step did not succeed in that debug, or if the workflow has parallel branches; use Debug from Start instead.
Publish
- Click Publish in the top right, and in Publish This Version click Start Publishing.
- Before publishing, the structure and the human-confirmation gate are checked. Structural problems (such as broken connections or unreachable steps) must be fixed on the canvas. For rules whose conditions may overlap, enter a reason for each pair and tick the confirmation. For a version containing steps with write side effects or calculation steps, you must tick I have reviewed this version and it is ready to publish before clicking Submit and Publish.
- After publishing, this version is frozen and can no longer be changed. Runs in progress are not affected, and newly started runs use this version.
Only a published workflow can be run for real or run on a schedule; see Run a Workflow.
Share, transfer, import and export
- Share: set the Visibility (Only Specified Members or All Company Members and Specified Members), and under Roles & Permissions add the members or roles that can edit or use it. The can-edit list takes effect immediately, so you can edit together at the draft stage. The can-use scope takes effect after publishing, and colleagues run the published version.
- Unpublish: other people can no longer see the workflow or start new production runs. The sharing list is kept, and publishing again restores it.
- Transfer: hand the workflow to another colleague; you can tick the option to keep edit permission for yourself after the transfer.
- Export as File: exports the published version as a workflow package file. On the list page, click Import and choose this file to Import as Draft. Only the format exported by this platform is accepted; email recipients are cleared and must be filled in again, and the dialog lists what you need to handle after importing.
- Duplicate: copies it as a new draft that you own; version history and run records are not copied.
Build a workflow: FAQ
- The top of the canvas says "so-and-so is editing"? Only one person can edit at a time; others can only view. You can click Refresh to See Latest, and if necessary click Take Over Editing: the other person gets a notice, and their unsaved changes are lost.
- Why can I not edit a workflow a colleague shared with me? They gave you only use permission, so you can only view and run it. To change it, Duplicate it, or ask the owner to add you to the can-edit list.
- A colleague is grayed out and cannot be selected when sharing or transferring? Their role has no workflow permission (This member does not have workflow permission. Ask an admin to enable it first.). Ask an organization admin to select View Workflows for their role in Role Management. If someone you already selected lost the permission before you added them, they are removed from the selection and named in a notice. When sharing by role, if the role does not include workflow permission, it only shows This role does not include workflow permission and you can still add it.
- The workflow list says Couldn't load workflows. The network or service may be temporarily unavailable., or the debug panel says Couldn't load the record of this run. The network or service may be temporarily unavailable.? Your workflow and run records are not lost; they just failed to load this time. Click Retry; if you were offline, it reloads automatically once you are back online.
- After saving, a step warns that it references an optional upstream field, or that an upstream output used as a file may have no file? This is only a reminder and does not affect saving, debugging or publishing. The former means the upstream may not provide that field, and this step errors when it does not; it is best to reference the whole upstream output in code and then check. The latter means the upstream may not produce a file: debug runs use the file attached to the sample, and a real run needs a branch for the case where there is no file.
- Why is there no delete button? A published workflow must be unpublished (Unpublish) before it can be deleted, and only the owner and admins can delete.
- What happens when I delete a workflow? It disappears from the list and you cannot restore it yourself, and running tasks are stopped. Existing run records can still be opened through the original link only by the person who started that run, the workflow owner and admins.