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
| Page | Covers |
|---|---|
| scripts | The script library, folders, and the PosKit template gallery |
| writing scripts | Creating scripts with the AI builder or by hand, and editing them later |
| running scripts | The Run Script dialog, target selection, and what happens to offline devices |
| schedules | Cron and one-time schedules, targeting, and the target-preview gotcha |
| executions | Watching runs, reading per-device results, exporting, and cancelling |
| files and distribution | Storing files and pushing them out to devices |
| trigger URLs | Firing a script from an external system or from the POS itself |
| session replay | Recording till interactions and replaying them for smoke testing (beta) |
| smartfix playbooks | Stored 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 card | Shows | Links to |
|---|---|---|
| Total Scripts | Every script in your library | scripts |
| Active Schedules | Enabled schedules only — paused ones are excluded | schedules |
| Running Executions | Runs currently in flight | executions |
| Success Rate | Across recent executions | executions |
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.
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.
| Language | Runs on |
|---|---|
| PowerShell | Windows |
| Batch | Windows |
| Bash | Linux |
| Python | Windows, Linux, macOS |
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
| Permission | Minimum role | Grants |
|---|---|---|
automation:view | viewer | See scripts, schedules and executions |
automation:execute | technician | Run scripts, generate trigger URLs |
automation:create | manager | Create scripts and folders, install templates |
automation:edit | manager | Edit scripts and schedules |
automation:delete | manager | Delete 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.