Ocalt Flow
Show it once. It does it again.
Open FlowOverview
Ocalt Flow records a task you do on a screen and does it again whenever you run it, the same way every time. The screen is either Flow’s own browser or one of your machines running the OcaltQL Client. There is no code to write, no prompt to phrase and no AI deciding what you meant.
A flow is a row of steps on a timeline. Most steps are things you did: a click, some typing, a key, a scroll, a web address. Some are things you add: a check of the screen that decides where the flow goes next, a variable, a pause for you.
Where a flow runs
| Choose | When | What it needs |
|---|---|---|
| Flow’s browser | Anything on the web: portals, web apps, forms | Nothing. A real Chrome window opens in seconds and remembers what you sign in to, for you alone. |
| One of your machines | Desktop programs, or a website you must use from that machine | The OcaltQL Client, signed in and on. Windows, Linux and Android. |
Choose when you create a flow. Change it at any time by tapping the place name in the top bar.
Your flows page
Each card shows a small picture of the flow, where it runs, how many steps it has and how its last run went.
- Open a card’s menu with a right click, a long press on a phone, its ... button, or Shift+F10 on the keyboard: Open, Run, Run on another place, Rename, Duplicate, Move to folder, Download as a .flow file, Copy run command, Schedule or make a protocol in Omni, Show matching screens, and Delete.
- Delete takes the card away at once and shows Undo for a few seconds.
- Folders appear above the cards; choose one to see only its flows.
- Right click the page itself (or its ... button) for a new flow, importing a .flow file, sorting by name or by most recently changed, and cards or a list.
Recording
- Record a new flow and choose where it runs.
- Press Record. The screen is outlined in red.
- Do the task the way you always do: click, type, press keys, scroll, type web addresses in the browser bar, pick files, answer the page’s questions.
- Press Stop recording. The flow is saved to your account.
Every step also keeps its starting point: a small picture of the whole screen in several places as it was just before the step, and in the browser the web address. Clicks also keep a close picture of where you clicked. These pictures are how a step finds its place later, and how Flow gets the screen back to a step when you run from the middle.
Typing that follows on from itself becomes one step. A key press with Control, Alt or Shift is its own step. Scrolling in one place becomes one step with a number of notches.
The timeline
Steps sit under the screen as clips, in order, each with its picture and the time it happened. Use the slider to make them wider or narrower.
- Drag a clip to move a step.
- Tap a clip to open it: rename it, change its text, keys or wait, choose how exactly the screen must match and what happens if the step cannot find its place.
- Go to this step puts the screen where the step starts, without running anything after it.
- Run from here and Run to here run part of a flow.
- Duplicate or Delete from the step’s panel.
Add a step in the menu inserts, after the open step: a pause for you, text to type, a key press, a web address, a wait for the screen, a check of the screen, a repeat, a variable, or text read from the screen.
Undo (Ctrl+Z, or the Undo button after a delete) takes back the last change to the steps, one change at a time. Changes are saved a moment after you make them; a long recording is saved as it goes.
Running from the middle
A step can only do its work on the screen it was recorded on. So before Run from here starts, Flow looks at the live screen and compares it with the step’s starting point.
- Already there: the run starts at once.
- Not there: the screen shows Getting to step N while Flow takes it there. In the browser it opens the step’s web address first. Then it looks for the latest earlier step whose starting point matches the screen and quietly replays from that step up to step N, at full speed.
- Cannot get there: Flow says so plainly and hands you the screen. Put it where step N starts and press Continue, or stop.
Checks and branches
A check looks at the screen and chooses what happens next. There is no code: you pick a part of the screen with the mouse.
- Choose Add a step, then Check the screen.
- Drag a box around the thing to look for on the live screen: a message, a button, an icon.
- Choose what happens if it is there and if it is not: go on to the next step, go to a step you choose, or end the flow.
Repeat until works the same way: it goes back to a step you choose until the picked part of the screen appears, up to a number of times you set. Use it for lists, pages of results and anything that has to be done again until a message says it is finished.
A check can look only where you picked, or anywhere on the screen for things that move.
Variables
A variable is a name that holds some text, so one flow can do the same task with different details. Type it into a typing step as {{name}}, for example *Dear {{client}}*.
| Its value comes from | What happens |
|---|---|
| Ask each run | Before the run starts Flow shows one short form with every variable it needs. |
| A fixed value | The same text every run, kept in one place so it is easy to change. |
| Read from the screen | A Read text from the screen step takes the text in the part of the screen you pick, using text recognition on Ocalt, and keeps it for later steps. |
| Set by a step | A Set a variable step gives it a value part way through, which can include other variables. |
Open Variables from the menu to add, rename or remove them.
Several screens
On a machine with more than one monitor, the screen switcher on the stage shows each one. Choose a screen to see and record on it. Every step remembers its screen, and a run switches to it before the step.
Where am I
Where am I on the stage compares the live screen with the starting point of every step in the open flow, in several places at once, and selects the step the screen is at. Run from there, or go on recording.
On your flows page, Find flows for a screen looks at a screen you choose and marks every flow that contains it, with the step it matches. Open one at that step with a tap.
Running
Press Run. After each action Flow waits for the first picture of the screen taken after the action reached it, never an older one, and then for the screen to settle. Before every click it checks the screen:
Before a step that types, presses keys, scrolls, reads or checks, Flow waits for the screen that step was recorded on, so nothing is typed into a page that has not finished arriving. When a run needs you, a card on the screen says why and offers Continue, Skip this step and Stop the run. A bar above the controls shows how far the run has gone.
- Check: does the screen look the way it did when you recorded, at that place?
- Find: if not, it searches the whole screen for the picture and clicks it where it is now.
- Wait: if it still cannot see it, the page may be loading; it waits and looks again.
- Ask you: if it is still not there, it stops, marks the place in red and hands you the screen. Put things right and press Continue, or Skip step.
| Speed | What it does |
|---|---|
| As recorded | Keeps the waits you made while recording, up to a few seconds each. |
| Bullet time | Goes as fast as the screen allows, still checking before every click. |
A pause step stops the run with your own message, for the decisions that should stay yours. Flow never tries to answer an “are you a robot?” test; it hands you the screen.
Flow’s browser
- Profiles are separate browsers with their own sign-ins, so one site can be used as several accounts. Each profile also sets what websites see: a Windows computer, a Mac, an Android phone or tablet, a language and a time zone.
- Private session keeps nothing once it closes.
- Open another session opens a second window with a different profile next to the first.
- Files: when a page asks for a file, Flow shows its own picker: your Ocalt files, your Ocaltio drives, your machines, or this device. The choice is recorded as a step and picked again on every run.
- Questions from the page (alerts, confirmations, prompts and “leave this page?”) appear over the screen. Your answer is recorded as a step.
- New tabs: a link that opens a new tab or window opens in the same view, and closing it comes back.
- Downloads are kept with the session; Keep saves one to your Ocalt files under Downloads.
The stage
- Actual size shows the screen pixel for pixel, scrolling if it is larger than the window.
- Expand (the E key) hides the timeline and the step panel so the screen fills the editor; press E or Escape to come back.
- Full screen fills your display.
Saving, sharing and importing
Flows are saved in your Ocalt namespace, under /root/flow, as .flow files. Download as a .flow file keeps a copy; Import a flow brings one in.
The .flow file
A flow is one JSON file. Download as a .flow file in the flow’s menu saves it; Import on your flows page brings it back, on any account, and you choose where it runs before it does anything. Flows you keep are the same files, in your namespace under /root/flow.
| Field | What it holds |
|---|---|
| v | The format version. 2 is current; version 1 files (no starting points or variables) still open and run. |
| id, name | The flow’s own id and its name. The file is called name • id.flow. |
| machine | browser for Flow’s browser, or the id of one of your machines. |
| profile, display | The browser profile (default, a profile id, or private), or the machine’s screen number. |
| startUrl | Where Flow’s browser opens before step 1. |
| vars | The variables: each has name, from (ask, fixed or step) and value. |
| steps | The steps, in order. Each has id, kind, name, gap (milliseconds waited before it while recording), display on a machine, and at, its starting point. |
| stats | How many runs, and the time they gave back. |
| Step kind | Its own fields |
|---|---|
| click | nx, ny (where, from 0 to 1 across and down), button, fp (the pictures around the click: near, wide, thumb, fw, fh), tol, miss |
| type | text, which may hold {{variables}} |
| key | keys, for example [Control]+[s] |
| scroll | nx, ny, amount (notches; down is positive) |
| go | url, or action: back, fwd or close (a tab) |
| pause | text, the message shown to you |
| wait | secs, and a region to wait for, if any |
| if | region, yes and no: next, end, or the id of a step |
| until | region, back (the id of the step to repeat from), shows (true: until it is there; false: until it has gone), max |
| set | var and value |
| read | var and region |
| file | files: where each comes from (your files, a drive or a machine, with its path) and its name |
| dialog | accept, text for a prompt, and the message the page showed |
A starting point (at) is sig, the whole screen as 48 by 27 grey samples in base64, compared in nine parts; url in the browser; and fw, fh, the size of the screen it was taken from. A region is the part of the screen you picked: nx, ny, nw, nh from 0 to 1, its grey samples g of tw by th, a thumb picture, and anywhere when it may be found anywhere on the screen.
Running a flow with no page open
Any flow can run on Ocalt with nobody watching: from Omni, from a rule, or from your own program through the gateway. The run is always yours: your account, your flows, your machines and your browser profiles.
| Command (app flow) | Arguments | Answers |
|---|---|---|
| run | file (for example invoice • abc123.flow), variables (an object of names and values), wait (seconds to wait for the end, 0 to 300, 120 if left out), speed (bullet, the default, or normal) | The run |
| run_status | run, the id run answered with | The run as it is now |
| run_stop | run | The run, stopping |
| run_list | none | Your runs from the last six hours |
A run answers with run (its id), file, status (running, done, stopped or failed), message (what the run line said last, for example the reason it stopped), step and steps, ms, started, finished, variables (their values at the end, including text read from the screen) and log (what each check saw).
When wait runs out first the status is running; ask run_status with its id until it is not. Runs are kept for six hours. Three of your runs can go at once.
- Flow’s browser flows open a window of their own, in the flow’s profile, so sign-ins you made there are used.
- Machine flows use the machine’s live view and input, the same as when you watch. The machine must be on and signed in.
- Variables set to ask each run take their value from variables, or their suggested answer when it is not given.
- Anything that needs a person (a pause step, a step that cannot find its place and is set to ask) ends the run as failed, with the reason in message. Set such steps to skip, or keep them out of flows that run unattended.
Settings
The gear on your flows page opens Settings: the theme (match your device, light or dark), the speed, how long a step waits for a slow screen, what a new step does when it cannot find its place, Flow’s browser profiles, and installing Flow as an app on this device.
How it works
The live screen and every click travel over the same channel Fabric uses for remote control. Flow’s browser is a Chrome window on Ocalt that speaks that same channel. Every picture carries the number of the last action it shows, which is how a run knows a picture is new. Matching is done by comparing grey pictures of the screen with normalised cross-correlation: arithmetic, so the same screen always gives the same answer.
Who it is for
Anyone who repeats the same clicks in the same order: front desks copying bookings between systems, shop owners retyping orders, teachers entering marks into a portal, IT teams applying one fix to many machines.