Skip to content

How templates work

A template is the design for a scenario: what’s in it, what people can do, and how it reacts. You build a template, publish it, and then run as many scenarios from it as you like.

New to templates? The tutorial builds one step by step.

Open the Scenarios tab and tap Templates at the top. (Tap Scenarios to go back.)

  • Mine lists templates you own or that have been shared with you. Filter by Draft, Published or Archived, or search by name.
  • Platform lists ready-made templates from ActualityPI, when there are any. Tap Use to copy one into Mine as a new draft that’s yours to change and publish.

Each version of a template has its own row in Mine, showing its version number and status.

Tap + (or Create your first template). A new draft opens straight away, named “Template” and a short code. To give it a name, tap the pencil next to its name. To describe it, tap Add a description.

Then build it from its Definitions: the entity templates, attributes, actions and other building blocks. The Definitions card shows how many of each the template has; tap one to open its list.

Actions, effects, triggers, relationships and conditions read as sentences, such as “Anyone may use Check in on 1 target, a Checkpoint.” Each highlighted part is a pill. Tap it, and a This pill card under the sentence shows what it can be; tap the pill again to close the card. A dashed pill still needs an answer, and an outlined one no longer fits, with the reason under the sentence. Save (or Add, for a new effect) stays greyed until every pill is answered.

  • A pill that names entities, such as the performer, can be narrowed or followed through links with hops. See On which entities.
  • A condition is one or more clauses, such as “the performer holds Verified”. Tap Add a clause for another. See Conditions.
  • Under an effect’s sentence, Reads as says the whole effect in plain words.
Status What you can do
Draft Change anything. Publish draft, or Delete draft
Published Create scenario, Clone, Fork new draft or Archive. What it does can’t change
Archived Fork new draft only. No new scenarios can be created from it

You can change a template’s name and description at any status, in place on the template’s page. The names and descriptions of everything in it stay editable too.

Tap Publish draft. ActualityPI checks the template and, if it’s valid, publishes it: the button changes to Create scenario. If something’s wrong, you’ll see Publish failed with a list of what to fix; see Fixing publish errors. If you come back to a draft whose last attempt failed, it shows Last publish failed with the same list.

A published template can’t change, so scenarios running from it behave exactly as they did when they started. To make changes:

  • Fork new draft makes the next version of the same template, as a draft with everything copied. Publish it when you’re ready. Anyone the template is shared with keeps their access.
  • Clone makes a separate new template, starting at version 1, from the template’s latest published version. Only you have access to the copy.

A template can only have one draft at a time. If you see “This family already has a draft”, finish or delete that draft first.

Publishing a new version doesn’t change scenarios already created from an older one. Each scenario stays on the version it was created from.

Archive (in the ⋮ menu) stops new scenarios being created from a published version. Scenarios already running carry on. Archiving is permanent, but you can still fork a new draft from an archived version.

Delete draft permanently deletes the draft and everything in it. If it was the template’s only version, its sharing is removed too.

In a definition’s editor, next to its Name and Description, is Redact…. An enum attribute’s value labels have one each too. For the template’s own name and description, use Redact name… or Redact description… in the ⋮ menu.

Redacting permanently removes the text from every version of the template and shows a neutral placeholder instead, for example if you named something with personal information by mistake. Scenarios made from the template show the placeholder too, but names and descriptions a scenario copied when it was created stay as they are. It can’t be undone, and it doesn’t change what the template does.

If part of a template was made with a newer version of the app, its editor shows “This was made with a newer version of the app. Update the app to edit it.” You can still see it, and change its name and description, but nothing else until you update. On the web, tap Reload to get the newer version. On iPhone and Android, update the app from the App Store or Google Play.