Steps

Choose the right step for each job, set it up in its panel, and edit, share and version an agent's workflow.

16 min read · Updated Nov 3, 2026

Every agent is a workflow of steps on a canvas. This page shows how a step's settings are laid out, says what each step does and which settings matter, then covers editing, sharing and versions.

The agent editor for Math tutor: on the canvas, Input leads to a Knowledge search, then a VETTING step that branches to three replies (passed, unverified, needs attention), each card with a sentence saying what it does; below it, the VETTING step’s panel: Find a setting, the step marked Ready with Run step, the sentence saying what it does as set up, a note that it is a research-based step, and Setup starting with Checks against set to A guideline.
The agent editor: steps on a canvas, each saying what it does, and the selected VETTING step’s settings below it.

How a step's settings are laid out

Click a step on the canvas to open it in Build → Step settings. Every step's panel has the same parts, top to bottom:

  • The step. Its type, its ID (other steps refer to it by this, and you can rename it), its status, Run step (for a step that can run alone), ? for how to use it, and ⋯ for the step's menu.
  • What it does. A sentence says what the step does as it is set up, such as "Writes a reply with viable-3". Its canvas card shows the same sentence. Click a phrase in it to go to that setting.
  • Setup. The decisions every author of this step makes, such as its model and instructions.
  • Answer format, Cases or Outcomes, for the steps that have them.
  • Options and When something goes wrong. Only what is set shows. Add option lists the rest, each with what it does and its default.
  • Later steps can use. What other steps can read from this one. Each has a button that copies its reference, such as {{tutor.content}}.
  • Next. Where the run goes after this step.
  • Ask about this step. Explain this step, Why did the last run go this way? (after a Try it run) and Change this step… open the Assistant with that question.

A setting

  • Each setting has an ⓘ tip and a ⋯ menu. The menu switches a value to Use text, Use a field, Use a condition or Edit as expression. It also has Reset to default, Learn more and, where they apply, Copy reference and Show on block.
  • A value reads as text, with earlier steps' fields as chips, such as tutor → reply text. Type { or /, or click the { } button, to insert a field.
  • A condition or an expression reads as a sentence first. Edit opens its editor. An expression's editor has Insert a field… and Insert a function….
  • Long instructions show their first lines. Open editor edits them full width, with an outline of their headings.
  • A set option folds to one line with its value. Click it to open it.
  • Steps such as LLM and Agent show What it reads as chips: Earlier turns, Reference data, or a custom input in place of the learner's message.

Find a setting, fix an issue

  • Find a setting (⌘K on a Mac, Ctrl K elsewhere) searches every setting of the step, set or not. Choose one to go to it. One under Add option is added.
  • The status beside the step's ID says Ready, or how many issues the step has. Click it to list them, with Go to setting when an issue names one.
  • After a message in Try it, the panel shows what the step did in that run. Testing and run history says how to read it and how to run one step alone.

Start from a common use

Add step (or /) opens the step library, grouped as the sections below. A step with common uses, such as Image, Branch or VETTING, then asks how to start: choose one, such as Draw what an LLM planned, or Blank. A common use fills in settings you can change.

Start & reply

Input

Starts the run with the learner's message and the conversation so far. Every run starts at the step marked Entry, and one Input is enough.

  • Options. Instructions in Try it and Example message help people who test the agent. Long conversations sends the latest messages, or Summarize when the conversation gets long: near the models' limit, it folds the oldest messages into a summary, one small model call each time.
  • Later steps can use. Message, which {{input}} reads anywhere, and Earlier messages.

Reply

Ends a path with the reply the reader sees.

  • Setup. Reply text: an earlier step's field, such as tutor → reply text, or words you write.
  • Options. Picture or audio attaches an Image or Speech step's address. Result data for your app is JSON your app reads beside the reply; readers never see it. Sources in Chat Completions replies lists cited sources in the text, for chat clients that show only text.

Ask user

Replies with a Question and waits. The next message in the conversation carries on from here, and later steps read The user’s answer. It needs a conversation kept on the server; otherwise the question is just the reply.

AI

LLM

