What an automation is
Most changes you make in Spanner by hand also have an automation command: a name such as Add Classification, Load Sales Data or Export PPT, and up to two values, Parameter 1 and Parameter 2, that say what to act on. An automation is a list of these commands saved under a name. Spanner runs them in order, as if you had made each change yourself.
Use one for anything you do the same way again and again: setting up a new document, refreshing the sales data each period, tidying a retailer's planogram file, exporting the same set of planograms to PowerPoint.
| To run commands | Use | Covered in |
|---|---|---|
| One at a time | Automation › Enter Automation Command, or the buttons in Automation › Common Custom Commands. | Part 2 |
| As a saved list | An automation, run from the Automation menu, the toolbar or the start screen. | This guide |
| By asking | Spanner AI, which runs the same commands and can save an automation for you. | Part 5 |
Each automation also says when it is offered, its Criteria in Settings, so the menu only shows the ones that make sense at the time:
| Offered at | It shows in the Automation menu |
|---|---|
| None | Always, even with no document open. Use it for automations that open or start a document. |
| Document | When a document is open. |
| Planogram | When a planogram is selected. Use it for automations that work on the selected planogram. |
Running one
- Open the document, and select the planogram, that the automation is for.
- Choose Automation › Automation › its name.
The commands run straight away, one after another, and the progress bar shows how far Spanner has got. Most automations take a moment; one that loads a product library or imports sales data takes as long as doing that by hand.
With a document open there is a quicker way. Hold the mouse over the automation icon on the toolbar and every automation is listed as a button. Click one to run it.
The Automation menu appears once there is a document open or an automation offered at None. Its first item, Automation, only appears when at least one automation is offered at the time.
New Document Shortcuts
An automation offered at None that includes the command Add Document also appears on the start screen, the one you see with no document open, under New Document Shortcuts. One click starts a document the way you always start one: a blank document with your classifications and measures, or one that already has your category's products from the product library and a retailer's sales data loaded.
Name it for what it makes, such as New Soft Drinks Document with Retailer A Data. The first example below is one.
Building one
Automations are made in Settings. Before you start, write down the commands in the order you want them, with the name of each and what goes in its two parameters. Part 3 lists every command, and Automation › Enter Automation Command lets you try one on its own first.
- Choose Tools › Settings and open Automation.
- Click the green + at the right of the headings. A row called New Automation is added at the foot of the list.
- Type its name. This is what the menu will show.
- Under Criteria, choose when it is offered: None, Document or Planogram.
- Click …, beside the number of actions, to open its list of actions.
- Click the green + in that list's headings to add an action. Type the command's name under Action, and its values under Parameter 1 and Parameter 2. Leave a parameter empty if the command doesn't use it.
- Add the rest of the commands in the same way, then click outside the list to close it.
- Click the green tick at the foot of Settings to keep your changes. The red cross closes Settings without them.
| On | The buttons |
|---|---|
| An action | The arrows move it up or down the list. The red cross deletes it. The green + inserts a new action below it. |
| An automation | The arrows move it up or down, which is its place in the menu. The red cross deletes it. The copy and paste buttons are for sharing. |
Parameters are typed as you would say them: a classification by its name (or its number in the document's list, starting at 0), a planogram by its name, a file by its full path. Measurements are in microns, where 1 mm is 1,000, unless the command says otherwise; Part 3 explains these conventions.
Examples
Three automations of the kind most teams end up with. The first is the one in the pictures above; in the others, names in italics stand for your own interfaces, templates and outlets.
A new category document, offered at None
| Action | Parameter 1 | Parameter 2 |
|---|---|---|
| Add Document | ||
| Add Planogram | ||
| Add Bay | Tesco Bay 133x57 | |
| Product Library Get All | Soft Drinks Demo | |
| Load Sales Data | Demo | |
| Set Outlet | Outlet | |
| Set Channel | Channel | |
| Refresh Navigator Sales Data |
This is Add Doc with Soft Drinks Products & Tesco Data. It starts a document and gives it a planogram with one bay from the preset bays in Settings. It brings in every product from the Soft Drinks Demo product library, runs the Demo sales data interface, points the planogram at the data's outlet and channel, and brings the navigator's sales figures up to date. Because it is offered at None and starts with Add Document, it is also a New Document Shortcut.
Add Times to set the two time periods, or Apply Demand Model to give the document its model. Parameter 2 of Product Library Get All can hold a filter, such as Category=Soft Drinks, using the library's own column names, to bring in only some of the library.
A data refresh, offered at Document
| Action | Parameter 1 | Parameter 2 |
|---|---|---|
| Clear Outlet Sales Data | Retailer A | |
| Load Sales Data | Retailer A Weekly | |
| Set Latest | 52 w/e 04 Oct | |
| Calculate |
It empties last period's figures for the outlet, imports the new file, renames the latest year to match, and works out the calculated measures again. If the interface's file is not where it was, Spanner asks you to pick the new one.
Tidying a retailer's planogram file, offered at Document
| Action | Parameter 1 | Parameter 2 |
|---|---|---|
| Check Digit | UPC | 7 12 |
| UPC Length | ||
| Add Default Classifications | ||
| Add Default Measures | ||
| Add Default Movement | ||
| Product Library | Our Product Library | ImportMatched |
It mends barcodes that arrived without their check digit, puts them in the usual 8 or 13 digit form, adds your classifications, measures and movement rows, and fills in your coding for every product your library already knows. The PSA conversion buttons in Common Custom Commands do the middle steps one click at a time.
Undo and mistakes
- Each command is its own step under Edit › Undo, so taking back a whole automation can take several undos.
- Saving, exporting and changes to Settings can't be undone. An automation that saves the document or writes PowerPoints has done so for good.
- Spanner runs exactly what is written. A command that names a classification, outlet or interface the document or your settings haven't got does nothing, and the rest carry on. If an automation seems to have skipped a step, check that step's names against the document.
- Try it on a copy first. Save the document, run the automation, and look at the result before you rely on it.