Trigger
Trigger conditions
On the Trigger tab, you visualize the trigger object picked at scenario creation. You can add a Formula to validate in order to fine tune when the scenario should execute.

Trigger formula example
How to run this scenario ?
API Execution
All scenarios can be executed to request a decision by API. The scenario_id necessary for this is displayed in the scenario page's Trigger tab, and should be added to your payload when calling the Decision API.
This is the right option if you want to run real-time decisions. In that case, we strongly recommend that you first call the Decision API, then ingest the object, as explained in the chart below.

When using real-time decisions, you should call the Decision API before the Ingestion
Batch execution
If you do not need a real-time decision, and rather want to run your scenario on all your data matching the Trigger conditions, you can schedule recurrent executions or launch it manually:
Scheduled execution
On the draft version of your scenario, you can configure the schedule on which it should be run:
- Tick the checkbox Run this scenario on a schedule under Batch Execution
- Choose whether you want to run your scenario:
- Daily at a specific time
- Weekly on a specific day
- Monthly on a specific day number

Set the schedule of your recurrent executions
Note that you can see the past executions of your scheduled scenario by clicking on the Schedule executions button from the Batch section of the scenario.

See your scenario's past executions
When using scheduled scenario executions, keep in mind that you should ingest all your data, either in real-time or by batch, and then your scenario will be run, when scheduled, on each objects matching the conditions criteria. Here is the expected flow:

For a scheduled execution, ingest all your objects and wait for the automatic execution
Manual execution
Additionally, you can also run your scenario manually, which can be useful to make sure your scenario works well during your test phase or to trigger decisions on past data after creating a scenario for example.
To do so, just click the Launch now button on theBatch section of the scenario (screenshot above).
Updated about 1 month ago