The tables
returns table points at orders, and each order points at a customer. So a return reaches its customer through two keys. The database report lists this path under events_reaching.
Spend in the next 30 days
Churn in the next 30 days
rows: active limits the question to customers who ordered in the 30 days before the date. Asking whether a customer who has not ordered for a year will order nothing next month gives answers that are true but of little use.
The definition of churn matters more than the model. “No order in the next 30 days” suits a grocery business. A furniture retailer may need a window of a year. Try a few windows with tasks/evaluate and look at what each one predicts before you choose.
Products a customer will buy next
tasks/evaluate on the same task. Compare ours with rule_past_filled. That rule recommends what the customer bought before, then the most popular items. In some businesses, such as groceries, people mostly buy the same things again, and this rule is hard to beat. In others, such as books, they rarely buy the same item twice, and the rule does poorly.
Standing at a past date
Each of the calls above takesat. With "at": "2026-03-01", the model uses only what was known on 1 March 2026. You can run the three questions at a few past dates and compare the predictions with what happened afterwards. This is a fair test of the setup before you use it.