The editor
The editor is where you write a workflow’s steps and see what each one does. Open it from Workflows: choose a workflow, or New workflow, which starts a draft.
The layout
Section titled “The layout”- The steps, on the left, every step in order. A step at rest shows its number, its sentence, and, at the right, what happened to it in the last run: a check mark when it passed, and a mark with a word under the sentence when it needs a look, such as Failed or Needs a change. A step that has not run, or has changed since the run, shows nothing there. Point at a step, or reach it with Tab, for its buttons: open a live page on it, Add a step below, Move up, Move down, and Delete this step.
- The open step is the one you selected, edited where it sits in the list. Its sentence is a field as wide as the list that grows with the sentence. Under it is how Belay read the step, on one line. When the line is too short for the whole reading, point at it to see all of it, or click it to keep every step’s reading whole; click again to go back to one line. On a phone the reading is always whole. Under that, “Step N” and where the step stands, with the step’s buttons on the right.
- The page, on the right. Last run shows the selected step’s evidence from the last run: what the step acted on, where, how sure Belay was, why it stopped if it did, and the page as it was, under a bar that shows the address it was on. Live page shows your application as it is now, when a live page is open.
On a wide window the two sides sit next to each other and each scrolls by itself. Drag the line between them to make the steps wider or narrower; the editor remembers the width in this browser, and a double-click on the line puts it back. On a phone or a narrow window the page comes under the steps.
The title and the description at the top are text until you click them, then they are fields. Under them are the workflow’s facts: its folder and tags, the routes and variables it uses, and its file id. More (…), beside Save, holds Duplicate and Delete this workflow.
Writing steps
Section titled “Writing steps”The sentence is the only thing you write. Type a step and press Enter to add the next one.
A little under a second after you stop typing, Belay reads the step. Under the sentence you then see small labels that say how it was understood: the kind of step, and each thing it will act on or compare, such as the text it expects and where it will look. Hover them for the reading as one sentence.
If Belay cannot use the step, the open step says what it needs, with a suggestion you can apply. See Steps that need a change.
Type {{ to insert a variable, or to add one to the workflow. Name a route in plain words: “Go to the shop page”.
Saving
Section titled “Saving”You don’t need to save by hand. The workflow saves when you finish with something: you move to another step, press Esc, add or delete a step, apply a suggestion, perform a step on a live page, or change the title or description. Save (Ctrl+S) saves at once.
Beside the title, the editor says where things stand:
- Unsaved changes while you are in the middle of an edit, with when it was last saved. If the workflow cannot be saved yet, it says why: it has no name, a step could not be read, or it has more steps than a workflow can have.
- Saved, with when and by whom.
Among the facts, File id is the workflow’s file id, the id its file carries. Click the id to select all of it; the icon beside it downloads the file.
Saving reads every changed step. A step that needs a change is saved with the rest, but the workflow can’t run until it is fixed. A step that could not be read blocks the save.
Deleting a step asks nothing. For a few seconds a line where the step was offers Undo.
Drafts
Section titled “Drafts”New workflow opens a draft: a workflow that is not made yet. It needs no name and no step to begin with, and it is saved as you write, at the same moments a workflow is, whatever it holds. Under the title it says:
Draft. It becomes a workflow when it has a name and a step.
Until it has a name, the title says Name this workflow, and the browser tab and the path above the page call it “Untitled draft”.
A draft with no step yet opens a live page by itself, so you see your application before you write the first step.
Becoming a workflow
Section titled “Becoming a workflow”A draft becomes a workflow by itself at the first save that has a name and a step, when Belay understands every step. Nothing else changes: its address stays, and a live page open on it stays open. While a step needs a change, it stays a draft with the step as written, so a draft never becomes a workflow that can’t run.
When your organization already holds as many workflows as its plan allows, the draft is kept as written and stays a draft, and the editor says:
This organization holds its 10 workflows, the most its plan allows. Delete one to add another. This stays a draft until there is room.
Once there is room, the next save that has a name and a step makes it a workflow, with no need to open the draft again.
What a draft is not
Section titled “What a draft is not”- Yours alone. Nobody else in the organization sees it, and neither does an agent you connected or a pipeline.
- Not run. It has no Run button, and it is in no batch, schedule, or count of the project’s workflows, and does not count against your plan’s workflows.
- Not filed. It has no folder, tags, or file id, and can’t be duplicated, downloaded as a file, or made into a routine. More (…) holds only Discard draft.
A live page on a draft works as on any workflow, and counts and is limited as any live page is.
Finding and discarding drafts
Section titled “Finding and discarding drafts”Drafts, above the list on Workflows, lists your drafts in the project, newest first: each draft’s name, or “Untitled draft”, when it was edited, and how many steps it has. Choose one to go on with it. A draft with no name and no step is not listed; New workflow opens it again rather than starting another. Drafts is not shown while a status, tag, or folder filter is on; the search box narrows it by name.
Discard, on a draft’s row, or Discard draft in the editor’s More (…), drops the draft and closes its live page. Discard on a row always asks first. Discard draft asks first when the draft has a step, and then goes back to the workflow list.
A draft you have not changed for 30 days leaves Drafts and is dropped.
A draft open in two windows
Section titled “A draft open in two windows”When another window makes the draft a workflow, a window still on it saves to that workflow from its next save, and takes the name it was given there if it had none. As between two windows on any workflow, the later save replaces the earlier.
When another window discards the draft, a window still on it saves nothing more and says:
This draft was discarded, so what you write here isn’t saved.
| Key | What it does |
|---|---|
| Enter | Go to the next step, or add one at the end. With a live page, perform the step. |
| Shift+Enter | With a live page, preview the step again. |
| ↑ and ↓ | Go to the step before or after. In a sentence that wraps, they first move between its lines. |
| Esc | Finish with the step, which saves it. |
| Ctrl+S | Save. |
| Ctrl+↓ | Add a step below. |
| Alt+↑ and Alt+↓ | Move the step up or down. |
| Ctrl+Backspace | Delete the step. |
Shortcuts, beside Steps, lists most of these.
Running from the editor
Section titled “Running from the editor”Run on followed by the environment’s name, at the top of the editor, runs the whole workflow. When the sidebar’s environment picker is on All environments, the arrow beside it chooses the environment. On one environment there is no arrow, and the run goes there.
The run uses the steps as they are in the editor. If you have changes that are not saved yet, it runs them as they are, and the line under Steps says Last run, of unsaved steps. The run’s page says Unsaved steps under Version.
The run shows in the editor: each step in the list fills in with its outcome, and the page side shows what the selected step did. The line under Steps links to the run’s own page. A step whose sentence has changed since that run shows no outcome, and when you open it, it says Changed since the last run.
Kept in a repository
Section titled “Kept in a repository”When your team keeps a workflow as a file in its repository, and a pipeline saves it from that file, the editor says what happened last, under the title:
Kept in a repository. A pipeline’s update replaces these steps with the file’s.
The workflow stays editable. Once you save a change here, the line says:
Edited here since a pipeline last sent its file. If the file is still in your repository, the next update replaces this edit.
with Download file, the workflow’s file as you saved it. To keep the edit, commit that file in place of the old one: the next update then changes nothing, and the line goes back to the first. A save here is all it takes to work in the app again, and the next update is all it takes to go back. Running the workflow changes neither.
The workflow list says the same under Updated: From its file, or Edited here. Deleting a workflow kept in a repository warns that a pipeline’s update brings it back while its file is there.
A workflow a pipeline saved shows the pipeline’s key as who saved it, such as “Release (API)”.
Routines
Section titled “Routines”A routine is written in the same editor: open it from the Routines tab of Workflows, or choose New routine there. Make a routine…, at the top of a saved workflow’s step list, turns the steps you pick into one, or, with Existing routine, puts a routine you have in their place. After a routine is made, Use the routine offers the other workflows that hold the same steps; a routine’s page finds them with Find workflows with these steps. See Making a routine.
A step that runs a routine says so under its sentence, “Runs the routine Log in as admin, 3 steps.”, with the routine’s name linking to it and its steps listed below. A step that might mean a routine asks, with an answer for each routine it might mean and one that keeps it a step on the page. See How a step runs a routine.
Long workflows
Section titled “Long workflows”The editor shows the number of steps beside Steps. From 40 steps it suggests splitting the workflow where the flow changes page or purpose: a run stops at the first step that does not pass, so in a long workflow the later checks are hidden behind the first failure.
Your plan may also set the most steps one workflow can have. A workflow over that still runs, but it cannot be saved again until it is within it. See Plan and usage.
Who can edit
Section titled “Who can edit”Members and Admins can edit workflows. A Viewer can open a workflow and see every step, its last run, and its evidence, but cannot change it, run it, or open a live page.