Building automations
Triggers, conditions and steps: branches, delays, waits, approvals and actions, how often an automation may run for the same print, testing and versions.
Open Admin → Automations and choose New automation, or start from a blueprint. An automation has three parts:
- Trigger: what starts it. An event (a print finished, a print was put away for pickup, a restriction was issued), a schedule (“regularly, for every print waiting to be collected”), an inbound webhook, or Run by hand on one print or person.
- Only if: conditions on the trigger’s fields, with the same builder as requirements and action rules. Only a definite yes starts a run. A field the event doesn’t have counts as unknown.
- Steps, in order.
Events
| Group | Events |
|---|---|
| Print jobs | Print submitted, queued, rejected, cancelled, reprinted, prioritized, started, finished, failed |
| Pickup | Ready for collection, no space for collection, put away, collected, overdue, abandoned, missing from its bin, seen during a bin check |
| People | Printing restricted, restriction lifted, restriction ended, role given, role removed |
| Equipment | Printer offline, printer back online, printer needs attention, printer problem cleared, connection unhealthy |
| Automations | Automation paused |
A printer is offline after two minutes without an answer, and back online at its first answer.
It needs attention while it reports an error or a problem someone has to fix, such as a jam, a
runout or an open cover. Its problem is cleared when none are left. Each change fires once.
Printer events carry the printer’s name, model, site, state, when it entered that state
(printer.since) and when it last answered (printer.lastSeenAt); Printer needs attention also
carries the most severe problem and how many there are. To act only on a printer still offline
after a while, add a delay, the condition Printer online now is no, and Check conditions again
after waiting.
Print prioritized carries the reason, the action source, the Acting person’s roles at the print’s site, and whether the site was open (Site is open, Site next opens), all as of the moment it was prioritized. See removing after-hours priority for an example.
Steps
| Step | What it does |
|---|---|
| An action | Send a notification, send a webhook, print a label, give or remove a role, issue or lift a restriction, cancel a print, prioritize it or remove its priority, assign a reservation, run another automation, and the pickup actions (mark abandoned, mark disposed, extend the deadline) |
| If / else | Check conditions and take one of two paths; only a definite yes takes the first |
| Delay | Wait for a while, or until a date the trigger provides |
| Wait for event | Pause until something else happens to the same print or person, with a timeout and its own steps if it times out |
| Approval | Pause until someone with Approve automation steps says yes or no, with an expiry |
| Stop | End the run with an outcome |
Text fields in actions, such as a message’s subject and body, are templates with variables. Actions that change what someone may do (giving a role, restricting) are sensitive: each one waits for approval unless the automation’s settings say Apply sensitive actions without approval. If the automation fails holds steps that run when a step cannot complete.
A print_job.submitting automation (“before a print enters the queue”) runs while the print is
approved, so it can only route it (assign a reservation): no delays, waits or messages.
Settings
- Applies to: every site, or one.
- Runs for the same subject: Every time, Once per subject (a print that already ran is skipped from then on), or One run at a time (while one runs, new triggers are ignored, restart it, or wait and run once afterwards).
- Cooldown: the least time between runs for the same subject.
- Check conditions again after waiting: after a delay or wait, re-check Only if and stop if it no longer holds. The re-check reads the print or person as they are now; only what the event recorded about its own moment (an outcome, a reason, who acted) keeps its original value.
- React to other automations: off by default, so one automation’s changes don’t start another.
- Run limit per hour: past it, the automation pauses itself and the “Automation paused” staff alert goes out.
Test, publish and versions
The Test tab runs the draft against a recent event or print without changing anything or sending anything: every condition, rendered message and resolved recipient is shown, and delays are skipped. Edits are saved as a draft; Publish makes it the version that runs. The Versions tab lists every published version, shows what changed, and rolls back. Status Testing records runs without acting, as a rehearsal on live events.
See Run history for what each run did.