For the complete documentation index, see llms.txt. This page is also available as Markdown.

Automations reference

The node model behind every automation, the schema it requires, and the usage limits that constrain it.

What an automation is

Automation is the process of removing human intervention and relying on machines to coordinate repetitive tasks. Triggered by user activity, an automation launches a predefined sequence of actions.

The canonical example. You run an online shop, and customers add products to their carts without completing the purchase. You could extract a list of those customers every day and load it into your email tool - and it would get tedious immediately. An automation instead sends the email itself, every time a customer adds a product and does not buy. See Cart abandonment automation.

Automations is an extension module. Get in touch with your Account Manager for information on enabling it.

The model

An automation is composed of nodes, linked by edges - branches. A user travels from node to node along edges until the scenario is over. Depending on its type, a node has 0 or 1 edges in, and 0 to n edges out.

The families of node, plus one construct that is not a node in the flow. The Example column follows the cart abandonment scenario introduced above:

Family
What it does
Example
How many

Triggers (input nodes)

Define what makes a user enter the automation. Always at the start.

React to an event on $basket_view: the user has added an item to their cart.

Exactly one per automation

Do something to or for the user travelling through: send an email, change segment membership, push to a feed, run a custom action.

A Custom action node sends the reminder to users who have not bought.

Any number

Alter the natural flow: wait, branch on a condition, split into equal proportions.

A Wait node holds the user for 2 hours, in case they complete their order.

Any number

Make a user leave the automation from wherever they are, if a condition becomes true.

An exit condition on $transaction_confirmed: a user who buys leaves the automation, whatever node they are on.

Any number

Action nodes fire asynchronously: the action is triggered and the user moves on to the next node without waiting for it to complete.

Required changes to the schema

Using automations may require changes to your schema. Your UserPoint object needs a scenarios property referring to a UserScenario object:

Schema work in general is documented in Design your data model & schema.

Usage limits

Default limits are set per organisation. They are worth reading before designing a large scenario estate, because they constrain design rather than merely runtime.

Limit
Default
Scope

Scenarios in PAUSED or ACTIVE state

100

Per organisation

Scenarios with ACTIVE status

20

Per organisation

Nodes per scenario

20

Per scenario

Wait nodes in active scenarios

20

Per organisation

Users awoken per wait node per hour

50,000

Indicative service level objective

Where to go next

Last updated

Was this helpful?