Skip to main content
Version: Studio 2.2.7

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.
  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. 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".
    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?"). 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.

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

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.

Save and activate​

  1. The editor header reads Ready to save, or N things to fix: click it to list the problems and jump to each one.
  2. Click Create Flow (or Save new version on an existing Flow). 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.
  • 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.