Overview
This walkthrough takes you from an empty Kaireon instance to a working decisioning setup. By the end, you will have categories, offers, channels, creatives, a decision flow, and will have called the Recommend and Respond APIs.This guide assumes you have completed the Quickstart and have Kaireon running locally or on the playground at
https://playground.kaireonai.com.Step 1: Create a Business Hierarchy
Start by organizing your offers into a logical hierarchy.Create a category
Go to Studio > Business Hierarchy and click + New Category.
Add custom fields:
| Field | Value |
|---|---|
| Name | Credit Cards |
| Description | Consumer credit card products |
| Icon | credit-card |
| Color | #6366f1 |
annual_fee(number, required)rewards_multiplier(number, required)personalized_rate(computed, formula:19.99 - customer.loyalty_score * 0.05, output type: decimal)
Step 2: Create Offers
Create offers that represent the products you want to recommend.Create your first offer
Go to Studio > Offers and click + New Offer.
Custom fields:
| Field | Value |
|---|---|
| Name | Platinum Rewards Card |
| Short Description | Earn 3x points on all purchases |
| Category | Credit Cards |
| Sub-Category | Premium Cards |
| Priority | High |
| Status | Draft |
annual_fee: 95rewards_multiplier: 3
Create a second offer
Create another offer for variety:
Custom fields:
| Field | Value |
|---|---|
| Name | Cash Back Card |
| Short Description | 2% cash back on everything |
| Category | Credit Cards |
| Sub-Category | Premium Cards |
| Priority | Medium |
annual_fee: 0rewards_multiplier: 2
Step 3: Create a Channel
Define how recommendations will be delivered.Step 4: Create Creatives
Create content variants that define how each offer looks on the channel.Create a creative for the Platinum card
Go to Studio > Creatives and click + New Creative.
Content:Personalization:
| Field | Value |
|---|---|
| Name | Platinum Card - Email |
| Offer | Platinum Rewards Card |
| Channel | Marketing Email |
| Template Type | email_html |
first_name->customer.first_name, fallback: “Valued Customer”offer_rate->computed.personalized_rate, fallback: “19.99”
Step 5: Create a Decision Flow
Build the pipeline that selects and ranks offers.Create a new flow
Go to Studio > Decision Flows and click + New Flow.
| Field | Value |
|---|---|
| Name | Credit Card Recommendations |
| Description | Selects the best credit card for each customer |
Add an Enrich stage
Add an Enrich stage to load customer data:
- Schema: customer_profile
- Key field: customer_id
- Fields: first_name, loyalty_score, credit_score, income
Add a Compute stage
Add a Compute stage to evaluate the
personalized_rate computed field for each candidate offer.Step 6: Call the Recommend API
Now test your setup by calling the Recommend API.Step 7: Record Outcomes with the Respond API
After the customer interacts with a recommendation, record the outcome.- Record an impression
- Record a click
- Record a conversion