Skip to main content

Tutorial: Retail Rewards NBA Pipeline

This hands-on tutorial walks you through the entire KaireonAI platform using a sample retail rewards dataset modeled on a real loyalty-program offer pattern. You’ll set up a complete NBA pipeline — from loading data to watching models learn from customer responses. What you’ll learn:
  • How offers, channels, and creatives work together
  • How decisioning gates and contact policies filter decisions
  • How to run the Recommend API and interpret results
  • How to record outcomes and see models improve
  • How to read the dashboards and debug eligibility
Time: 15-20 minutes

Step 1: Load the Dataset

Navigate to Settings → Sample Data and click Load on the Retail Rewards Offers dataset.
Sample Data page showing Retail Rewards Offers dataset
This creates everything you need:

Step 2: Explore the Offers

Go to Studio → Offers. You’ll see 10 offers organized into 3 categories:
Offers page showing 10 retail rewards offers

Acquisition (BOGO Offers)

Retention (Discount Offers)

Engagement (Informational)

Notice: Each offer has 4 creatives (one per channel) with channel-appropriate content — email has subject lines, mobile has deep links, social has hashtags.

Step 3: Understand the Rules

Decisioning Gates (who can receive offers)

Go to Studio → Decisioning Gates to see all 5 rules:

Contact Policies (how often / when)

Go to Studio → Contact Policies:

Step 4: Look Up a Customer

Go to Data → Customer Viewer and search for SBX-000042.
Customer Viewer showing SBX-000042 profile and eligibility
You’ll see:
  • Profile card with demographics (age, income, gender, membership days)
  • Eligibility tab showing which of the 10 offers this customer qualifies for
  • Pipeline funnel showing how many candidates survive each stage
  • Rule detail — expand any offer to see exactly which rules passed/failed
Try different customer IDs to see different results. The 100 seeded customers use IDs SBX-000000 through SBX-000099, and each one’s demographics (age, gender, income, membership tenure) are generated from a fixed random seed — so the same ID always resolves to the same profile. Search a few and compare which of the 10 offers each qualifies for, and watch the age and income gates include or exclude the premium BOGO and senior discount offers.

Step 5: Run a Recommendation

From the API Explorer

Go to Settings → API Explorer and try:
The response shows:
  • decisions — the top 5 offers ranked by score
  • meta — pipeline trace (totalCandidates → afterQualification → afterContactPolicy → count)
  • recommendationId — save this for the next step

From curl


Step 6: Record an Outcome

When a customer responds to a recommendation, record it:
Important: Include the Idempotency-Key header to prevent double-counting. Try recording different outcomes:
  • "click" — customer clicked the offer
  • "accept" — customer accepted/redeemed
  • "dismiss" — customer dismissed it
  • "convert" — customer completed a purchase
After recording a conversion (accept or convert), try recommending again — you’ll see the 48hr post-conversion cooldown kick in, suppressing offers temporarily.

Step 7: Check the Dashboards

Business Dashboard

Go to Dashboards → Business. You’ll see:
Business Dashboard with retail rewards metrics
  • Channel Effectiveness donut chart — which channels drive the most engagement
  • Offer Performance bars — which offers get the most conversions
  • Daily Trend line chart — impression and conversion volume over time
Use the period filter (Today / 7d / 14d / 30d / 90d) to adjust the time window.

Operations Dashboard

Go to Dashboards → Operations:
  • Acceptance Rate by Offer — see which offers customers actually respond to
  • Total Decisions — how many recommendations have been made

Model Health

Go to Dashboards → Model Health:
  • Select different models from the dropdown to see AUC trends
  • Score Distribution — see how propensity scores are distributed
  • Use the View buttons (All / By Channel / By Offer / By Category) to break down scores

Step 8: Explore the Decision Flow

Go to Studio → Decision Flows and click on Retail Rewards: Full Decision Pipeline.
Decision Flows page showing retail rewards pipeline
This is the heart of the system — a composable pipeline that processes every recommendation request:
  1. Inventory — loads all active offers and their creatives
  2. Qualification — applies 5 rules, drops ineligible candidates
  3. Contact Policy — applies 5 suppression policies
  4. Score — runs the selected ML model (Scorecard, Bayesian, or Thompson Bandit)
  5. Rank — selects the top N candidates by score
  6. Response — formats the final recommendation
Each stage narrows the candidates. In the Customer Viewer’s Eligibility tab, you can see exactly how many survive each stage.

What’s Next?

Now that you’ve explored the retail rewards pipeline, try:
  • Creating your own offer — Studio → Offers → + New Offer
  • Adding a decisioning gate — target a specific customer segment
  • Setting up an experiment — Algorithms → Experiments to A/B test models
  • Building a journey — Studio → Journeys for multi-step customer flows
  • Connecting your own data — Data → Connectors to bring in real customer data
For the full API reference, visit docs.kaireonai.com/api-reference.