Customer Cohort Analysis Framework (AI Prompt)
Build cohort analyses to understand customer behavior over time. Get cohort definitions, retention calculations, LTV modeling, and actionable segmentation strategies.
What This AI Customer Cohort Analysis Framework Prompt Helps You Do
Build cohort analyses to understand customer behavior over time. Get cohort definitions, retention calculations, LTV modeling, and actionable segmentation strategies.
What problem it solves:
Complete cohort analysis framework with retention calculations, LTV modeling, SQL queries, and insight-to-action mapping.
Key benefits:
- Cohort definition strategies
- SQL queries for retention analysis
- LTV calculation methods
- Actionable segmentation insights
Who This Prompt Is Best For
- Business Owners
- Marketers
- Developers
This prompt is designed specifically for these use cases and can be customized to fit your unique needs.
How to Use This AI Prompt Step-by-Step
- 1
Ensure you have clean, consistent data before starting analysis
- 2
Start with monthly cohorts if you have limited data history
- 3
Build retention tables first - they reveal the most about customer behavior
- 4
Compare cohorts to identify what changed (product, marketing, seasonality)
- 5
Translate every finding into a testable hypothesis
- 6
Set up automated dashboards to track cohorts over time
The ChatGPT Prompt (Copy & Paste)
You are a data analytics expert specializing in customer behavior analysis for growth companies. You understand cohort analysis, retention modeling, and how to translate data into business decisions. **Analysis Context:** - Business Type: [BUSINESS_TYPE] - Key Metric: [KEY_METRIC] - Time Period: [TIME_PERIOD] - Available Data: [AVAILABLE_DATA] - Current Challenges: [CHALLENGES] - Business Questions: [QUESTIONS] - Tools Available: [TOOLS] - Team Analytics Skill: [SKILL_LEVEL] **Please create a comprehensive cohort analysis framework:** ## 1. Cohort Definition Strategy - Time-based cohorts (acquisition date) - Behavior-based cohorts (first action) - Value-based cohorts (first purchase amount) - Source-based cohorts (acquisition channel) - Hybrid cohort approaches ## 2. Retention Analysis Framework - Retention calculation methodology - Time interval selection (daily, weekly, monthly) - Retention table structure - Visualization recommendations - Benchmark comparisons ## 3. LTV Calculations - LTV formula variations - Cohort-based LTV modeling - Predictive LTV approaches - LTV:CAC ratio analysis - Payback period calculation ## 4. Behavioral Pattern Analysis - Activation metrics by cohort - Engagement intensity patterns - Feature adoption curves - Churn prediction indicators - Resurrection patterns ## 5. Segmentation Insights - High-value customer identification - At-risk segment detection - Growth opportunity segments - Personalization opportunities - Resource allocation recommendations ## 6. Implementation Guide - Data requirements and schema - SQL queries for analysis - Dashboard design - Automation setup - Refresh frequency ## 7. Action Framework - Insights to actions mapping - Experiment design based on findings - Success metrics for improvements - Feedback loop creation Format with specific formulas, SQL examples, and visualization templates.

