Testing and run history

Try your draft on a key you choose, run one step alone, read every step of any run, and see what people ask the published agent.

5 min read · Updated Nov 2, 2026

Try your draft before learners meet it, check it against tests, then read what happened in any run.

Try it

Test → Try it runs the unpublished draft, so you don't need to publish to test.

  • Who pays. Every message is a real run on the key under Options → Who pays. It needs the Run agents permission and must allow your steps' models. A stopped run still bills the model calls it started.
  • Memory. Options → Memory chooses Continue a conversation (recommended), Independent messages or Send history from this browser.
  • Test as. Options → Test as sends a person's identifier, such as student-042, as your app would.
  • Reference data. Material sent with each message, such as a rubric. Steps read it as {{context.name}}. Try it as in a course activity fills in an activity's How the AI helps, so you see the replies its learners get.
  • Attachments. + attaches photos and PDFs when every step that gets the message can read them.

Each reply shows its cost, steps and time. Show on canvas replays the run.

Edit a message you sent and click Save & send: it becomes a new version from that point, with its own replies, and ‹ n/m › moves between versions. New chat clears them; runs stay in Run history.

What a step did in the last run

After a message in Try it, click a step on the canvas. Its panel shows what the step did in that run:

  • Under its sentence: Last run with its time and cost, Last run failed, or Not reached in the last Try it run.
  • Under a setting: Last run: and what the setting worked out to, such as an LLM step's instructions with their fields filled in.
  • Under Later steps can use: what each output held. A Values step shows each value's.
  • In a Branch step: last run marks the case the run took.

earlier version means the workflow changed since that run, so these values come from the version that ran.

Run one step

Run step, at the top of a step's panel, runs only that step, once, as it is set up now, with what the last Try it run gave it. Use it to try a change to one step without sending a message through the whole agent: new instructions, another model, a different list of pictures. To see what learners get, send a message in Try it.

  1. Start from a run. Send a message in Try it, with a key under Options → Who pays.
  2. Open the step. Click it on the canvas, change what you want to try, and click Run step.
  3. Run it. Starts from names the run, and Who pays names the key. Click Run. You see Done or Failed, the time and cost, any pictures, the Output and What it acted on.
  • What it costs. Only this step's model calls, billed to the Try it key with the same checks as Try it. A Branch step costs nothing and says which case matched. A Sub-agent step costs the agent it calls.
  • Nothing is saved. The step goes no further: no next step and no reply. Run history, the conversation, State, the conversation's pictures and memory stay as they were. A step that reads State or the conversation's pictures gets them as they are now.
  • Edit input. Change what the step reads, as paths and values, such as { "tutor.json.pictures": [{ "prompt": "a fox in snow" }] }, up to 50 paths. It starts with the last run's values. Back to the last run’s values undoes your edits.
  • When the saved run cut values short. A saved run keeps each step's output up to 8,000 characters, and past that only some of its fields. When the step reads something cut that way, such as a long answer from an earlier step or the earlier turns, the result says so. Add the full value under Edit input by its path.

Input, Ask user, Loop, For each, Parallel and Note steps can't run alone, so they have no Run step. Run the step after them, or one inside them.

Run history

A run is one execution of an agent. Test → Run history lists runs newest first. Filter by Where runs came from, such as Chat page, Course or Dashboard test, and by How runs ended. You can also filter by result data, for example needs_human: true. Export downloads the latest 200 as CSV or JSONL.

A run's trace

A run shows its reply, duration, model calls, tokens and cost. Run trace lists the steps in order. A step's Input is what it acted on; its Output shows the result (Pretty or Raw JSON) with the Provider calls. A VETTING step lists each round's verdict and the Reviewer's reason.

Tests

To check a change against what learners might say before you publish, keep tests and run them: see Agent tests.

Insights

Test → Insights shows what people ask the published agent over 7, 30 or 90 days, without your tests, and flags answers that need a look: Failed, Not answered, Needs a person and Review didn't pass. Topics groups recent questions, with What the sources seem to miss. For the middle two, have your Reply step return "status": "not_found" or "needs_human": true in Result data for your app.

Memory

Memory is what an agent keeps about a person between conversations, up to 200 facts each, from a Memory step or Remember the user in an Agent step. A person is the user your app sends, or a chat page's visitor. Test → Memory lists who the agent remembers and what.

Warning

Deleting a fact, or using Forget everything about a person, is permanent.

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