Writes a reply, or returns named fields, with one call to a chat model. It can't search or use tools; an Agent step can.

  • Setup. Model, Instructions, and What it reads: Earlier turns (on by default), Reference data, This conversation’s pictures, and a Custom input in place of the learner's message.
  • Answer format. Plain text, or Named fields that later steps and Branch rules read by name.
  • Options. Image inputs, and model settings such as Temperature and Reasoning effort.
  • Later steps can use. Reply text ({{tutor.content}}), or each named field ({{tutor.json.reply}}).
  • Ways to start. Reply to the learner or Return named fields.

Many tasks come in a number: three pictures, five questions, each step of a solution. Keep them in one list instead of numbered copies such as prompt_1, prompt_2. Under Named fields, set a field's type to List and give each item its fields with Add item field, such as a picture's prompt and label. At most caps how many items the model returns. An Image step or a For each step then goes through the list.

Agent

Lets a model choose tools until it can answer.

  • Setup. Model, Instructions, Use knowledge and What it reads.
  • Options. Tools you draw, Remember the user, Read web pages, Hand off to agents, and Most tool calls (5 by default).
  • Later steps can use. Final answer ({{helper.content}}) and Tool calls.

Each tool call is one more model call, so an Agent step is slower and costlier than fixed steps, and its path varies. A rule that must always hold, such as "never give the answer", needs a check: a VETTING or Guardrail step.

Tools you draw. You decide what a tool can do, and the model decides when it is needed. Under Tools you draw, add a tool, name it (such as draw_diagram or look_up_word) and say when to call it and what to pass. The Agent step gets a handle with that name: connect it to the step that does the work, such as an Image, HTTP, Component, Knowledge or LLM step, or several in a row, and connect the last one back to the Agent step, as with For each. Those steps read what the model passed as {{tool.input}}, and the model gets the last step's result. Up to 8 tools. A tool's steps run one call at a time, count toward the run's limits, and can't reply, ask or hold another Agent step. A teacher who turns a tool off for an activity, by its name under How the AI helps, removes it for that activity.

Image

Draws or changes pictures.

  • Setup. Model, then What to draw: One prompt, or A list from an earlier step, usually an LLM step's list. With a list, choose it under List: each item becomes its own picture, three at a time. Prompt describes one scene, or adds to each item's prompt.
  • Options. Pictures per prompt draws one scene several times in one model call. Most pictures a turn caps a list (4 by default, up to 6). Create or change draws new pictures or changes one, and Picture to change takes the number the learner sees. Remember for later turns is on by default.
  • When something goes wrong. If the safety check refuses a picture, Attempts when busy and, with one prompt, If the picture can’t be made.
  • Later steps can use. Picture addresses, for a Reply's Picture or audio. With a list, also Status sentence ({{draw.summary}}), Pictures drawn on the second try ({{draw.fallback_numbers}}), the numbers of Pictures ready and counts such as How many are ready.
  • Ways to start. Draw what an LLM planned, Draw one picture from a prompt or Change a picture the learner saw.
The Creative writing tutor starter in the agent editor: Input, the tutor LLM step, the draw Image step and the Reply in one row, each card saying what it does; below it, the Image step’s panel: its sentence, Draws the pictures in tutor → pictures, then Setup with the model flux.2-klein, a note that this model only creates pictures, and What to draw set to A list from an earlier step.
One Image step draws every picture the tutor planned in its pictures list, and remembers them by number for later turns.
  • Pictures in later turns. The conversation remembers every picture it showed, by the number the learner sees. Turn on This conversation’s pictures in the LLM step that plans them, and a learner can say "make picture 2 night-time": the item's source is 2, and the changed picture keeps its number. No State step is needed. Changing a picture needs a model that edits; the panel says when the chosen model only creates.
  • When a picture can't be drawn. With a list, a picture the image model declines, or one the service is too busy to draw, never stops the run. Each picture is ready, blocked or failed. Status sentence tells the learner what came of the list by picture number, such as "Picture 1 is ready. Picture 2 couldn’t be drawn. Try describing it differently." It never names a safety check or an error, so a Reply can show it as it is. A later turn can draw the missing ones from Pictures not drawn yet.
  • A second try after a safety refusal. Image safety checks refuse realistic photos of children and teenagers far more often than drawings of the same harmless scene. If the safety check refuses a picture tries a refused picture once more with other words, such as {{prompt}} Show it as a storybook illustration, not a photograph. Draw what an LLM planned starts with that text. A picture drawn this way is marked fallback, and Pictures drawn on the second try lists its number, so the reply can say it's a drawing. Leave lists like "no violence, no inappropriate content" out of image prompts: describe the scene.