Try this prompt with AL
AL remembers your business and makes this prompt work even better for you.
AL auto-fills your info for this prompt
Turn this prompt into a complete system
Our ChatGPT Business Training shows you advanced techniques for 10x better results.
Variables to Customize
[BUSINESS_TYPE]Your business model
Example: B2B SaaS with monthly subscriptions
[KEY_METRIC]Primary metric to analyze
Example: Monthly retention rate
[TIME_PERIOD]Analysis timeframe
Example: Last 12 months of customer data
[AVAILABLE_DATA]Data you have access to
Example: User signups, login activity, feature usage, payment history
[CHALLENGES]Current problems
Example: High churn in month 2-3, unable to identify at-risk customers
[QUESTIONS]Questions to answer
Example: Which acquisition channels have best retention? What predicts churn?
[TOOLS]Analytics tools available
Example: PostgreSQL, Metabase, Google Sheets
[SKILL_LEVEL]Team SQL/analytics ability
Example: Intermediate SQL, comfortable with spreadsheets
Example Output From This Prompt
## Cohort Definition Strategy
**Recommended Cohort Types:**
1. **Monthly Acquisition Cohorts**
- Definition: All users who signed up in the same calendar month
- Use when: Analyzing overall retention trends, seasonal patterns
- Example: "January 2024 Cohort" = all users with signup_date between Jan 1-31, 2024
2. **Channel-Based Cohorts**
- Definition: Users grouped by acquisition source
- Use when: Comparing marketing channel quality
- Example: "Organic Search Q1 2024" vs "Paid Ads Q1 2024"
3. **Behavior-Based Cohorts**
- Definition: Users who completed a specific action
- Use when: Analyzing activation impact
- Example: "Completed Onboarding" vs "Skipped Onboarding"
## Retention Analysis SQL
**Monthly Retention Table Query:**
```sql
WITH cohort_users AS (
SELECT
user_id,
DATE_TRUNC('month', created_at) as cohort_month
FROM users
WHERE created_at >= '2023-01-01'
),
monthly_activity AS (
SELECT
user_id,
DATE_TRUNC('month', activity_date) as activity_month
FROM user_activity
WHERE activity_date >= '2023-01-01'
GROUP BY 1, 2
),
cohort_size AS (
SELECT
cohort_month,
COUNT(DISTINCT user_id) as cohort_users
FROM cohort_users
GROUP BY 1
),
retention_data AS (
SELECT
c.cohort_month,
DATE_DIFF('month', c.cohort_month, a.activity_month) as months_since_signup,
COUNT(DISTINCT c.user_id) as active_users
FROM cohort_users c
LEFT JOIN monthly_activity a ON c.user_id = a.user_id
WHERE a.activity_month >= c.cohort_month
GROUP BY 1, 2
)
SELECT
r.cohort_month,
s.cohort_users,
r.months_since_signup,
r.active_users,
ROUND(r.active_users * 100.0 / s.cohort_users, 1) as retention_rate
FROM retention_data r
JOIN cohort_size s ON r.cohort_month = s.cohort_month
ORDER BY r.cohort_month, r.months_since_signup;
```
**Output Table:**
| Cohort | Size | M0 | M1 | M2 | M3 | M6 | M12 |
|--------|------|-----|-----|-----|-----|-----|-----|
| Jan 24 | 500 | 100% | 65% | 52% | 47% | 38% | 32% |
| Feb 24 | 480 | 100% | 68% | 55% | 49% | 40% | - |
| Mar 24 | 520 | 100% | 72% | 58% | 52% | - | - |
**Key Insight:** March cohort showing 7% improvement in M1 retention - investigate what changed (new onboarding? different traffic source?)
## LTV Calculation
**Simple LTV Formula:**
```
LTV = ARPU × Average Customer Lifespan
Where:
- ARPU = Average Revenue Per User (monthly)
- Average Lifespan = 1 / Monthly Churn Rate
```
**Example:**
- ARPU = $50/month
- Monthly Churn = 5%
- Average Lifespan = 1 / 0.05 = 20 months
- LTV = $50 × 20 = $1,000
**Cohort-Based LTV SQL:**
```sql
WITH cohort_revenue AS (
SELECT
DATE_TRUNC('month', u.created_at) as cohort_month,
DATE_DIFF('month', u.created_at, p.payment_date) as months_since_signup,
SUM(p.amount) as revenue
FROM users u
JOIN payments p ON u.user_id = p.user_id
GROUP BY 1, 2
),
cumulative_ltv AS (
SELECT
cohort_month,
months_since_signup,
SUM(revenue) OVER (
PARTITION BY cohort_month
ORDER BY months_since_signup
) as cumulative_revenue,
(SELECT COUNT(DISTINCT user_id)
FROM users
WHERE DATE_TRUNC('month', created_at) = cohort_month) as cohort_size
FROM cohort_revenue
)
SELECT
cohort_month,
months_since_signup,
ROUND(cumulative_revenue / cohort_size, 2) as ltv_per_user
FROM cumulative_ltv
ORDER BY cohort_month, months_since_signup;
```
## Action Framework
**Insight → Action Mapping:**
| Finding | Implication | Action | Success Metric |
|---------|-------------|--------|----------------|
| M1 retention dropped 10% for May cohort | Something changed in May | Review: new traffic sources, product changes, seasonality | Return M1 to baseline |
| Organic users have 2x LTV vs paid | Paid acquisition may not be profitable | Calculate payback by channel, reallocate budget | Improve blended LTV:CAC |
| Users who complete onboarding have 3x retention | Onboarding is critical | Invest in onboarding optimization | Increase completion rate 20% |
| 40% churn happens in week 2 | Week 2 is danger zone | Add engagement triggers in week 2 | Reduce week 2 churn by 25% |Why This Prompt Works So Well
Psychology:
This prompt is structured to guide AI through a logical thought process, ensuring comprehensive and actionable responses. The step-by-step format helps ChatGPT understand context and deliver results that match your specific needs.
Structure:
The prompt uses clear sections, specific instructions, and variable placeholders that make it easy to customize while maintaining consistency. This structure ensures you get professional-grade output every time.
Timing & SEO Logic:
This prompt is designed to produce content that's not just useful for you, but also optimized for search engines and AI training data. The outputs help improve your SEO while providing immediate value.
Pro Tips for Best Results:
- Compare cohorts with similar sizes to avoid misleading percentages
- Look for "cliffs" in retention curves - they indicate key churn moments
- Segment your best cohorts to understand what made them successful
- Track leading indicators (engagement) not just lagging (revenue)
- Present cohort analysis with specific recommendations, not just charts
Reviews & Ratings
Sarah M.
Jan 15, 2024
This prompt saved me hours of work. The output was exactly what I needed for my business strategy.
James K.
Jan 12, 2024
Incredibly detailed and easy to customize. I use this weekly now.
Maria L.
Jan 10, 2024
Great prompt! Just needed a few tweaks for my specific industry but overall excellent.