Automations · Part 1

Running and Saving Automations

An automation is a list of Spanner commands saved under a name, which runs in one click. This guide covers running one, starting new documents with one, building your own in Settings, and sharing them with colleagues.

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 commandsUseCovered in
One at a timeAutomation › Enter Automation Command, or the buttons in Automation › Common Custom Commands.Part 2
As a saved listAn automation, run from the Automation menu, the toolbar or the start screen.This guide
By askingSpanner 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 atIt shows in the Automation menu
NoneAlways, even with no document open. Use it for automations that open or start a document.
DocumentWhen a document is open.
PlanogramWhen a planogram is selected. Use it for automations that work on the selected planogram.
This guide is for Spanner 2.5.1.2 and later. Automations are kept in your Spanner settings, not in a document, so each one is there for every document you open.

Running one

  1. Open the document, and select the planogram, that the automation is for.
  2. 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.

The Automation menu open, with its first item, Automation, listing four automations: Create 1m Planogram, Add Blank Doc, Add Doc with Soft Drinks Products, and Add Doc with Soft Drinks Products and Tesco Data, which is highlighted. Below Automation are the animation items, then Enter Automation Command, Common Custom Commands, Get Automation Code from Clipboard, Create Preset Planogram from 1 Bay (pre) and Decode 1 Bay (pre) to Automation Code
Saved automations appear by name under Automation › Automation. The rest of the menu is covered in Parts 2 and 4, and the animation items in the Animations guides.
The right-hand end of the toolbar, with the mouse over the automation icon. Below it, four buttons: Create 1m Planogram, Add Blank Doc, Add Doc with Soft Drinks Products, and Add Doc with Soft Drinks Products and Tesco Data
Hold the mouse over the automation icon on the toolbar, and click the one to run.

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.

The New Document Shortcuts panel on the start screen, with three large buttons: Add Blank Doc, Add Doc with Soft Drinks Products, and Add Doc with Soft Drinks Products and Tesco Data
New Document Shortcuts on the start screen: one button for each automation offered at None that starts with Add Document.

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.

  1. Choose Tools › Settings and open Automation.
  2. Click the green + at the right of the headings. A row called New Automation is added at the foot of the list.
  3. Type its name. This is what the menu will show.
  4. Under Criteria, choose when it is offered: None, Document or Planogram.
  5. Click …, beside the number of actions, to open its list of actions.
  6. 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.
  7. Add the rest of the commands in the same way, then click outside the list to close it.
  8. Click the green tick at the foot of Settings to keep your changes. The red cross closes Settings without them.
OnThe buttons
An actionThe arrows move it up or down the list. The red cross deletes it. The green + inserts a new action below it.
An automationThe 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.
Names must be spelt exactly, capitals included: Add Bay, not add bay. From Spanner 2.5.1.2 an action name Spanner doesn't know shows in salmon pink, and holding the mouse over a name it does know shows what its parameters take and what it does. Before 2.5.1.2, a misspelt name simply did nothing when the automation ran.

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.

The Automation section of Settings, open. Columns Automation Name, Actions and Criteria, with a green plus at the right of the headings. Four rows: Create 1m Planogram, 3 actions, Document; Add Blank Doc, 3, None; Add Doc with Soft Drinks Products, 4, None; Add Doc with Soft Drinks Products and Tesco Data, 8, None. Each row has a button with three dots, up and down arrows, a red cross, and copy and paste buttons
Tools › Settings, then Automation: each automation, its number of actions, and when it is offered, under Criteria.
The same section with the last automation's list of actions open beside it. Columns Action, Parameter 1 and 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. Each action has up and down arrows, a red cross and a green plus
The eight actions of Add Doc with Soft Drinks Products & Tesco Data, opened with its … button.

Sharing

An automation that works for you will work for a colleague whose Spanner has the same set-up: the same product library interfaces, sales data interfaces, export templates and presets that its commands name.

To shareDo this
One automationClick the copy button on its row in Tools › Settings › Automation. The whole automation goes to the clipboard as one line of text, to paste into an email or a chat. Your colleague copies that line and clicks the paste button on any row of their list: the automation is added below that row.
Several, or everythingClick Save Settings to File at the foot of Settings and tick Automation. Add Settings from File adds the file's automations to someone's own; Load Settings from File replaces theirs with the file's. Sharing Tables shows these buttons, for tables.

A command that names something the other Spanner hasn't got does nothing there. Check those names after sharing, or set the team up with the same settings file.

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

ActionParameter 1Parameter 2
Add Document
Add Planogram
Add BayTesco Bay 133x57
Product Library Get AllSoft Drinks Demo
Load Sales DataDemo
Set OutletOutlet
Set ChannelChannel
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

ActionParameter 1Parameter 2
Clear Outlet Sales DataRetailer A
Load Sales DataRetailer A Weekly
Set Latest52 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

ActionParameter 1Parameter 2
Check DigitUPC7 12
UPC Length
Add Default Classifications
Add Default Measures
Add Default Movement
Product LibraryOur Product LibraryImportMatched

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.
Before Spanner 2.5.1.2, running an automation replaced whatever was on the clipboard with a list of timings. If you copied something before running one, copy it again.

Doing the same work every period?

We can set up the automations, interfaces and imports with you, so a new period's data or a new retailer planogram takes minutes rather than an afternoon.

Email us Book a Demo