The live page
A live page is your application, open in one of Belay’s browsers and held there while you write. You see what each step would act on before it happens, and you write the next step against the page as it really is.
Open one
Section titled “Open one”Select a step in the editor and choose Edit on live page, at the foot of the open step. On the page side, Live page shows the same choice: Edit step N on live page. When the sidebar’s environment picker is on All environments and the project has more than one, an Environment choice beside it says where the page opens.
Belay opens a fresh page on the environment, runs the steps before the selected one, and holds the page there. The selected step is now the next one on the page, and the page side switches to Live page. For step 1 nothing runs first: the page opens on the project’s start page, so you see your application before any step is performed. A first step that goes to a page itself goes there when you perform it.
Edit on live page is offered when the workflow or draft is saved, the step has a sentence, and every step before it can run.
A new workflow
Section titled “A new workflow”New workflow opens its live page by itself. The draft it starts has no step yet, so Belay opens a live page on the chosen environment at once and holds it on the project’s start page, before any step. The page side says Opening a live page meanwhile. Type the first step against what you see; nothing is performed until you perform it. When the draft becomes a workflow, the page stays open.
A draft you come back to that already has steps opens its live page as a workflow does, when you choose Edit on live page. A duplicate is not a draft: it opens its live page by itself when it is first saved, held before step 1.
When the page can’t open, the page side says The live page didn’t open., with why, and Try again. The most common reason is a live page you already hold:
You already have a live page open, on “A helmet can be added to the cart”, last used 3 minutes ago. You hold one at a time, so this one didn’t open. End that one from its workflow, or try again once it closes.
A live page you left in the last two minutes, with no window showing it, is closed and this one opens in its place, so going from one workflow to New workflow is not refused. A page that is open in another window, in the middle of a step, or held by your coding agent is never closed this way, and neither is it by Try again: end it, or try again once it closes.
Preview, then perform
Section titled “Preview, then perform”In the step list, the line The page is here sits above the step that is next on the page. When you are on that step, the page side previews it as soon as Belay has read it:
- For an action, Target, with the element it would act on outlined on the page, where it is, and how sure Belay is of the choice.
- For a check, Would pass or Would fail on the page as it is now.
- For a step that goes to a page, where it would go.
- Nothing matched, with what was looked for, when no element fits an action’s description.
A preview does not touch the page. A step whose preview found nothing cannot be performed; rewrite it first. When a preview finds nothing, the page side shows the page as it is at that moment, since a page can change on its own after it opens. When a dialog is open over the page, such as a promotion that appears after a few seconds, only what is in the dialog can be used, and the step says so:
The “Fourteener Season” dialog is open over the page, and nothing in it matched “the rentals button”.
Close the dialog first, with a step such as “Click No thanks.”, and the page behind it can be used again.
Press Enter, or choose Perform at the foot of the step, to perform it. When it passes, the page changes and the next step opens. When it does not, the page stays where it was, the step list says Stopped at step N, the page side says why, and you can rewrite the step or choose Try again. Press Shift+Enter to preview again.
The page side has Last run and Live page above it. Choose Last run to see what the last run did with the step; Live page brings the page back.
A step that runs a routine
Section titled “A step that runs a routine”A step that runs a routine is performed whole: the routine’s steps run in order, each with its own result, and the first that does not pass stops it. The step list then says Stopped at step 2, and the page side lists the routine’s steps with what each did, saying which one stopped and why, as in “Stopped at step 2.3”. Its earlier steps have acted on the page, so it is not performed again there; Bring the page here runs the steps before it again on a fresh page.
A routine has a live page of its own too, on its page in the editor: choose a workflow that runs it to start from, whose steps before it run first, or the project’s start page. See Trying a routine on a live page.
Moving around
Section titled “Moving around”On any other step, the choice at the foot of the step, and on its row when you point at it, is Bring the page here. Point at it to see what it will do.
| The step | What Bring the page here does |
|---|---|
| Ahead of the page, while the page still matches the steps | Performs the steps between, in order, on the page as it is. It stops at the first step that does not pass. |
| Already done on the page | Opens a fresh page and runs the steps before this one again, so this step is next. |
| Changed after the page passed it | The same. The page was built from the old sentence, so it is rebuilt from the new one. |
When you edit, delete, or move a step the page has already passed, the step list marks that step Changed on the live page and says The page no longer matches from step N. Choose Bring the page here on it to bring the page back in line.
Where the page is
Section titled “Where the page is”The line under Steps says where the page is: Live page on the environment and after which step, Stopped at step N when a step did not pass, or how long it has been idle. The page side shows the page in a browser frame with its address.
A live page closes by itself after 10 minutes with nothing happening. The line counts down the last two minutes.
Ending
Section titled “Ending”Choose End the live page, at the top of the page side, when you are done. Nothing from a live page is kept: no run, no evidence. To record that the workflow passes, run it.
A live page also ends when:
- You close the editor and do not come back to it.
- You switch the sidebar’s environment picker to another environment. The editor says that the live page ended.
- You choose Edit on live page on another workflow. You hold one live page at a time, whether you opened it here or an agent of yours opened it.
Other people and other windows
Section titled “Other people and other windows”- If you open the same workflow in a second window while a page is live, the step list says Live in another window and offers Work here, which shows the page in this window too.
- If a teammate has a live page open on the workflow, the step list names them. Their page is theirs; you can still read and edit the workflow.
- If an agent you connected has a live page open on the workflow, the step list says Your agent has the page open, with the step it is after. The editor only names it: what the agent writes reaches the workflow when it saves. Choosing Edit on live page takes the page over, and the agent’s page ends.
- A teammate’s agent’s page is named the same way: Robin Lee’s agent has the page open.
Limits
Section titled “Limits”A live page does not count against your plan’s monthly runs. On a plan with an hourly run limit, opening one counts once toward the hour.
Your plan may limit how many live pages your organization can hold open at once. When they are all in use, the editor says so under the title, and you can try again when one closes. See Plan and usage.
If Belay loses the page for a reason of its own, the editor says so. Choose Edit on live page again to bring it back.
With an agent
Section titled “With an agent”An agent opens a live page with start_session, performs steps on it with perform_steps, and saves them with end_session. A live page an agent opened closes by itself after 10 minutes with nothing sent. The authoring loop describes the tools in order.