Esta página no está disponible en español. Se muestra la versión en inglés.

Workflow Studio

Build, test, publish, and run workflows in the AgentRuntime Console.

En esta página

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

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

    Advertencia

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

    Workflow Studio with the recipe Approve before it goes out: the toolbar shows History, a green Live saved 11s ago chip, 3 nodes, Publish, Share, Setup, Run and Dry-run, the palette on the left lists eight built-in steps, and the canvas shows Draft a reply, Approve the reply and Mark it sent, all Pending, with No runs yet in the run panel
    A recipe workflow open in Studio, before its first run
    Workflow Studio showing the toolbar with Publish, Share, Setup, Run and Dry-run, the step palette on the left, a three-step workflow on the canvas, and the run panel with the Events, Timeline, Context, Full Logs and Dry Run tabs at the bottom
    Workflow Studio with a workflow open: toolbar on top, step palette on the left, canvas in the middle, run panel at the bottom
  2. 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 with a search box and Browse connectors, the Built-in section listing Agent, External agent (Cursor Cloud), For each, Human, LLM, Lua, While and Workflow, then empty Platform connectors and Hosted apps sections with Browse buttons
    The step palette
  3. 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.

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

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

    Advertencia

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

  6. Set the starting input (optional)

    Click Setup to open Workflow setup. See The Setup dialog below and Run setup.

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

Nota

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:

TabShown asWhat it is for
ManualDefaults & RunThe values a Run from Studio sends
InboundWebhooksStart from a web address other tools call
EventsPlatformStart when something happens in AgentRuntime
CronSchedulesStart on a schedule
SessionsPer conversationStart per customer conversation
APIPAT RunStart with an API key
AppsUsed byThe 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 prompt and system_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, customer and message are 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.*}}.

The Workflow setup dialog over the Approve before it goes out workflow. The TRIGGERS list on the left shows Manual (Defaults and run), Inbound (Webhooks), Events (Platform), Cron (Schedules), Sessions (Per conversation), API (PAT run) and Apps (Used by). On the right are the note Saved defaults prefill this form only, Run target, Run as set to Workspace, Entry step Draft a reply, and Starting input with prompt and system_prompt, then a Shared input heading cut off at the bottom. Preview JSON, Cancel and Save defaults are in the footer
The Manual tab of Workflow setup, top
The same Workflow setup dialog scrolled down: Starting input with prompt (string, From step) and system_prompt (string), then Shared input with customer (string, Saved default) set to Priya Nair and message (string, Saved default) holding the customer's complaint about order 4821, then Extra keys with an Add field button
Scroll down to find Shared 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.

Workflow Studio with the Draft a reply step selected. The right panel shows the model GPT-4o mini with Billing: Platform default, Temperature 0.7, Max output tokens 1024 and the prompt text with two variables detected
Step settings for the Draft a reply step

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.

Nota

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.

The Model list open on Draft a reply, with Platform and Workspace switches, a search box, a list of models with GPT-4o mini ticked and warning triangles on three Gemini models, and a Browse column from Featured to Mistral
The model picker

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.

A dialog titled Draft a reply, marked Completed with the model gpt-4o-mini and 3193 ms, with Source, Markdown and Html tabs, a Copy button, and the text of a reply addressed to Priya
The output of the Draft a reply step

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_type and started_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.
  1. Open the run panel

    Expand Run logs and metrics at the bottom of Studio.

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

  3. 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:
ButtonWhat it does
ForkMakes a new workflow from this run's graph and run setup, and opens it. You see "Workflow forked from run".
RestoreAsks "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.

BannerWhat it meansWhat to click
Stale MCP URL on this stepThe 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 stepThe 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 isHow it changes
DraftThe copy you edit. Studio Run uses it.Every save changes it.
Published versionA 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.

Nota

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

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

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

    The History dialog with Live revisions and Published versions tabs, Catalog package… and Publish… buttons, and a list of revisions with Restore buttons

    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.

The History dialog. Its intro reads Live is the copy you edit: Studio Run and anything set to Live run it. Publishing freezes Live as a numbered version that never changes. Under it are the tabs Live revisions and Published versions and two buttons, Catalog package and Publish. The note says saves are grouped into revisions and restoring copies a revision into Live as a new revision, so nothing is lost. Three rows follow: Rev 3 Current from Studio, Rev 2 from API with a Restore button, and Rev 1 Before History started with a Restore button
The History dialog
The History dialog on the Published versions tab. It says No published versions yet and explains that runs use Live until you publish, and that Publish freezes Live as v1 while callers set to last published keep running it as you keep editing
Published versions before the first publish
The Publish v1 dialog. It says Freezes Live as v1, a published version never changes, Live stays editable, and anything set to run Live, including Studio Run, keeps running Live. It has an optional Note box with the placeholder What changed in this version, a Cancel button and a Publish v1 button
The Publish dialog

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 ({ } JSON with 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.
Workflow Studio in JSON view, headed Workflow JSON with 3 steps and 2 edges, and the buttons Edit script, Reset and Apply to canvas. The editor shows the workflow_id and the first step with its description AI writes a first draft, llm_params, model claude-haiku-5-5, name Draft a reply and the prompt, then the start of the second step with approver set to allow_initiator true and any_member true
The JSON view

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:run key 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.
Advertencia

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.

The Workflow Studio list for the project tim33 Default Project: a Create workflow button and a search box above one workflow, Approve before it goes out. On the right, a detail card says 3 nodes on canvas with a green Latest run: Success label, the buttons Open workflow, Archive and Share, and a Recent runs table with one successful manual run
The workflow list
The Share workflow dialog for Approve before it goes out with three tabs: Outside your org (selected), Your team and API / script. The panel says Share outside your organization, Not created yet, explains that the link is unlisted and installs the newest published version, and shows a Create share link and copy button above a collapsed More options row
The Share workflow dialog on the Outside your org tab

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 itemWhat it does
Pin / UnpinA 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.
RenameOpens Rename workflow. Type the new name in Name and click Save. Only the name changes, not the steps. You see "Workflow renamed".
Create copyMakes a copy named like the original with "(Copy)" after it.
DeleteDoes 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

ProblemWhat to try
Run is greyed outThe canvas is empty, or your role cannot run workflows (project_viewer can only look).
A trigger runs old behaviour after you editedThe 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 timeCheck 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 stepThe 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 canvasClick the step so it is selected, and make sure you are not typing in a field. Backspace never deletes a step.

Next steps

Editar esta páginaagentruntime-io/agentruntime-docs