Speech

Reads Text aloud in a Voice and passes on the recording's Audio address. Attach {{speak.url}} under a Reply's Picture or audio. Speed is an option.

Transcribe

Turns a Recording into text: the one sent with the message, or a recording's address. Language and Words to expect help it hear. Later steps read Transcript. Put it before the steps that use what was said.

Sub-agent

Hands the message to another published Agent of this project and uses its Reply. Message to send replaces the message. Its model calls count toward this run.

Checks & review

VETTING

Has an independent reviewer check each reply against your rules, and revise it until one passes. Setup holds Checks against, the Reply model and Answer to review. Attempts is under When something goes wrong. Each of the Outcomes, Passed, Unverified and Needs attention, goes to its own step. See VETTING.

Guardrail

Checks text once and goes to pass or fail.

  • Setup. Checks: Personal data (no model call), Jailbreak / prompt injection, Harmful content, Off topic (with an Allowed topic) and Custom policy. Text to check is the current message, or custom text such as {{tutor.content}} to screen a reply.
  • Later steps can use. Passed, Findings and, with Personal data, Text with personal data masked.
  • Ways to start. Screen the learner’s message, Keep to a topic or Mask personal data.

Routing & logic

Branch

Chooses a path by a field from an earlier step, with no model call.

  • Condition. One condition goes to Yes when it holds and No when it doesn't.
  • Cases. Checked from the top; the first that holds decides, and Otherwise, go to takes the rest. Each case is a set of rules (a field, a test and a value, joined by all or any), or an expression after Edit as expression. A list's rules can test its items, such as has more than … items, has an item whose … is empty or is empty without items whose … is.
  • Name this case labels a case's connection on the canvas and its place in runs. Routing never reads the name.
  • After a Try it run, last run marks the case it took.
  • Ways to start. Two paths: yes or no or Several cases, checked in order.

Router

A model sorts each request into one of your named Routes (up to 12, each saying when to choose it). Anything unclear takes fallback. It costs one model call; when an earlier field already decides, a Branch does it for free. Later steps read Chosen route and Reason. Ways to start: Questions or tasks or Coursework or admin.

For each

Runs the same steps once for every item of a List, one after another, then carries on with what each pass kept.

  • Connect for each item to the first step to repeat, and the last one back to the For each step. Steps inside read {{item}} and {{item_number}}, or the Name for one item you choose.
  • At most caps the items (10 by default, up to 25). Keep from each item says what each pass keeps, such as {{review.json.correct}}.
  • when done carries on with What each item kept ({{check.values}}).

Steps inside can't reply or ask. For pictures, an Image step with a list is simpler.

The Step-by-step feedback starter: Input, split and the For each step check in a row, the review step framed above check with its connection back over the top, then the summary Values step and the Reply; below it, the For each step’s panel: its sentence, Setup with List set to split → steps, and Options with Name for one item set to step and At most set to 8.
A For each step checks every step of a solution: what it repeats sits in a frame above it, and “when done” carries on to a Values step.

Loop

Repeats steps A number of times or While a condition holds, then goes to done. A run visits a Loop at most 25 times. Counter name names the pass number later steps read. Ways to start: Repeat a number of times or Repeat until something holds.

Parallel

Runs 2–6 Paths at the same time, then carries on at the join step once all finish. It saves time; each path still spends its own model calls.

Knowledge & memory

Knowledge

Searches 1–5 Knowledge bases for the current message, or for what you write in Search for. Later steps read Passages with sources ({{search.context}}) and Passages found. Passages to return is 5 by default, up to 20. See Knowledge bases.

Memory

Recalls or keeps lasting facts about the user across conversations. Its Action is Recall relevant memories, Save a specific fact or Learn facts with a model, which makes one model call; put that after the step that writes the reply. It needs the user's identifier or a server conversation. Ways to start: Recall what it knows about the user, Save one fact or Learn from the conversation.

State

Sets Variables for this run, or keeps them for later turns with Keep values → For this conversation. Read them anywhere as {{vars.name}}. Pictures need no State step. Ways to start: Keep a value for later turns or Count attempts.

Web & data

Fetch URL

Reads one public HTTPS Web address, or sends JSON to an API. It doesn't search the web or run a site's JavaScript. Later steps read Web page as Markdown, Succeeded and HTTP status. Ways to start: Read a web page or Send JSON to an API.

