Skip to main content
Version: Studio 2.2.32

Flows: build a Flow

For Studio users turning a repeatable process, such as a daily risk pack, into a Flow in the Flow editor. Before you start: every Task needs an active agent (Agents).

Open the Flow editor​

  1. In Flows, click Create Flow in the Action Bar. To change an existing Flow, open it and click Create new version; the editor opens with the latest saved configuration, and Flow settings says "Based on version N." To start from an older version, click Create new version on that version's page.
  2. The canvas starts empty: "Add a Task to start". To have an agent help you design the Flow in a chat instead, click Create flow via chat and choose an agent (Turn a chat into a Flow).

Add and configure steps​

  1. Click a type in the palette ("Choose a step to add it to your Flow."), or drag it onto the canvas. Each new step gets a title and a handle such as new-task, and lands clear of the steps already on the canvas, so it never covers one.
  2. Click a card to open its inspector. Every step has a Title, a Handle ("How other steps refer to this one."; lowercase letters, digits and single dashes, unique) and Delete step. Steps other than a Handoff show Model, "Set by the step type." Escape closes the inspector.
  1. Fill the fields for the step's type:

    StepFields
    TaskAgent: search your active agents and pick one, for example "Equity Volatility Specialist". Objective ("What should the agent do here?"): type @ to refer to a connected earlier step's result, and {{params.name}} for a run input (Use run inputs in a step). Output ("What comes out - a memo, a table, a chart…"): a description and an Output kind (text, pdf, docx, pptx, xlsx, data or any), given to the agent with the objective as what the step must deliver. Two switches make it pause: Hold the result for my review and Wait for my go-ahead before it runs; the card then reads "Approval required". Save to Folio, after Output, saves the step's files to a Folio folder (Save a step's files to Folio).
    HandoffMessage ("What should you check before the run continues?"), the Inbox card you read when the run gets here. Who acts: You (the Flow's owner).
    ConditionalCondition ("What is the decision based on?"), which can name run inputs as {{params.name}}. Each outgoing connection is a branch: label each one under Branches, for example "Breach" and "Within limits". The label shows as a pill on the connection.
    Intelligence Graph updateSee Flows: the Intelligence Graph update step.
    Redact PIISee PII redaction.

Save a step's files to Folio​

A Task can save the files it writes to a Folio folder as soon as it finishes, so the next run, a colleague or an agent finds them there without anyone copying them by hand.

  1. In the Task's inspector, under Save to Folio ("When the step finishes, matching files from the run's outputs are saved to the folder you choose."), tick Save this step's files to a Folio folder.
  2. Choose Choose folder. Choose where to save reads "Choose a folder in your Uploads, or a folder in the Team folder if you can change its files." Open a folder, or make one with New folder, and choose Use this folder. The field shows the path, for example "Team folder › Research › Thesis cards", with Change folder, and the step's card reads "Saves to Team folder › Research › Thesis cards".
  3. Under Files to save, type the file names to save, one per line: "One file name per line. Use * for any characters, for example *_thesis_card.md."
  4. Save a new version. Studio checks that you can see the folder as you save.

Under the field, Studio says what happens next: "A file with the same name in the folder gets a new version. Its earlier versions stay in its History." and "Files are saved as the person the run runs as: you for Run now, and the person who created the schedule for scheduled runs. Runs started with an API key can save only to the Team folder."

StartFiles are saved as
Run now, Run againThe person who starts the run.
A schedule or a Data Bridge triggerThe person who created the schedule.
A queued runThe person the run was started as.
An API keyThe key. It can save only to a folder in the Team folder, and only when everyone can change the Team folder's files.

Approving or sending back a step does not change who saves.

  • Which files. Every file the step wrote under the run's outputs, in any subfolder, whose name matches a line and that was written after the step started. Files are saved flat into the folder by name. A step saves at most 50 files. The run's result.json, the long handover copies under handovers (How steps pass on their work) and hidden folders are never saved.
  • Versions. A file whose name is already in the folder gets a new version; a file identical to the folder's current version makes none. In Folio's History, a version a run saved reads "Saved by a Flow run", saved by the person the run runs as. Each one is stored with the note "Saved by the Daily risk pack run of 19 Nov 2026, 07:00 UTC" (the Flow's name and the run's start, in UTC).
  • The run keeps its own copy of every file, saved or not. A file that could not be saved stays in the run's outputs, and the step finishes with a warning (What a run shows).
  • When. A step saves as soon as it finishes, after its own PII redaction pass when the Flow's redaction covers outputs. The files are in the folder while the rest of the run goes on, and a later step that fails, runs out of time or is stopped does not take them away. A step that holds its result for review saves once its result is accepted.
  • A value found later in the run. When the run ends, however it ends, and when it waits for a person, every file a step saved is read back from Folio and checked against the personal data the run has found since. A file that holds some gets the redacted file as its current version, and the version saved before is removed from its History. Until that check, a saved file can still hold a value only a later step identifies. If a saved file cannot be checked, the step finishes with a warning such as "1 file saved to Team folder › Research › Thesis cards could not be checked for personal data the run found after saving it. Check the file in Folio."
  • If redaction has not finished on a file the step would save (it did not finish on that file, or a step running alongside is still writing it), nothing leaves the run at the step's end: the step's files are saved when the run ends, after its last redaction pass, and its Saved to Folio row reads "Saved when the run ended". A run stopped while it waits for a person saves nothing for that step, and says so.
  • Where you can save. A folder inside your own Uploads, or, in a governed deployment where you can change the Team folder's files, a folder inside the Team folder. Not Uploads itself, the Team folder's top level, or a chat's, run's or Flow's folder. Choosing an Uploads folder in a governed deployment shows "Only you can save to your Uploads. If other people run this Flow, choose a folder in the Team folder."
  • A file fetched with someone's own sign-in is never saved into the Team folder.
  • Renaming or moving the folder in Folio does not break the setting: the step keeps saving to it.
  • Before each run, Studio checks that the folder still exists and that the person the run runs as can save there (Check access before a run).
  • The editor refuses a setting it cannot use: "Choose the folder this step saves to, or turn off Save to Folio.", "Enter a file name pattern such as *_thesis_card.md. Use letters, numbers, spaces and . _ ( ) - * ? only.", "You can add up to 5 patterns." A pattern is at most 200 characters. On save, "The folder chosen for @thesis-cards could not be found. Choose another folder." means you can no longer see the folder.

Use run inputs in a step​

A Task's Objective, a Handoff's Message and a Conditional's Condition can name a run input as {{params.name}}, for example "Write the morning note for {{params.sector}}" or "Is {{params.limit_breach}} true?". When the run starts, Studio puts the run's value in its place, so the run's steps, Lens and approval cards show the value.

  • A text, number, yes / no or choice input becomes its value as text; yes / no reads true or false.
  • A file, folder or S3 prefix input becomes its folder in the run, for example inputs/positions_file/.
  • An input the run was not given takes its default. An empty value becomes empty text.
  • A name that is not one of the Flow's inputs, or is misspelt, stays as written, {{params.name}}, and Studio does not warn you. Check the spelling against Run inputs.

How steps pass on their work​

Each step ends by writing a handover: what it found, what it produced and where. The steps that depend on it get that handover in full.

  • A handover of up to 12,000 characters by default goes whole into the next step's instructions. Together, the whole handovers one step receives stay within 36,000 characters by default; when they would not fit, the longest are handled as long handovers.
  • A longer handover is not cut. The next step gets a short summary, its opening and its size, and reads the whole handover with its read_handover tool, one page at a time (12,000 characters by default), before it starts. Every step has the tool, with or without a Kernel, and can read the handover of any step it builds on. A step that tries to write its own handover before reading every page is told to read the rest first.
  • In a Flow run, a long handover is also saved in the run's Results under handovers, so you and a chat about the run can read it. Lens's Step details for the step that wrote it shows Full handover saved as a file ("This handover is long, so the next step reads it page by page.") with Open full handover, and About this run › Details lists Handovers saved as files, for example "@research and @models". When the next step reads it, the step shows "Reading a handover", and Lens shows "Read the handover from @research, page 1 of 2" with View handover. A handover is never listed under Sources.
  • A Conditional step reads long handovers the same way before it chooses a branch.
  • If a step reads only part of a handover, the run finishes Completed with warnings, for example "@thesis-cards: Read only part of the handover from @research (1 of 2 pages), so it may have missed something." A handover longer than 2 MB by default is read with read_handover up to that size, and its last page names the file the rest is in, which the step reads with its file tools; the run warns that it was pointed to the file.
  • Your administrator can change the length passed whole (Step handover passed whole), the total (Handover text put whole into a step), the page size (Handover page size), the opening (Opening of a long handover) and the read size (Handover size read by the next step) (Limits and quotas).

In Studio Chat, the agent reads a long step result page by page in the same way before it answers.

Connect steps​

  1. Drag from a card's right handle (Connect to a later step) to another card's left handle (Connect from an earlier step). Hover a connection and click Remove connection to delete it.
  2. To remove a step, select its card and press Delete, or click Delete step in its inspector. Delete step asks you to type the step's handle, for example @new-task, then click Delete.

Set run behaviour and inputs​

Click Flow settings in the Action Bar. The panel holds:

SectionSettings
Flow detailsFlow name (80 characters) and Description (1,000 characters).
Run behaviourParallel steps, 1 to 10, default 3. When another run is active: Skip (default), Queue or Parallel. If a step fails: Stop on first failure (default; "A failed step stops the run; nothing downstream starts.") or Continue where possible ("Steps that do not depend on the failed one keep going."). What each does on a run: Flows: run, schedule, approve. Open finished runs on: Lens timeline (default; "Every recorded step in order."), Results ("The files and result the run produced, for example the daily risk pack.") or Overview ("Status, summary and anything that needs your judgement."). It is a setting on the Flow, not on a version: on an existing Flow your choice is saved as soon as you make it and applies at once to every run of the Flow, with no new version to save or activate. Where it applies: Flows: run, schedule, approve.
Run time limitOff by default. Stop runs after a set time sets 4 hours; type 0.25 to 168 in Time limit in hours or pick 1 h, 4 h, 24 h or 72 h. "The limit includes time spent waiting for approval. When it is reached, the run stops."
Personal data protectionSee PII redaction.
Run inputsValues a run is given, available to steps as {{params.name}}. Add input, then set its Name, Type and whether it is Required, a default and a Description ("What the caller should pass"). "A file or folder input arrives in the run as a read-only copy."
Reference files"Files every run of this Flow can read, such as your desk limit table or broker mapping." See Take files from Folio.
Structured resultOptional: Define a result schema (optional) opens a JSON Schema field, at most 32 KB, that validates outputs/result.json, the result available through the API. The file is checked as the run closes, with one pass to correct it (what happens on a mismatch).

Approvals are not in this panel. From Studio 2.2.16, a Flow's page has its own Approvals section, after Where finished runs open: Approval mode (Ask or Don't ask), What still asks, Approval rules and When nobody answers. Like Open finished runs on, it is a setting on the Flow: a change applies at once to every new run, with no new version to save (Approval modes and rules).

The input types:

TypeExtra fields
TextOptional Minimum and Maximum length, optional Pattern (regular expression) that must match the whole value.
NumberOptional Minimum and Maximum.
Yes / noUse Yes as the default.
ChoiceChoices, comma-separated, for example EMEA, APAC, Americas.
S3 prefixAWS connector, from the connectors on the Flow's agents; optional Fixed bucket and Default prefix; Maximum objects per run (default 500, at most 5,000) and Maximum bytes per run (default 2 GiB, at most 20 GiB). The objects are copied into the run before it starts.
File from Folio"One file from Folio. Each run copies it in when the run starts." Optional Default file (optional) with Choose from Folio.
Folder from Folio"Every file in one Folio folder. Each run copies the folder in when the run starts." Optional Default folder (optional); Maximum objects per run and Maximum bytes per run as for an S3 prefix.
Newest file in a folder"The newest file in one Folio folder, optionally matching a name such as positions_*.csv. Each run picks the newest match when it starts." Default folder (optional) and Name pattern (optional): "* matches any characters. Leave it empty to use the newest file of any name."

Take files from Folio​

A Flow can take the files it works on from Folio instead of an S3 bucket, and can pin files every run reads.

  1. In Run inputs, add an input of type File from Folio, Folder from Folio or Newest file in a folder, for example positions_file (File from Folio, required) and intraday_blotters (Folder from Folio).
  2. Choose a default with Choose from Folio, or leave it empty: "No default. Run Flow asks for the file, and a schedule names the file it uses."
  3. Under Reference files, choose Add from Folio and pick each file every run should read, for example your desk limit table. Each is "Pinned to the version of 12 Nov 2026. Runs read this version, read only, even after the file changes in Folio." Change version picks another saved version from the file's history; Remove unpins it. "A pin is saved with the Flow version. To use a newer version of the file, pin it here and save a new version."
  4. Save a new version. Studio checks every default and pin as you save.

When a run starts, it copies each input and reference file into its own Inputs folder (reference files under Inputs › Reference files), and the steps read those copies by the input's name, as for an S3 prefix. A step reads a file input positions_file at inputs/positions_file/. What a run shows: Flows: run, schedule, approve.

  • A run file (one a Flow run wrote) is removed with its run. When you pick one as a default, a reference file or a schedule's file, the editor says "{name} is a run file and would be removed on {date}. When you save the Flow, Studio keeps a copy in Folio › Flows › {Flow} › Kept, and this Flow uses that copy." A folder inside a run cannot be a default folder.
  • A Flow version holds up to 20 reference files: "A Flow version holds up to 20 reference files. Remove one to add another."
  • reference_files is reserved for the reference file copies: "reference_files is used by Studio for reference files. Choose another name."
  • In a governed deployment, a file fetched with your own connector sign-in cannot be pinned or used as a default, because other people run the Flow.
  • A newest-file input looks at the folder's files and shortcuts. Each run picks the newest match at the moment it starts, ranked by when each file's current version was saved; renaming or moving a file does not change its place. With no match the run stops before its first step.
  • In a governed deployment, a default folder you choose from your own Uploads is read, when a colleague starts the run, with that colleague's access: they get your files they can open, read only, and Run Flow tells them it is your folder (Give a run its files).

Save and activate​

  1. The editor header reads N things to fix while anything needs fixing: click it to list the problems and jump to each one. Otherwise it reads Ready to save, or No changes since version N when an existing Flow still matches version N, the version you opened.
  2. Click Create Flow (or Save new version on an existing Flow). Save new version appears once something has changed: an edit, unsaved changes Studio restored when you came back to the editor, or starting from a version older than the latest, since saving makes its setup the newest version. With nothing changed a save would only copy the version, so it is not offered. Studio opens the new version's page: "Version N saved".
  3. Read Dependency checks ("This version can be activated." or "Resolve the dependency issues before activating this version."), then click Activate this version, review "Activate version N?" and click Activate this version again.

Deactivate or delete​

  • Deactivate Flow on the Flow page opens a review: "Version N will no longer be available for new manual or scheduled runs." Schedules are not paused or deleted. Click Confirm deactivation.
  • Delete on the Flow page opens Delete Flow, which lists the Flow's schedules. Type the Flow name and click Delete Flow; Studio returns to Flows.
  • Cancel in the editor with unsaved changes asks Unsaved changes: Keep editing or Discard changes.

What you should see​

After activation: "Version N activated", and the Flow page's Current active version shows N with status Active. Run now, Run on schedule and Share are available. The Flow page also shows Flow details (with Created by and Updated by), Runs, an Active configuration preview, Schedules, Health and Versions (up to 50, newest first). A version pulled from a library can read Draft · ready to activate or Needs attention.

Notes​

  • With Queue, new runs wait and start one at a time, oldest first, once the run before them finishes. At most 10 can wait; beyond that a further Run now is refused and a further schedule firing is skipped.
  • A Task step runs as a focused step, at a lower effort and without the Governor, when its Output kind is data with a description of at most 30 words, its Objective is one instruction (at most 60 words in two sentences, with no list of sub-steps) and it reads at most two earlier steps. Any other Task step, and every Intelligence Graph update step, runs at full depth.
  • Steps do not pin an agent version: each run uses the agent's active configuration at the time it runs, so a change to an agent applies from its next run. A version whose agent has lost something it needs, such as its Kernel, fails its Dependency checks and cannot be activated.
  • A connection from a step to itself, a duplicate, or one that would make the Flow loop back is refused with a message such as "That would make the workflow loop back on itself."
  • The step messages name what to fix: "Choose the agent that does this step.", "Say what the agent should do.", "Give the step a title.", "A decision needs at least two outgoing branches.", "Label the branch to @x."
  • Limits: 20 steps ("This workflow has the maximum of 20 steps."); one agent per Task; at least two labelled branches per Conditional; 256 Flows per user (the page reads "You've reached the limit of 256 workflows." and Create Flow is not shown on the Action Bar; in a governed deployment the list shows everyone's Flows, so the server enforces your own count instead); an input name is a lowercase letter, then lowercase letters, digits or underscores, up to 64 characters.
  • Unsaved editor changes are kept while you move to another part of Studio and back, but not when you reload the page.
  • Editing the latest version and then putting every edit back as it was leaves nothing to save: Save new version goes and Cancel leaves without asking.
  • Health on the Flow page reports when an agent's configuration has changed since the active version was saved ("Version N: agent configurations have changed. Review the affected steps.").
  • "Version could not be saved" shows the server's reason; your changes stay in the editor.
  • A Flow copied from a library keeps the folder each step saves to in its source Studio, which your Studio does not have, so the copy cannot be activated until you choose a folder for each such step in a new version (Libraries and sharing).