Skip to main content
The retail rewards dataset is the flagship dataset pack for KaireonAI. It creates a complete decisioning environment modeled after a retail loyalty rewards program with 10 promotional offers across 6 channels, decisioning gates, contact policies, adaptive models, experiments, and a customer segment. This guide walks you through loading the dataset, exploring what gets created, running recommendations, recording outcomes, and using adaptive models.

What Gets Created

Step-by-Step Walkthrough

Key Features Demonstrated

Decisioning Gates

The dataset ships 5 decisioning gates. The two global hard gates apply to every offer: Three more are offer-scoped: Loyalty Members Only (membership_days >= 30), Premium BOGO — High Spend (income >= 70000, on BOGO Hard only), and Senior Discount Gate (age >= 35, on Discount High only). Missing attributes cause the rule to fail closed — the customer is ineligible.

Contact Policies

The dataset ships 5 contact policies:

Three Model Types

Decision Pipeline

The pipeline processes candidates through 7 stages:
  1. Inventory — Filters by schedule, flattens offers x creatives into candidates
  2. Qualification — Hard-gate rules (age, income, segment). Fail = removed
  3. Contact Policy — Frequency cap, cooldown, mutual exclusion
  4. Consent — Channel-level consent check
  5. Guardrails — Business constraint rules
  6. Scoring — Model-based or priority-weighted
  7. Ranking — Sort by score, apply limit, diversity constraints

Batch Email via Segments

Use the pre-loaded High-Income Members segment for batch email campaigns:
This runs the decision pipeline for the matching segment members (the High-Income Members segment is a subset of the 100 seeded customers) and returns per-customer decisions with email content (subject, body, CTA) ready for your ESP.

What to Look For

  • Qualification blocking: Request without attributes returns 0 decisions. The debugTrace shows which rules blocked each offer.
  • Contact policy enforcement: After 3 recommendations in a day, the frequency cap blocks further contact. The 24hr cooldown prevents re-contact too soon.
  • Experiment routing: The same customer always lands in the same experiment arm (deterministic hashing). 80% of customers get Scorecard scoring, 20% get Bayesian.
  • Adaptive learning: After recording outcomes via /respond, Bayesian models auto-update every 100 outcomes. Thompson Bandit updates alpha/beta per outcome immediately.
  • Multi-channel creatives: Each of the 10 offers has 6 creatives (web, email, mobile push, social, batch email, manual outreach) with channel-appropriate content.

API Quick Reference