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

Triggers

The ways a user enters an automation, and the re-entry rule that governs all of them.

What a trigger is

The trigger is what makes a user enter an automation. Each automation has one and only one trigger, and it is always the first node - which is why entering the automation builder starts by asking which type of trigger you want.

The trigger types

Trigger
The user enters when
Configured with

On segment entry

They enter a specific segment. The automation is linked to segment computation.

A Query or List segment

On segment exit

They leave a specific segment. Also linked to segment computation.

A Query segment

React to an event

They cause a specified event.

A query on incoming activities

The first two run at the pace of segment computation - by default daily. React to an event runs at the pace of ingestion. If the scenario has to act within minutes of a behaviour, it needs an event trigger, not a segment trigger.

React to an event, in detail

The configuration specifies which events trigger the automation. In the Advanced view you can add field conditions - for example to trigger only on events taking place after a certain date.

Constraints on the query:

  • Only fields carrying the @TreeIndex directive in the runtime schema can be used.

  • The query is evaluated in the ingestion pipeline, on incoming activities - after session aggregation and processing by activity analysers, and before storage in the datamart.

That evaluation point is why an event trigger is fast, and also why it sees the activity as the pipeline produced it rather than as the datamart later stores it.

Re-entry

This single rule explains most surprising automation behaviour, and it is the reason exit conditions matter as much as triggers:

  • A user sitting in a 2-hour wait node cannot be re-triggered by a second qualifying event during those 2 hours.

  • A scenario with a long wait and no exit condition can hold a user for a long time, silently excluding them from re-entry.

  • A user who leaves through an exit condition becomes eligible again immediately.

Design the exit before you design the wait.

Last updated

Was this helpful?