# Predictions

> Predicted churn risk, next order date, lifetime value and RFM segments for every buyer, recalculated nightly and usable in segments and messages.

URL: https://docs.lemuai.com/segments/predictions
For: Everyone
Checked against LemuAI app version 1.0.12
Related: [Calculated fields](https://docs.lemuai.com/segments/calculated-fields), [Segments](https://docs.lemuai.com/segments/overview), [Standard and Conversion Events](https://docs.lemuai.com/website-pixel/standard-events)

**Predictions** work out, for every customer who has ordered, how likely they are to keep buying and what they're worth. They appear as built-in [calculated fields](https://docs.lemuai.com/segments/calculated-fields), so segments, journeys, templates and the contact page can use them like any other field.

Find them under **Audience → Segments → Calculated fields**, in the **Predictions** card.

## Turn them on

1. In the **Predictions** card, choose where orders come from (**Orders from**): **Purchase events** (the default) or a record type of orders (**Custom records**, with its date field).
2. Turn predictions on. The first run takes a few minutes ("Working out the first predictions…").
3. Optionally create the RFM segments: one segment per RFM group, found under **Segments**.

Predictions are recalculated nightly (**Updated nightly**) and when you press **Recalculate**. Only buyers get values; with no orders yet the card says "No orders yet. Predictions appear once customers order."

## The fields

| Field | Key | Meaning |
|---|---|---|
| Churn risk (%) | `churn_risk` | Chance (0-100) the customer has stopped buying, from how often and how recently they ordered compared with customers like them |
| Churn risk level | `churn_risk_level` | low (under 40%), medium (40-70%) or high (70% and above) |
| Predicted next order date | `next_order_date` | When the next order is expected. Empty when another order is unlikely |
| Expected orders, next 90 days | `expected_orders_90d` | Orders to expect in the next 90 days |
| Predicted spend, next 12 months | `predicted_clv_12m` | Expected orders in the next 12 months times the expected order value |
| Lifetime value | `lifetime_value` | Spent so far plus predicted spend in the next 12 months |
| RFM recency score | `rfm_recency` | 1-5; 5 = ordered most recently |
| RFM frequency score | `rfm_frequency` | 1-5; 5 = orders most often |
| RFM monetary score | `rfm_monetary` | 1-5; 5 = spent the most |
| RFM segment | `rfm_segment` | Champions, Loyal, Potential loyalists, New customers, Promising, Need attention, About to sleep, Can't lose them, At risk or Hibernating |

## Use them

- **Segment:** "Churn risk level is high and Lifetime value is at least 20000" → valuable customers about to leave.
- **Journey:** start a win-back journey when a contact **Enters or leaves a segment** of high churn risk.
- **Template:** `We miss you! Your next order usually comes around {{ contact.metrics.next_order_date }}.`
- **Choose channel, time and offer** step uses churn risk and value to decide who gets a bigger offer or a call.

## Common problems

- **"The recalculation stopped before it finished. Try again."** Press **Recalculate** again.
- **Values look wrong:** check **Orders from** points at your real orders, and that each order carries its value (the `value` property of `Purchase`, or the order record's total).
