How Decisioning Works
This page explains the model behind the AI Decision block: what it optimises, what it knows about your users, how it picks an action and how it learns. No background in machine learning is needed.
In a nutshell
- For every action, the model keeps an estimate of how much profit the action brings for a given kind of user, and of how sure it is.
- At each run, it gives every user the action that looks best, with a dose of healthy doubt: actions it knows little about still get tried, so it keeps learning.
- When a decision's attribution window closes, it looks at what the user did, computes the profit, and updates its estimates.
- A holdout group gets nothing, and a small share of users gets an action at random, so you can always measure what the actions add.
In technical terms, it is a contextual bandit with Thompson sampling on a linear model per action.
What the model optimises
The model maximises the reward of each decision: net profit, not revenue, because an action that sells more can still earn less.
:::tip Why profit and not revenue You split 1,000 users between two branches. Branch A adds them to a Meta Ads retargeting audience, which costs about €0.50 per user in ad spend; branch B adds them to a Klaviyo list, which costs €0.05 per user.
- On revenue, A wins: it brings €800 of sales against €600.
- On profit, it loses: €800 − €500 = €300 against €600 − €50 = €550. :::
For each decision, the model looks at what the user did during the attribution window:
- With a Revenue reward, it adds up what the user spent and takes away what it cost you: the cost of producing what they bought, and any cost per purchase.
- With a Conversions reward, it counts whether (or how many times) the user converted, at the value you gave a conversion.
In both cases it also takes away the cost of the action itself, such as the ad spend to reach the user. That cost is paid even if the user doesn't buy, so a decision can lose money: this is what teaches the model not to spend budget on users who wouldn't respond.
Only the purchases or conversions in the events table that match your events filter count, so make sure the filter keeps only the real ones.
What the model knows about each user
The model sees each user through their features: the feature columns you pick, plus, with a revenue reward, their recency, frequency and average spend.
The model remembers each user's features as they were on the day of the decision, so a purchase made afterwards can't leak into what it learns.
Choosing good features
- Pick what plausibly changes how a user responds: channel (preferred channel, device, app user), engagement (email opens, recency, newsletter opt-in), value (loyalty tier, an LTV prediction), geography (region).
- AI model results are good features: a propensity score summarises many signals in one column.
- Use numbers, categories or true/false columns. Turn dates into a number, such as days since signup.
- Prefer a handful of meaningful columns to dozens of weak ones: the model learns faster.
- Features can't change after Start without resetting the journey.
How a decision is made
At each run:
- Who gets a decision. Users never decided, or decided longer ago than the re-decision interval. With a daily cap, never-decided users come first.
- The holdout. A share of the users never decided before is drawn at random into the Holdout. They stay there at every later decision, so the control group is never contaminated.
- The random shares. Each action gets its minimum share of users at random. This keeps every action tested on every kind of user, and gives an unbiased comparison.
- The model decides for everyone else. For each action it has a best guess of the reward for this user, and a range of how sure it is. It draws a plausible reward for each action from that range and picks the highest.
Step 4 is how the model balances using what it knows with learning more. When it's sure, the draws stay close to the best guess and the best action wins. When it isn't, the draws vary, so a less-tried action sometimes wins and the model learns from it. As data comes in, uncertainty shrinks and exploration fades on its own.
The model can also decide that no action is best, for example for a loyal customer who buys anyway. Those users go down the Holdout branch too.
How the model learns
A decision made on day t is judged on day t + attribution window, when its outcome is known. At each run, before deciding, the model takes the decisions whose window just closed, computes their reward, and updates its estimates for the action each user received. Each decision is learned from once, even if a run is retried.
Customers change, so the model gradually forgets. With the default learning memory of 30 days, an outcome counts:
| Age | Weight |
|---|---|
| 7 days | 58% |
| 14 days | 34% |
| 30 days | 10% |
| 60 days | 1% |
Forgetting also means an action ignored for a while becomes uncertain again, so the model retries it from time to time.
A day-by-day example
4 actions, default settings (7-day window, 30-day re-decision interval, 10% holdout, 5% minimum share).
| When | What happens |
|---|---|
| Day 0 | No outcome is known: decisions are effectively random. Each action gets about 19% of the users, the holdout about 24%. |
| Days 1–6 | No window has closed yet: still random. The results show Waiting for the attribution window. |
| Day 7 | Day 0's decisions mature. The model learns for the first time and its choices start to differ between users. |
| Days 8–30 | A new batch matures every day. The allocation shifts towards what pays off for each kind of user. |
| Day 30 | Users decided on day 0 can be decided again, with their latest features. |
How fast it gets good depends on volume, conversion rate and how different the actions really are. On a simulated shop with 9,000 decisions a day, the model went from random to capturing about half of the best achievable profit in three weeks.
What the model can discover
The best action is not the same for everyone. Imagine an AI Decision whose branches add users to different audiences. The model never sees groups like these: it only sees features like age band, device, channel and loyalty tier.
| Group | Best action |
|---|---|
| Young, mobile users | Meta Ads audience |
| Users who search before buying | Google Ads audience |
| Engaged email subscribers | Klaviyo list: they respond to email, so paid media would only add cost |
| Dormant customers | Brevo SMS list |
| Loyal VIPs | No action: they buy anyway |
From the features alone, the model steers each group towards its best action. Groups where one action is clearly ahead are learned first; groups where the actions are close in profit take longer.
Tuning the settings
| Setting | Guidance |
|---|---|
| Attribution window | How long the action plausibly influences a purchase. Shorter windows give feedback, and learning, sooner. |
| Re-decision interval | Your contact frequency: how long to leave a user alone between treatments. |
| Minimum holdout | 10% is a good default. Below 5% the holdout gets small and the uplift noisy. |
| Minimum share | Higher keeps every action tested; lower lets the model exploit what it learned. |
| Learning memory | Shorter follows changes faster but is noisier. 30 days suits most businesses. |
| Costs | Set sending, purchase and production costs as accurately as you can: they make the model choose profit over volume. |
Reading the results
- A day's reward is about decisions made one attribution window earlier.
- Compare against the Holdout. Users also buy on their own: the uplift is what the actions add.
- Wait a few attribution windows before drawing conclusions. With few outcomes, differences between actions can be just chance.
- The allocation is the clearest signal. An action whose share keeps growing is winning for more users; one stuck at its minimum share is rarely the best for anyone.
When the model run fails
Users stay on the block and are decided at the next run. Common causes:
| Cause | What to do |
|---|---|
| A feature column was removed from the unified user table. | Reset the journey and choose other features. |
| A feature column holds dates or invalid values. | Use only numbers, text, categories and true/false, and fix the data. |
| The Min. random users don't fit in the run's users. | Lower them, or use the Minimum share instead. |