Skip to main content

automation and scripting

Automation is how you do the same piece of work on a hundred tills without touching a hundred tills. You write or install a script, run it against devices or groups on demand, or put it on a schedule, and PosKit fans the work out across the estate and collects the results in one place.

in this section​

PageCovers
scriptsThe script library, folders, and the PosKit template gallery
writing scriptsCreating scripts with the AI builder or by hand, and editing them later
running scriptsThe Run Script dialog, target selection, and what happens to offline devices
schedulesCron and one-time schedules, targeting, and the target-preview gotcha
executionsWatching runs, reading per-device results, exporting, and cancelling
files and distributionStoring files and pushing them out to devices
trigger URLsFiring a script from an external system or from the POS itself
session replayRecording till interactions and replaying them for smoke testing (beta)
smartfix playbooksStored fixes SmartFix follows, and how it learns new ones (beta)

the automation dashboard​

The automation landing page is a summary and a set of jump-off points.

Stat cardShowsLinks to
Total ScriptsEvery script in your libraryscripts
Active SchedulesEnabled schedules only — paused ones are excludedschedules
Running ExecutionsRuns currently in flightexecutions
Success RateAcross recent executionsexecutions

Below the stats sit three action cards — Manage Scripts, Manage Schedules and View Executions — and a Recent Activity panel listing the 10 most recent executions with the script name, completed and total device counts, a timestamp and a status badge. Every row is clickable and takes you straight to that execution's detail page.

tip

Active Schedules counts enabled schedules only. If the number looks low, check the schedules list for paused entries — in particular, a one-time schedule pauses itself once it has fired and stays in the list. See schedules.

what runs where​

Scripts are dispatched to the PosKit agent on each targeted device and executed there.

LanguageRuns on
PowerShellWindows
BatchWindows
BashLinux
PythonWindows, Linux, macOS
caution

Android devices cannot run scripts. The Android agent is monitoring-only. Android devices are excluded automatically when a run is dispatched, even if they match your targeting.

permissions​

PermissionMinimum roleGrants
automation:viewviewerSee scripts, schedules and executions
automation:executetechnicianRun scripts, generate trigger URLs
automation:createmanagerCreate scripts and folders, install templates
automation:editmanagerEdit scripts and schedules
automation:deletemanagerDelete scripts and schedules

Roles are cumulative in practice — a manager also holds the viewer and technician permissions.

a note on approval​

Every script carries an approval status, and only approved scripts can run. In practice, scripts you create in the portal and scripts you install from a template are approved immediately, so this is rarely something you have to think about. There is no approval queue to work through. See writing scripts for what the status actually affects.