Component

Runs another team's method as a step, from the manifest its authors publish: what the component does, the learner data it receives, the hosts it contacts, its license and its evidence. A component on VIABLE runs at a public HTTPS address; one that runs as an MCP server runs with viable-engine serve on your own machine instead.

  • Setup. Component manifest: paste the JSON, or Upload a manifest file. The panel shows what it receives, the hosts it contacts, its risk and license, or what stops it running. Its slot must be step. What it sends has one row per field the manifest receives, such as learner_message: choose a field, such as the learner's message, or leave the row empty and that field isn't sent.
  • What it does. The sentence names each value and where it goes, such as "Runs Fraction hints, sending the learner’s message as learner_message to hints.example.org." The step sends to the component's address and nowhere else, never follows a redirect, and waits at most 30 seconds. Keep learners' names and other identifiers out of what you send.
  • When something goes wrong. If the component fails: Stop the run (the default), or Keep going without it. A component that is refused, too slow, or answers in the wrong shape then has Status failed, and a Branch or the Reply decides what the learner sees, such as {{ hint.status == "failed" ? tutor.content : hint.output }}.
  • Later steps can use. Answer ({{hint.output}}), Flags (each with a label and a reason) and Component and version. With Keep going without it, also Status and What went wrong.

It makes no model call of its own. In Code and the API its type is component.

Values

Works out named values from earlier steps, each able to use the ones above it, with no model call. In Code and the API its type is transform.

  • The panel shows one row per value, split into Used by other steps and Used only here. A row shows the value's name, what it works out and, after a Try it run, what it held.
  • Open a row to edit it. It says which steps use it, such as reply → Reply text.
  • Add value adds one. Edit as JSON shows them all as JSON.
  • Later steps read each one by name, such as {{summary.text}}.

A long calculation reads best here, one value per row. A value is text with fields, or an expression such as {{draw.ready_count > 1 ? "pictures" : "picture"}}. An expression reads as a sentence first. Edit opens it, and Insert a function… lists what you can use, from count and where to and_list. In a step's settings, the ⋯ menu's Use a condition picks the first case that holds.

Edit on the canvas

  • Drag from an output dot (next, pass…) onto the next step.
  • Every run starts at the step marked Entry. A step's ⋯ menu has Make this the entry step.
  • The chip beside Tools says Ready, or how many issues to fix. Tips under it suggest ways to make a working workflow simpler, such as a list instead of copied steps.
  • Tidy lays the steps out left to right. A connection back to an earlier step, a loop's way back, goes round underneath, and the steps a For each step repeats sit in a frame.

Warning

Never put a password, API key or token in a step. Every project member can read it, and Export JSON copies it into the agent file.

Note

A Note step is a sticky note for collaborators, from Add step → Annotate. Notes never run.

Groups and blocks

To keep a large workflow readable, open a step's ⋯ menu and choose Put in a new group. Name the group on its frame and fold it into one block. Groups never change what runs.

  • What it does and its settings, a button on a group's frame, opens the Block panel, and so does a click on a folded block. What it does is a sentence of up to 280 characters, shown on the folded block.
  • To show a setting on the block, open a step inside and choose ⋯ → Show on block on that setting. Up to 8 settings show on the folded block with their values. Change them in the Block panel's Settings on this block, without opening the step.
  • Inside lists the group's steps with what each does. Click one to open it.

Code view and the assistant

Build → Code shows the workflow as JSON. Edit it or paste JSON from an AI tool, then click Apply JSON; until then you can't publish. AI prompt + JSON writes a prompt for your own AI tool.

Build → Assistant answers questions about the agent and proposes changes, each waiting for Apply to draft or Discard. Ask about this step, in a step's panel, starts a question about that step.

Work together

An agent has one shared draft that saves as you go. Edits from teammates, the API and the VIABLE CLI land in it too. Share & invite invites people to the whole project as Editor or Viewer. Undo undoes only your own edits.

Versions

  • History → Save a version marks a point to return to. View & restore versions lets you Preview one or Restore it into the draft.
  • Publish makes the draft a new numbered version, the one learners, chat pages and apps use. Its review lists problems by step, with Go to step.
  • Tools → Discard changes puts the draft back to the live version. Tools → Unpublish agent stops new runs and keeps the draft.

This page is also plain Markdown at /docs/build/steps.md. Point your AI at /llms.txt to find every page.