Skip to content

Flows

Agent Flows let you chain agents and tools into automated workflows that run on demand or on a schedule.

Instead of manually running an agent, copying its output, and pasting it into another tool, you can create a flow that does this automatically. For example:

  • Generate a weekly chart and email it to your team
  • Run a data quality check and create a JIRA ticket if issues are found
  • Summarize new data and post to Slack

Key Benefit Transform repetitive multi-step tasks into automated processes that run exactly when needed.

A flow is a sequence of steps that run one after another. Each step is either an agent (which can reason and make decisions) or a tool (which performs a specific action).

Diagram

When a step runs, it produces outputs. Later steps can use those outputs as inputs:

Diagram
BehaviorWhat it means
SequentialSteps run one at a time, in order
Fail-fastIf any step fails, the flow stops immediately
No loopsEach step runs exactly once
You define…Example
Runtime parametersValues you provide each time the flow runs
Step inputsMap each input to a static value or a previous step’s output
Schedule (optional)When the flow should run automatically

Navigate to Flows in the Agent Studio sidebar.

Agent Studio sidebar showing Flows menu with Beta tag

The Flows page shows all your existing flows with their run history, schedules, and status.

Empty flows list with Create flow button

  1. Click + Create flow to open the flow editor
  2. Define runtime inputs (parameters the flow needs when it runs)
  3. Add agent and tool steps
  4. Connect outputs from one step to inputs of the next
  5. Save and test your flow

When you create a new flow, you start with a visual canvas showing a Start node.

New flow editor with Start node and Add step button

The Start node is where you define runtime inputs—parameters that can be provided each time the flow runs.

Runtime inputs let you reuse the same flow with different values. For example, a reporting flow might accept a date range or a specific query.

Start step showing Runtime inputs configuration

Add parameters with a name and optional default value:

Start step with chart-prompt parameter configured

Click + Add step to add an agent or tool to your flow.

Step selector showing available agents and tools

The selector shows all available agents and tools with their descriptions and required inputs. Search or browse to find what you need.

After adding a step, the canvas updates to show the connection:

Flow canvas showing Start connected to Chart Generation agent

The power of flows comes from connecting outputs to inputs. When configuring a step’s inputs, you can:

  • Enter a static value (fixed text or number)
  • Select a variable from a previous step’s output

Dropdown showing available variables from previous steps

In this example, the agent’s message input receives the chart-prompt parameter from the Start step.

Agent step with inputs fully configured

For a deeper dive into how variables work, see the Variables and Context guide.

You can add as many steps as needed. Each step can reference outputs from any previous step.

Tool selector showing Send email tool

When configuring the email tool, you can map its inputs to the agent’s outputs:

Email step showing variable dropdown with agent outputs

Email step fully configured with all inputs mapped

Click Save and provide a title and description:

Title and description dialog for the flow

To test your flow or run it on demand:

  1. Open the flow
  2. Click Run
  3. Provide values for any runtime inputs
  4. Click Run to start execution

Run flow dialog with runtime parameter input

The Runs tab shows execution progress in real-time:

Flow run in progress showing step status

Each step shows its status (Completed, Running, or Pending). Expand completed steps to see their outputs.

Completed flow run with expanded output details

The outputs from your flow depend on what steps you’ve configured. In this example, the email was sent successfully:

Email received in Gmail with chart attachment

Chart attachment preview showing data visualization

Flows can run automatically on a schedule—daily, weekly, or at custom intervals.

Once authorized, you can create schedules from the Schedule tab:

Schedule tab showing created schedule

Agent Flows let you:

  • Chain agents and tools into multi-step workflows
  • Pass data between steps using variable references
  • Run manually for testing or on-demand execution
  • Schedule automatically for recurring tasks