Customer Segmentation Builder
Overview
This skill constructs multi-dimensional customer segments by combining transactional data (RFM), behavioral signals, lifecycle stage, and demographic attributes. It produces named, sized, and actionable segments with tailored marketing strategies, channel preferences, and expected value metrics for CPG and retail e-commerce contexts.
When to Use
- Building or refreshing a customer segmentation model
- Identifying high-value customer cohorts for targeted campaigns
- Developing personalized marketing strategies per segment
- Analyzing customer base composition and health
- Informing product development, assortment planning, or pricing with segment insights
- Creating audience lists for paid media, email, and loyalty programs
Required Inputs
| Input |
Required |
Description |
| Transaction Data |
Yes |
Customer-level purchase history: order date, order value, items, frequency |
| Customer Count |
Yes |
Total number of unique customers in the dataset |
| Time Period |
Yes |
Data range for analysis (minimum 12 months recommended) |
| Product Categories |
Recommended |
Category/subcategory taxonomy for purchase behavior analysis |
| Channel Data |
Recommended |
Acquisition source, purchase channel (web, app, marketplace, store) |
| Demographic Data |
No |
Age, gender, location, household composition |
| Engagement Data |
No |
Email opens/clicks, site visits, app sessions, loyalty status |
| Business Objectives |
No |
Specific goals (e.g., grow retention, reduce churn, increase AOV) |
Methodology
Step 1 — RFM Analysis Foundation
Calculate RFM scores for every customer:
Recency (R): Days since last purchase
R Score 5: Purchased within 0–30 days
R Score 4: Purchased within 31–60 days
R Score 3: Purchased within 61–120 days
R Score 2: Purchased within 121–240 days
R Score 1: Purchased 241+ days ago
Frequency (F): Total number of orders in the analysis period
F Score 5: Top 20% by order count
F Score 4: 60th–80th percentile
F Score 3: 40th–60th percentile
F Score 2: 20th–40th percentile
F Score 1: Bottom 20%
Monetary (M): Total revenue from the customer
M Score 5: Top 20% by total spend
M Score 4: 60th–80th percentile
M Score 3: 40th–60th percentile
M Score 2: 20th–40th percentile
M Score 1: Bottom 20%
Composite RFM Score = concatenation of R, F, M (e.g., "555" = best customers).
Step 2 — Lifecycle Stage Assignment
Map RFM scores to lifecycle stages:
| Lifecycle Stage |
RFM Pattern |
Description |
| Champions |
R:5, F:4–5, M:4–5 |
Best customers; buy often, spend high, recent |
| Loyal Customers |
R:3–4, F:4–5, M:3–5 |
Consistent buyers with high frequency |
| Potential Loyalists |
R:4–5, F:2–3, M:2–3 |
Recent buyers with growth potential |
| Recent Customers |
R:5, F:1, M:1–2 |
New first-time buyers |
| Promising |
R:3–4, F:1–2, M:1–2 |
Bought recently, low frequency — need nurturing |
| Need Attention |
R:2–3, F:3–4, M:3–4 |
Previously loyal, showing decline signals |
| About to Sleep |
R:2, F:1–3, M:1–3 |
Below average recency, at risk |
| At Risk |
R:1–2, F:4–5, M:4–5 |
Were high-value buyers, haven't returned |
| Hibernating |
R:1, F:1–2, M:1–2 |
Low across all dimensions, long inactive |
| Lost |
R:1, F:1, M:1 |
No activity for extended period |
Step 3 — Behavioral Enrichment
Layer behavioral attributes onto lifecycle segments:
Purchase Behavior Patterns:
- Category Loyalists: >70% of purchases in one category
- Cross-Category Shoppers: Purchases across 3+ categories
- Promotion-Sensitive: >50% of orders include a discount code
- Full-Price Buyers: <20% of orders include a discount
- Bulk Buyers: AOV >2× average
- Subscribe & Save: Active subscription orders
Channel Behavior:
- Digital-First: >80% of purchases via web/app
- Omnichannel: Active across digital + physical (if applicable)
- Marketplace-Dependent: Primarily Amazon/Walmart.com purchasers
- Social Commerce: Purchases originating from social platforms
Engagement Behavior:
- Email Engaged: Opens >30%, clicks >5% of emails
- App Active: >4 app sessions/month
- Loyalty Member: Enrolled in loyalty/rewards program
- Review Contributor: Has left 1+ product reviews
Step 4 — Value-Based Tiering
Apply value tiers using the Pareto principle:
| Tier |
Definition |
Typical % of Customers |
Typical % of Revenue |
| Platinum |
Top 5% by LTV |
5% |
25%–35% |
| Gold |
6th–20th percentile |
15% |
25%–30% |
| Silver |
21st–50th percentile |
30% |
20%–25% |
| Bronze |
Bottom 50% |
50% |
10%–20% |
Calculate per-tier metrics:
- Average LTV, AOV, purchase frequency, and retention rate
- Contribution margin (revenue minus acquisition and servicing costs)
- Growth trajectory (tier migration rate quarter-over-quarter)
Step 5 — Segment Profile Construction
For each segment, build a comprehensive profile:
Segment: [Name]
├── Size: X,XXX customers (XX% of base)
├── Revenue Share: XX% of total revenue
├── Avg LTV: $XXX | Avg AOV: $XX | Avg Frequency: X.X orders/year
├── Retention Rate: XX%
├── Top Categories: Category A (XX%), Category B (XX%)
├── Channel Mix: Web XX%, App XX%, Marketplace XX%
├── Promotion Sensitivity: Low / Medium / High
├── Preferred Engagement: Email / SMS / Push / Social
├── Lifecycle Stage: [Stage]
├── Value Tier: [Tier]
└── Key Behavioral Tags: [Tag1], [Tag2], [Tag3]
Step 6 — Segment Strategy Mapping
Assign tailored strategies per segment:
| Segment |
Strategic Objective |
Key Tactics |
KPI Target |
| Champions |
Maximize value, advocacy |
Exclusive access, referral program, VIP perks |
Increase AOV 10%, referral rate 15% |
| Loyal Customers |
Deepen relationship |
Cross-sell, loyalty tier upgrade, early access |
Cross-sell rate 20%, retention 90%+ |
| Potential Loyalists |
Accelerate 2nd/3rd purchase |
Welcome series, incentivized reorder, bundle offers |
2nd purchase rate 40%+ within 60 days |
| Recent Customers |
Convert to repeat |
Post-purchase nurture, review request, subscription offer |
30-day repeat rate 25%+ |
| Need Attention |
Re-engage before churn |
Win-back email, special offer, survey |
Reactivation rate 15%+ |
| At Risk |
Prevent high-value loss |
Personal outreach, exclusive discount, feedback request |
Save rate 20%+ |
| Hibernating |
Selective reactivation |
Low-cost reactivation (email only), suppress from paid |
Reactivation rate 5%+; suppress if no response |
| Lost |
Suppress or sunset |
Remove from active lists; reduce acquisition cost |
List hygiene, deliverability improvement |
Step 7 — Segment Sizing & Opportunity Analysis
Quantify the business opportunity per segment:
Revenue Uplift Potential = Segment Size × (Target Metric - Current Metric) × AOV
Example:
Potential Loyalists: 5,000 customers
Current 2nd purchase rate: 25%
Target 2nd purchase rate: 40%
AOV: $45
Uplift = 5,000 × (0.40 - 0.25) × $45 = $33,750 potential revenue
Rank segments by uplift potential to prioritize investment.
Output Specification
- Segment Summary Table: All segments with size, revenue share, key metrics, and lifecycle stage
- Segment Profiles: Detailed profile cards for each segment (per Step 5 format)
- Strategy Matrix: Per-segment objectives, tactics, channels, and KPI targets
- Value Distribution Chart: Description of Pareto curve showing customer value concentration
- Opportunity Sizing: Revenue uplift potential per segment, ranked by priority
- Implementation Roadmap: Phased plan for activating segments across marketing channels
- Migration Tracking: Recommended quarterly segment migration analysis framework
Examples
Input: "Build customer segments for our DTC supplements brand. 45,000 customers, 18 months of transaction data, 3 product categories (vitamins, protein, wellness). We have email engagement data."
Output: 8 named segments with full profiles. Champions (4% of base, 28% of revenue) are subscription-heavy, multi-category buyers. Potential Loyalists (18% of base) represent $180K uplift opportunity if 2nd purchase rate increases from 22% to 38%. At Risk segment (6% of base) identified as previously high-value subscription cancellers. Strategy matrix with email sequences, loyalty tier design, and paid media suppression rules.
Input: "Segment our grocery e-commerce customers for a new loyalty program design. 200K customers, want to understand who should be in each loyalty tier."
Output: Four-tier loyalty structure mapped to value tiers with qualifying thresholds. Platinum (top 3%, $2,000+ annual spend) gets free delivery + exclusive products. Gold (next 12%, $800+ annual spend) gets accelerated points. Silver earns standard rewards. Behavioral overlay identifies "deal hunters" within each tier for differentiated offer strategies.
Guidelines
- Use at least 12 months of data to account for seasonal purchase patterns in CPG
- Adjust RFM thresholds to the specific business — a monthly consumable has different frequency benchmarks than a durable good
- Segments must be actionable: if you can't target them in a marketing channel, they're analytical curiosities, not segments
- Aim for 6–10 segments; fewer than 5 lacks granularity, more than 12 is operationally unmanageable
- Always include segment size and revenue share — strategy without sizing is incomplete
- For subscription businesses, factor subscription status as a primary behavioral dimension
- Recommend suppression strategies for unresponsive segments to improve overall marketing efficiency
- Update segments quarterly to capture lifecycle migration and seasonal shifts
Validation Checklist
1---2name: customer-segmentation-builder3description: >4 Builds actionable customer segments for CPG and retail e-commerce using RFM analysis,5 behavioral clustering, lifecycle staging, and value-based tiering. Use when a user needs6 to segment their customer base for targeted marketing, personalization, or strategic planning.7 Triggers on requests for customer segmentation, audience building, cohort analysis, customer8 profiling, or segment-specific marketing strategies.910metadata:11 display_name: "Customer Segmentation Builder"12 short_description: "Build customer segments using RFM and behavior data"13 default_prompt: "Optimize my customer segmentation builder and suggest the best next steps"14 version: "1.0.1"15 tags:16 - cpg-retail17 icon_path: "assets/icon.png"18---1920# Customer Segmentation Builder2122## Overview2324This skill constructs multi-dimensional customer segments by combining transactional data (RFM), behavioral signals, lifecycle stage, and demographic attributes. It produces named, sized, and actionable segments with tailored marketing strategies, channel preferences, and expected value metrics for CPG and retail e-commerce contexts.2526## When to Use2728- Building or refreshing a customer segmentation model29- Identifying high-value customer cohorts for targeted campaigns30- Developing personalized marketing strategies per segment31- Analyzing customer base composition and health32- Informing product development, assortment planning, or pricing with segment insights33- Creating audience lists for paid media, email, and loyalty programs3435## Required Inputs3637| Input | Required | Description |38|---|---|---|39| Transaction Data | Yes | Customer-level purchase history: order date, order value, items, frequency |40| Customer Count | Yes | Total number of unique customers in the dataset |41| Time Period | Yes | Data range for analysis (minimum 12 months recommended) |42| Product Categories | Recommended | Category/subcategory taxonomy for purchase behavior analysis |43| Channel Data | Recommended | Acquisition source, purchase channel (web, app, marketplace, store) |44| Demographic Data | No | Age, gender, location, household composition |45| Engagement Data | No | Email opens/clicks, site visits, app sessions, loyalty status |46| Business Objectives | No | Specific goals (e.g., grow retention, reduce churn, increase AOV) |4748## Methodology4950### Step 1 — RFM Analysis Foundation5152Calculate RFM scores for every customer:5354**Recency (R)**: Days since last purchase55```56R Score 5: Purchased within 0–30 days57R Score 4: Purchased within 31–60 days58R Score 3: Purchased within 61–120 days59R Score 2: Purchased within 121–240 days60R Score 1: Purchased 241+ days ago61```6263**Frequency (F)**: Total number of orders in the analysis period64```65F Score 5: Top 20% by order count66F Score 4: 60th–80th percentile67F Score 3: 40th–60th percentile68F Score 2: 20th–40th percentile69F Score 1: Bottom 20%70```7172**Monetary (M)**: Total revenue from the customer73```74M Score 5: Top 20% by total spend75M Score 4: 60th–80th percentile76M Score 3: 40th–60th percentile77M Score 2: 20th–40th percentile78M Score 1: Bottom 20%79```8081Composite RFM Score = concatenation of R, F, M (e.g., "555" = best customers).8283### Step 2 — Lifecycle Stage Assignment8485Map RFM scores to lifecycle stages:8687| Lifecycle Stage | RFM Pattern | Description |88|---|---|---|89| **Champions** | R:5, F:4–5, M:4–5 | Best customers; buy often, spend high, recent |90| **Loyal Customers** | R:3–4, F:4–5, M:3–5 | Consistent buyers with high frequency |91| **Potential Loyalists** | R:4–5, F:2–3, M:2–3 | Recent buyers with growth potential |92| **Recent Customers** | R:5, F:1, M:1–2 | New first-time buyers |93| **Promising** | R:3–4, F:1–2, M:1–2 | Bought recently, low frequency — need nurturing |94| **Need Attention** | R:2–3, F:3–4, M:3–4 | Previously loyal, showing decline signals |95| **About to Sleep** | R:2, F:1–3, M:1–3 | Below average recency, at risk |96| **At Risk** | R:1–2, F:4–5, M:4–5 | Were high-value buyers, haven't returned |97| **Hibernating** | R:1, F:1–2, M:1–2 | Low across all dimensions, long inactive |98| **Lost** | R:1, F:1, M:1 | No activity for extended period |99100### Step 3 — Behavioral Enrichment101102Layer behavioral attributes onto lifecycle segments:103104**Purchase Behavior Patterns**:105- **Category Loyalists**: >70% of purchases in one category106- **Cross-Category Shoppers**: Purchases across 3+ categories107- **Promotion-Sensitive**: >50% of orders include a discount code108- **Full-Price Buyers**: <20% of orders include a discount109- **Bulk Buyers**: AOV >2× average110- **Subscribe & Save**: Active subscription orders111112**Channel Behavior**:113- **Digital-First**: >80% of purchases via web/app114- **Omnichannel**: Active across digital + physical (if applicable)115- **Marketplace-Dependent**: Primarily Amazon/Walmart.com purchasers116- **Social Commerce**: Purchases originating from social platforms117118**Engagement Behavior**:119- **Email Engaged**: Opens >30%, clicks >5% of emails120- **App Active**: >4 app sessions/month121- **Loyalty Member**: Enrolled in loyalty/rewards program122- **Review Contributor**: Has left 1+ product reviews123124### Step 4 — Value-Based Tiering125126Apply value tiers using the Pareto principle:127128| Tier | Definition | Typical % of Customers | Typical % of Revenue |129|---|---|---|---|130| **Platinum** | Top 5% by LTV | 5% | 25%–35% |131| **Gold** | 6th–20th percentile | 15% | 25%–30% |132| **Silver** | 21st–50th percentile | 30% | 20%–25% |133| **Bronze** | Bottom 50% | 50% | 10%–20% |134135Calculate per-tier metrics:136- Average LTV, AOV, purchase frequency, and retention rate137- Contribution margin (revenue minus acquisition and servicing costs)138- Growth trajectory (tier migration rate quarter-over-quarter)139140### Step 5 — Segment Profile Construction141142For each segment, build a comprehensive profile:143144```145Segment: [Name]146├── Size: X,XXX customers (XX% of base)147├── Revenue Share: XX% of total revenue148├── Avg LTV: $XXX | Avg AOV: $XX | Avg Frequency: X.X orders/year149├── Retention Rate: XX%150├── Top Categories: Category A (XX%), Category B (XX%)151├── Channel Mix: Web XX%, App XX%, Marketplace XX%152├── Promotion Sensitivity: Low / Medium / High153├── Preferred Engagement: Email / SMS / Push / Social154├── Lifecycle Stage: [Stage]155├── Value Tier: [Tier]156└── Key Behavioral Tags: [Tag1], [Tag2], [Tag3]157```158159### Step 6 — Segment Strategy Mapping160161Assign tailored strategies per segment:162163| Segment | Strategic Objective | Key Tactics | KPI Target |164|---|---|---|---|165| Champions | Maximize value, advocacy | Exclusive access, referral program, VIP perks | Increase AOV 10%, referral rate 15% |166| Loyal Customers | Deepen relationship | Cross-sell, loyalty tier upgrade, early access | Cross-sell rate 20%, retention 90%+ |167| Potential Loyalists | Accelerate 2nd/3rd purchase | Welcome series, incentivized reorder, bundle offers | 2nd purchase rate 40%+ within 60 days |168| Recent Customers | Convert to repeat | Post-purchase nurture, review request, subscription offer | 30-day repeat rate 25%+ |169| Need Attention | Re-engage before churn | Win-back email, special offer, survey | Reactivation rate 15%+ |170| At Risk | Prevent high-value loss | Personal outreach, exclusive discount, feedback request | Save rate 20%+ |171| Hibernating | Selective reactivation | Low-cost reactivation (email only), suppress from paid | Reactivation rate 5%+; suppress if no response |172| Lost | Suppress or sunset | Remove from active lists; reduce acquisition cost | List hygiene, deliverability improvement |173174### Step 7 — Segment Sizing & Opportunity Analysis175176Quantify the business opportunity per segment:177178```179Revenue Uplift Potential = Segment Size × (Target Metric - Current Metric) × AOV180181Example:182 Potential Loyalists: 5,000 customers183 Current 2nd purchase rate: 25%184 Target 2nd purchase rate: 40%185 AOV: $45186 Uplift = 5,000 × (0.40 - 0.25) × $45 = $33,750 potential revenue187```188189Rank segments by uplift potential to prioritize investment.190191## Output Specification1921931. **Segment Summary Table**: All segments with size, revenue share, key metrics, and lifecycle stage1942. **Segment Profiles**: Detailed profile cards for each segment (per Step 5 format)1953. **Strategy Matrix**: Per-segment objectives, tactics, channels, and KPI targets1964. **Value Distribution Chart**: Description of Pareto curve showing customer value concentration1975. **Opportunity Sizing**: Revenue uplift potential per segment, ranked by priority1986. **Implementation Roadmap**: Phased plan for activating segments across marketing channels1997. **Migration Tracking**: Recommended quarterly segment migration analysis framework200201## Examples202203**Input**: "Build customer segments for our DTC supplements brand. 45,000 customers, 18 months of transaction data, 3 product categories (vitamins, protein, wellness). We have email engagement data."204205**Output**: 8 named segments with full profiles. Champions (4% of base, 28% of revenue) are subscription-heavy, multi-category buyers. Potential Loyalists (18% of base) represent $180K uplift opportunity if 2nd purchase rate increases from 22% to 38%. At Risk segment (6% of base) identified as previously high-value subscription cancellers. Strategy matrix with email sequences, loyalty tier design, and paid media suppression rules.206207**Input**: "Segment our grocery e-commerce customers for a new loyalty program design. 200K customers, want to understand who should be in each loyalty tier."208209**Output**: Four-tier loyalty structure mapped to value tiers with qualifying thresholds. Platinum (top 3%, $2,000+ annual spend) gets free delivery + exclusive products. Gold (next 12%, $800+ annual spend) gets accelerated points. Silver earns standard rewards. Behavioral overlay identifies "deal hunters" within each tier for differentiated offer strategies.210211## Guidelines212213- Use at least 12 months of data to account for seasonal purchase patterns in CPG214- Adjust RFM thresholds to the specific business — a monthly consumable has different frequency benchmarks than a durable good215- Segments must be actionable: if you can't target them in a marketing channel, they're analytical curiosities, not segments216- Aim for 6–10 segments; fewer than 5 lacks granularity, more than 12 is operationally unmanageable217- Always include segment size and revenue share — strategy without sizing is incomplete218- For subscription businesses, factor subscription status as a primary behavioral dimension219- Recommend suppression strategies for unresponsive segments to improve overall marketing efficiency220- Update segments quarterly to capture lifecycle migration and seasonal shifts221222## Validation Checklist223224- [ ] RFM scores are calculated with business-appropriate thresholds225- [ ] Every customer is assigned to exactly one primary segment226- [ ] Segment sizes sum to 100% of the customer base227- [ ] Revenue shares are calculated and sum to 100%228- [ ] Each segment has a distinct strategic objective and tactic set229- [ ] Opportunity sizing is quantified with clear assumptions230- [ ] High-value at-risk segments are identified and prioritized231- [ ] Segments are platform-activatable (exportable to ESP, ad platforms, CRM)232- [ ] Migration tracking framework is defined for ongoing monitoring