Workflow Studio
Build, test, publish, and run workflows in the AgentRuntime Console.
On this page
Workflow Studio is the visual editor where you build workflows: a set of steps that run in order, call your tools and agents, and wait for people when needed.
Who this is for: anyone building a workflow in the Console. You need the project_contributor role (or higher) in the project to edit and run workflows. project_viewer can look but not change.
What you will do on this page: create a workflow, add steps, check it, run it, and (when you want a frozen copy) publish it.
New to workflows? Follow the step-by-step tutorial Build your first workflow first, then come back here for the full reference.
Before you start
- Sign in to the Console and pick the workspace and project you want to work in.
- If a step will call a tool such as Gmail or Slack, set up the connection first. See Integrations quickstart.
Build and run your first workflow
- Create the workflow
In the Console sidebar, open Workflows, then click Create workflow. If Studio opens the last workflow you worked on instead of the list, click the back arrow in the toolbar (Back to all workflows) first. The Find a workflow recipe dialog opens. Type a name in Workflow name if you want one, then click Blank canvas for an empty canvas (or pick a recipe to start from).
You should see the canvas, a toolbar along the top, and a grey chip that reads Draft with a "saved" time. Draft is the copy you are editing, not a sign that the workflow is in use. See Draft and published versions.
On a blank canvas, a card asks What should this workflow do? with a text box, a Build it button, example chips (Draft → approve → send, Summarize and notify, Simple 2-step starter) and an or pick a recipe link.
WarningThe Copilot cannot add steps to the canvas yet. Build it and the example chips send your sentence to the Copilot in the chat panel. In testing, the canvas stayed empty: the Copilot answered with a plan to follow by hand, and in one case it left the canvas for the workflow list. An example chip sends its text straight away instead of putting it in the box. To get steps on the canvas, drag them from the palette or pick a recipe.
A recipe workflow open in Studio, before its first run Workflow Studio with a workflow open: toolbar on top, step palette on the left, canvas in the middle, run panel at the bottom - Add steps
Add steps from the step palette and drag them onto the canvas. (A single click also adds a step, but it always lands in the same spot, so several clicks stack steps on top of each other. Drag them apart or click Auto layout.) The palette has three sections. Built-in lists the step types: Agent, External agent (Cursor Cloud), For each, Human, LLM, Lua, While and Workflow. Tools from your connected integrations are listed under Platform connectors and Hosted apps. To add a connector, click Browse connectors above the list. An empty section also shows its own button, Browse platform connectors or Browse hosted apps. See Step types for what each built-in step does.
The step palette - Connect the steps
Draw a line from one step to the next. A step starts when the steps it depends on have finished. Steps that do not depend on each other run at the same time.
- Fill in each step
Click a step to open its settings. To use data from an earlier step or from the run's start input, type
{{and pick a suggestion. See Template intellisense and Variables panel. - Dry-run it
Click Dry-run in the toolbar. A dry-run checks the workflow without calling any tool or model. Results appear in the Dry Run tab of the run panel at the bottom. See Dry-run validation.
WarningA dry-run does not execute anything, but the canvas shows every step as Success. The green Success badges after a dry-run look the same as after a real run. Nothing ran and nobody was asked to approve. The proof is in the Dry Run tab: it reads Dry-run passed with no issues and the time, and lists the checks performed (graph, step config, Lua syntax, step types, agent settings, MCP resolve, dependencies, skip conditions, MCP bindings, tool catalog and templates). Copy report and JSON copy the result. Run a dry-run before you publish.
- Set the starting input (optional)
Click Setup to open Workflow setup. See The Setup dialog below and Run setup.
- Run it
Click Run. Studio saves your latest edits first, then starts a run of your draft. Watch the steps in the Events and Timeline tabs of the run panel. While a step is running, its line in Events reads Processing… with how long it has been running and its time limit, for example "Processing… (12s) · times out after 60s". If the step goes past its limit the line says so, and if the run starts a step again it adds the attempt number. Click Run once and wait: a double-click starts two runs in the same second, and any approval step then creates two tasks.
You do not have to publish to run or test. Studio saves your edits automatically, and Run always runs the latest saved edits. Publish when you want a frozen copy that does not change.
The Setup dialog
Click Setup to open Workflow setup. The list on the left, headed TRIGGERS, shows the seven ways a workflow can start:
| Tab | Shown as | What it is for |
|---|---|---|
| Manual | Defaults & Run | The values a Run from Studio sends |
| Inbound | Webhooks | Start from a web address other tools call |
| Events | Platform | Start when something happens in AgentRuntime |
| Cron | Schedules | Start on a schedule |
| Sessions | Per conversation | Start per customer conversation |
| API | PAT Run | Start with an API key |
| Apps | Used by | The apps that use this workflow |
On Manual, from the top:
- Run target and Run as choose who the run is for. Workspace is one run for the whole workspace. Principal and segment target your embedded end users. Team starts one run for each Console team member.
- Entry step is the step the run starts at.
- Starting input lists fields such as
promptandsystem_prompt, with their type and where the value comes from (From step or Saved default). - Shared input holds the values for
{{input.*}}in your step templates. In the Approve before it goes out recipe,customerandmessageare here. To try a different sample, change them here, even though the big text field is under Starting input. Scroll down to find them. - Extra keys with + Add field adds more inputs.
The footer has Preview JSON, Cancel and Save defaults. Save defaults only prefills the form. The dialog has no Run button: close it and click Run in the toolbar. After you add some steps, the Setup button can turn orange to say the workflow needs attention, without saying why.
Studio calls the same inputs Starting input and Shared input here, and Start inputs in the Variables panel. They all feed {{input.*}}.
Step settings
Click a step to open its settings on the right. An llm step shows:
- Model, with a note such as Billing: Platform default and a Model details link.
- Temperature: randomness from 0 to 2. Lower is more focused, higher is more creative. The recipe uses 0.7.
- Max output tokens: the upper bound on the reply length, 1 to 128,000. Large values can slow runs and increase cost. The recipe uses 1024.
- Prompt: the task text. It supports
{{steps.*}}and{{input.*}}templates. Under it, Studio counts the variables it found, and the(x)button inserts one. - System prompt (optional).
Studio saves a change within about a second. Save stays greyed out and the chip reads Draft · saved just now.
Choose a model
The Model list opens a picker with Platform and Workspace switches, a search box, and a Browse column (Featured, All, OpenAI, Anthropic, Google, Google Gemini, Meta, Mistral). Platform uses AgentRuntime's models and bills your credits. Workspace uses your own provider keys. See LLM providers.
The list shows names such as GPT-6 Astra, GPT-6.1 Sol, Gemini 4 Argon and Claude Fable 5.1, without a description, speed or price. A warning triangle next to a model means your workspace has no account for the selected source.
New recipes use GPT-4o mini by default. In testing, that model was recorded but not charged, so the credits panel showed no AI cost. Claude Haiku 5.5 had a price, so using it did use credits. The credits panel shows whole cents, so a very small cost can read $0.00. See Billing and credits.
Read a step's output
After a run, click View next to the step name in the bar under the canvas (for example View Draft a reply) to read what the step produced. The dialog shows the status, the model and the time taken, and Source, Markdown and Html tabs, with Copy.
Variables panel
Variables opens Variable reference, with a search box and three groups:
- Start inputs: the inputs the workflow starts with, each with its type and template path such as
{{input.customer}}, and a copy button. You can add one here. - Run context: read-only run details in
{{run.*}}templates and Lua scripts:run_id,external_id,external_user_id,principal_id,segment_id,user_id,trigger_typeandstarted_at. - Connection context: the resolved connection identity in
{{connection.*}}templates and Lua, filled in at run start.
Work on the canvas
Undo and redo
Click Undo or Redo in the toolbar to step back or forward through your edits. The two buttons sit just after the Setup, Run and Dry-run group, and they stay in the bar even in a narrow window. A button is greyed out when there is nothing to undo or redo. A workflow you have just opened has nothing to undo.
You can also press Ctrl+Z to undo and Ctrl+Y or Ctrl+Shift+Z to redo (use Cmd on a Mac). See Keyboard shortcuts and links for all the canvas keys, including Delete and Ctrl+S.
Move around the canvas
- Scroll over the canvas to zoom in or out toward your pointer. The zoom goes from 25% to 250%.
- Drag an empty part of the canvas to move around.
- The three buttons at the bottom left of the canvas zoom in, zoom out, and fit the whole workflow on screen.
- The minimap at the bottom right shows the whole workflow as small boxes. Drag inside it to move the view. Scroll over it to zoom.
See a run on the canvas
At the top left of the canvas, a small switch has two buttons: Editing and Run.
- Editing shows the workflow you are building. This is the normal view.
- Run shows the workflow as the selected run executed it, with each step marked with how it ended in that run. The first 8 characters of the run's ID show next to Run. Run is greyed out until you select a run.
- Open the run panel
Expand Run logs and metrics at the bottom of Studio.
- Pick a run
Click a run in the Runs list. The canvas switches to Run. A status badge for the run appears under the switch.
- Go back to editing
Click Editing in the switch, or the Editing row at the top of the Runs list (marked Draft). Studio brings back the canvas you were working on.
By default, when you click Run in the toolbar, the canvas switches to the new run as soon as it starts. To stay on Editing instead, tick Stay on canvas when a run starts at the top of the Runs list. See Execution timeline.
In the Run view:
- The canvas is read-only. If you try to change something, Studio says "Run inspect is read-only" and points you to Back to editing. The step settings panel has a Back to editing button, and the Editing button does the same.
- The Dry Run tab says "Dry-run applies to the editing canvas". Go back to Editing to dry-run your changes.
- If you can edit the workflow, the badge area also has two buttons:
| Button | What it does |
|---|---|
| Fork | Makes a new workflow from this run's graph and run setup, and opens it. You see "Workflow forked from run". |
| Restore | Asks "Restore workflow from this run?". Click Restore workflow to replace your draft with the graph from this run. Studio saves your unsaved edits first. |
Fix a stale tool step
A step that calls a tool can fall out of date. When a dry-run finds one, it lists the problem under Issues by step in the Dry Run tab with one of two banners. The URL banner also shows in the step's settings.
| Banner | What it means | What to click |
|---|---|---|
| Stale MCP URL on this step | The URL saved in the step no longer matches where its MCP instance lives now. The banner shows the Saved URL and Instance resolves to. This often happens after an MCP server's router URL changed, or after you copied a workflow from another environment. | Sync MCP URL updates the step to the current URL and runs the dry-run again. Other steps that use the same MCP instance are updated too. Open step jumps to the step. |
| Stale MCP tool on this step | The tool the step calls is no longer published. The banner shows the Saved tool. This often happens after a connector was updated, or after you copied a workflow from another environment. | Update MCP tool opens Replace MCP instance. Expand an instance to see its tools, pick the current one, and click Use. Open step jumps to the step. |
If the step is switched off, the banner title ends with "disabled step" instead of "step". That step will not run, so you can fix it or delete it.
On the canvas, a step with an out-of-date tool also shows an Update badge. Its settings show "This tool is out of date." with an Update button. Both open the same Replace MCP instance dialog.
Studio saves your edits automatically, so the fix is kept. Run the dry-run again to check that the banner is gone.
Draft and published versions
Every workflow has one editable copy, called the draft, and any number of frozen published versions (v1, v2, and so on). The API and the Platform MCP call the draft Live.
| What it is | How it changes | |
|---|---|---|
| Draft | The copy you edit. Studio Run uses it. | Every save changes it. |
| Published version | A frozen snapshot of the draft with an optional note. | Never changes. |
Each place that starts a workflow can choose what to run: Draft, Last published (your newest published version), or a specific version such as v3. You see this choice as Runs on schedules, webhooks, and event triggers, and in the Share menu. Starting a run from Studio always runs the draft.
A run that has already started keeps the version it started with. Later edits never change a run in progress.
The toolbar chip Draft means "the copy you are editing", not "in production". A grey chip such as Draft · saved 10s ago appears as soon as Studio auto-saves an edit, and a workflow you have never published shows it too. When the workflow has a published version and your draft has changes that are not in it, the chip adds · unpublished changes (on a narrow toolbar an amber dot stands for it; point at the chip for the full text). Only the Published vN chip is green. Nothing is published, shared or used by anyone else until you Publish. History says it directly: your draft is the copy you edit, Studio Run and anything set to run the draft use it, and publishing freezes the draft as a numbered version that never changes.
Publish a version
- Open History
Click History in the toolbar (in a narrow window it is an icon). It has two tabs, Draft revisions and Published versions, and a Publish… button. The Publish button in the toolbar opens the same dialog directly.
- Publish
Click Publish…, add a note such as "Added the refund check" if you like, and click Publish vN. The dialog reads Publish vN: it freezes the draft as that version, a published version never changes, and the draft stays editable. Anything set to run the draft, including Studio Run, keeps running the draft.
You should see a message "vN published". If some triggers still run the draft, Studio asks whether to switch them: Keep on draft or Switch to Last published.
In History you can also:
- Restore (Draft revisions tab, then Restore into draft) to bring an earlier saved state back into your draft as a new revision. Nothing is lost: restoring copies a revision into your draft as a new one. Saves are grouped into revisions, listed as Rev 3 Current, Rev 2 and so on, with the source (for example Studio or API), who saved it and when. A revision does not say what changed.
- Open Published versions to see your versions. Before the first publish it reads that runs use your draft until you publish.
- View or Compare with draft on a published version.
- Edit from vN to copy a published version back into your draft.
- Copy link to share the link of a published version.
The Published vN chip next to the Draft chip shows your newest published version. Anything set to Last published runs it.
Import, export, and JSON
The right end of the toolbar adapts to your window width. In a wide window you see:
- Canvas and JSON, which switch between the visual editor and the graph as JSON. See JSON editor.
- The JSON menu (
{ } JSONwith an arrow): Export JSON downloads the graph, Import loads a graph from a file or the clipboard, Edit JSON opens the JSON view, and View JSON shows the graph read-only. Import shows a preview and, for tool steps, lets you map each tool server to one of your own instances before the graph is applied. - Auto layout (left to right, top to bottom, or grid) and the full-screen button tidy the canvas.
- Variables opens a reference of every template variable available in the workflow.
The JSON view shows every step's settings, including a plain-language description (for example "AI writes a first draft") that the canvas does not show. Apply to canvas applies your JSON edits and Reset discards them.
In a narrower window these fold into More (the ⋯ button). More has Auto layout, Fit to screen, Variables, Export JSON, Import and View JSON, but no way to switch to the JSON editor. Widen the window to edit JSON.
Share a workflow
Open Share in the toolbar, then Share settings…. The Share workflow dialog asks who you are sharing with:
- Outside your org: an unlisted share link, not on the Marketplace. The person signs in to AgentRuntime and adds their own copy to their workspace. The link installs your newest published version, never unpublished draft edits. The URL stays the same.
- Your team: the Studio link for people who already have access to the project, with Copy studio link.
- API / script: a ready-made request that starts the workflow, in cURL, PowerShell, Python, Go or TypeScript. It uses a
workflow:runkey from Settings → API keys and does not share the workflow itself. The example sends no input, so the run uses your saved defaults from Setup. - More options: List on Marketplace or Export as JSON file.
Create share link & copy publishes your workflow. If your draft changed since your last publish, creating the Outside your org link publishes the draft as a new version, and that is the version the other person gets. Check what the workflow contains first: its prompts, step settings and saved sample input (such as a customer name and message) are part of what they install.
The Share menu also has Copy Studio link (same tenant), which does the same as Copy studio link on the Your team tab.
Updates to an installed copy
A workflow you added from a shared package shows Installed from <package> vN in the header. When the publisher releases a new version, a pill such as v1 → v2 appears. Click it to open Update to vN, which shows what the publisher changed, what you changed, and any databases or child workflows that need a choice.
- Update draft merges the update into your draft as a new revision. Your triggers, webhooks, connections, and run history stay.
- Update and publish does the same and publishes a version straight away.
- Add as a new copy instead leaves this copy untouched.
- Replace with theirs replaces your draft with the publisher's version.
- Undo (in the message after an update) puts back the revision from before.
- Keep this up to date can be Off, Update draft automatically, or Update and publish automatically.
Pin and rename a workflow
The workflow list is the page you see in Workflow Studio before you open a workflow. It shows your workflows on the left and, for the selected one, the number of steps ("nodes on canvas"), Latest run, Open workflow, Archive, Share and a Recent runs table. On a phone the list fills the screen: tap a workflow to open its details in a sheet at the bottom.
From inside a workflow, click the back arrow in the toolbar (its tooltip is "Back to all workflows") to get to it. Each row has an icon that opens the workflow, and a three-dot menu on its right with these items:
| Menu item | What it does |
|---|---|
| Pin / Unpin | A pinned workflow shows a pin icon and stays at the top of the list. The other workflows are listed with the most recently changed first. Pins are saved to your account for the current project. |
| Rename | Opens Rename workflow. Type the new name in Name and click Save. Only the name changes, not the steps. You see "Workflow renamed". |
| Create copy | Makes a copy named like the original with "(Copy)" after it. |
| Delete | Does the same as Archive below. |
Rename and Delete are greyed out if you cannot edit workflows. Pin needs a project: if none is selected, Studio asks you to choose a project first.
Archive a workflow
In the workflow list, select a workflow and click Archive. The workflow is hidden from your lists and its run history is kept. To get an archived workflow back, contact support. You need workflow edit permission to archive.
Common problems
| Problem | What to try |
|---|---|
| Run is greyed out | The canvas is empty, or your role cannot run workflows (project_viewer can only look). |
| A trigger runs old behaviour after you edited | The trigger is set to Last published or a fixed version. Change Runs to Draft, or publish and switch it to Last published. |
| Studio says "The draft changed somewhere else" | Another tab, an agent, or the API saved a newer revision. Autosave pauses so it does not overwrite it. Click Reload draft (this drops unsaved edits in the current tab). |
A {{…}} value is empty at run time | Check the step id in the template. See Template intellisense. |
| Studio says "Run inspect is read-only" | The canvas is on the Run view. Click Editing at the top left of the canvas. See See a run on the canvas. |
| A step shows Stale MCP URL on this step or Stale MCP tool on this step | The step points at an old URL or a tool that is no longer published. See Fix a stale tool step. |
| Delete does nothing on the canvas | Click the step so it is selected, and make sure you are not typing in a field. Backspace never deletes a step. |
Next steps
- Step types: what each step does and its fields
- Run setup: starting input and saved defaults
- Keyboard shortcuts and links: canvas keys and shareable links
- Execution timeline: the run panel tabs and toolbar
- Runs and Command Center: watch and control runs
- Human tasks: approvals and replies
- Workflow patterns: recipes you can copy














