Automation
Runs, flows, schedules and scripts
Let DiceLogin open profiles and do the same steps in many of them, now or on a schedule.

The Automation page in the desktop app runs work on many profiles: open them for a while, run a flow (steps you build without code), or run your own script. You can start a run now, or set up a schedule.
Where tasks run
The browsers always run on your computers, not on our servers. A computer takes tasks only when Run tasks on this computer is on (Automation page or Settings → Automation) and DiceLogin is open there.
- At most … profiles at once sets how many profiles that computer handles together.
- A computer with less than 1.5 GB of free memory takes no new tasks until memory frees up.
- A run can be meant for one computer, or for any computer of the team that runs tasks.
Running on many profiles
On the Profiles page, select profiles and choose Run…:
- Run a flow or Run a script: each profile opens, does the work, and closes, unless you uncheck Close each profile when it's done.
- Open the profiles: they stay open, or close after the minutes you choose.
- Close the profiles.
Follow progress in Automation → Runs. Each profile shows done, failed with the reason, running, waiting or missed. Click a profile for its step-by-step log and the values the flow read. Cancel the rest stops profiles that haven't started; running ones stop at their next step.
Flows
A flow is a list of steps:
| Step | Does |
|---|---|
| Open page | goes to an address |
| Wait for element | waits until something is on the page |
| Click | clicks it like a mouse, at its position |
| Type text | clicks the field and types, a key at a time |
| Press key | Enter, Tab, Escape, arrows… |
| Scroll | scrolls the page, or to an element |
| Wait (random) | pauses for a random time between two values |
| Screenshot | saves a picture of the page on that computer |
| Read text | saves an element's text (or an attribute) as a value |
| If element exists | runs one list of steps if it's there, another if not |
| Repeat | runs steps several times ({{i}} is 1, 2, 3…) |
| Stop | ends the flow |
Elements are found with CSS selectors, such as #login, button[type=submit] or .price. Text can use variables:
{{profile.name}}and{{profile.id}}- values you give the run, as
name=valuelines - values a Read text step saved earlier in the flow
Record instead of typing steps: in the flow editor, choose an open DiceCore profile and press Record. Use the browser normally, then press Stop and add steps. Pages you open, clicks, typing and Enter become steps. Password fields are saved as {{password}}, never what you typed; give the real value when you start the run.
Flows run in DiceCore (Chrome) profiles. They use the browser's own input, so pages see ordinary clicks and key presses. Screenshots are saved in the DiceLogin folder on that computer.
Use flows only on sites and accounts you're allowed to automate. Flows don't solve CAPTCHAs.
Schedules
Automation → Schedules opens profiles, or runs a flow or script, at set times. Examples: every weekday at 09:00 and 18:30, or every 6 hours.
- Choose profiles, or every profile in a group.
- Choose the time zone, and the computer that runs it.
- If that computer isn't running DiceLogin with tasks on at that time, the run is marked missed after 30 minutes. It doesn't run late.
Scripts
Scripts are your own Node.js programs, for example with Puppeteer or Playwright. They live in a folder on each computer (Automation → Scripts → Open the scripts folder) and are never uploaded, so a script runs only on a computer where you put it. example.js shows the basics. Install puppeteer-core in that folder with npm install puppeteer-core.
A script gets:
DICELOGIN_WS_ENDPOINT | the open profile's automation address |
DICELOGIN_PROTOCOL | cdp (DiceCore) or webDriverBiDi (DiceFox) |
DICELOGIN_PROFILE | { "id", "name" } |
DICELOGIN_VARS | the run's values |
DICELOGIN_OUTPUT_DIR | a folder for files it makes |
Print a line DICELOGIN_RESULT {"orders": 3} to show a result in the run.
For safety, a script can read and write only the scripts folder, can't start other programs, and is stopped at its time limit (10 minutes unless the run sets another).
From the API
With an API key that has the launch permission, POST /api/v1/runs starts a run, and /api/v1/flows and /api/v1/schedules manage flows and schedules (see Cloud API). The run.finished webhook tells you when all of a run's profiles are done.
