Laziness
All docs
Flows

Steps and tools

The kinds of step a flow can have, and the tools an agent step may use.

Steps are the cards on a flow's canvas. Each step runs once every step before it is done. Steps with nothing between them can run at the same time. This page lists the kinds of step and how an agent step chooses its tools.

Kinds of step

StepWhat it does
AgentA model works on its prompt with the tools it is given. Most work happens here.
ReviewJudges the work before it and lets it go on or sends it back. See Reviews and send back.
ApprovalWaits for your yes before the run goes on. See Approvals in flows.
ToolCalls one tool with set inputs, with no model.
Data tableKeeps or checks items in a data table, such as posts already sent.
ImageMakes pictures from a prompt.
VideoMakes a video from a prompt.
Join videosPuts the videos of the steps before it together into one.
ResultPuts the run's results together from a template.

Agent steps

An agent step has a prompt, a model, tools, and skills.

Model

Choose auto to use your own key when you have one, else the built-in model, or pick one of your keys. A step on the built-in model counts toward your plan's flow budget.

Tools

Tool modeWhat the step gets
PickedOnly the tools you list. Use it for a step that must work through exactly those tools, or none for a step that only writes.
AutoThe listed tools at once, and every other tool you have, found when needed.

Tools in a flow step act as you, with your connected accounts, your settings, and your approval mode. Under restricted, an action waits for your answer. Every call is recorded.

Skills and members

A step reads your skills, or only those it lists. You can also give a step to a team member: it then works with the member's persona, skills, memory, and model. See Members and skills.

Helpers and hand-offs

Mention another step with @ in a prompt to hand it work. By default the other step starts as a run of its own. Set it to wait and it works as this step's helper, answering before the step goes on.

Tool steps and new items

A tool step calls one tool with the inputs you set, and can use earlier results in them. Turn on "only new items" to pass on only what earlier runs have not seen. If nothing is new, the steps after it are skipped and the run ends quietly.

Result steps

A result step fills a template with the results of the steps before it. You can:

  • put the result in the run's notice, so it reaches you by email, push, or chat app;
  • keep the run's output files in a Media folder.

Files, pictures, and the sandbox

A run can take pictures when you start it, and steps can make files. Each step's output files show on its card with Download and Save to Media. Steps that run code or build an app share one sandbox for the run, which ends when the run does. See Sandbox and coding agent.

The run view

The run view shows the flow with each step's status, then each step's result, tools, helpers, tokens, and cost. While an agent step writes, its text shows live. Open previews and agent runs show under the step that started them.

When a step fails

The run ends once the steps still working finish, and the notice names the step that failed. A step fails, for example, when every tool it called was refused, when it only announced work it never did, or when the model's provider refused the call. Use Retry from a step to go on from there.