Use it when you want to begin customer analytics work without writing the first draft from scratch.
Customer Lifetime Value Analysis AI Prompt
Calculate and segment Customer Lifetime Value (LTV) for this e-commerce business. Order data: {{order_data}} (customer_id, order_date, order_value, product_category) Time period... Copy this prompt template, run it in your AI tool, and use related prompts to continue the workflow.
Calculate and segment Customer Lifetime Value (LTV) for this e-commerce business.
Order data: {{order_data}} (customer_id, order_date, order_value, product_category)
Time period: {{period}}
Business model: {{business_model}} (single purchase, subscription, repeat purchase)
1. Basic LTV metrics:
- Average Order Value (AOV): total revenue / total orders
- Purchase frequency: orders per customer per year
- Customer lifespan: average months from first to last purchase (or 1 / annual churn rate)
- Simple LTV = AOV x Purchase Frequency x Customer Lifespan
- Gross profit LTV: multiply by gross margin %
2. Cohort-based LTV:
- Group customers by acquisition month
- For each cohort: cumulative revenue per customer through months 1, 3, 6, 12, 24
- LTV curve: how does cumulative revenue grow over time?
- At what month does the cohort LTV begin to plateau?
3. LTV by acquisition channel:
- Which channel brings customers with the highest 12-month LTV?
- Which brings the most orders per customer? Which brings the highest AOV?
- Compare to CAC by channel: LTV/CAC ratio per channel
4. LTV by first product category:
- Do customers who first purchase from category A have higher LTV than category B?
- Category with highest LTV first purchase: prioritize in acquisition marketing
5. LTV by customer segment:
- One-time buyers (only 1 order): how many and what % of customers? What is their share of revenue?
- Repeat buyers (2-4 orders): their LTV vs one-time buyers
- Loyal customers (5+ orders): their LTV, AOV, and frequency vs average
6. Second purchase conversion:
- What % of first-time buyers make a second purchase within 90 days?
- Time to second purchase distribution
- The second purchase is the most predictive event for long-term retention
- What drives second purchase? (Category, time since first, email trigger)
Return: LTV metrics table, cohort curves, channel LTV comparison, category LTV analysis, segment breakdown, and second-purchase insights.When to use this prompt
Use it when you want a more consistent structure for AI output across projects or datasets.
Use it when you want prompt-driven work to turn into a reusable notebook or repeatable workflow later.
Use it when you want a clear next step into adjacent prompts in Customer Analytics or the wider Ecommerce Analyst library.
What the AI should return
The AI should return a structured result that covers the main requested outputs, such as Basic LTV metrics:, Average Order Value (AOV): total revenue / total orders, Purchase frequency: orders per customer per year. The final answer should stay clear, actionable, and easy to review inside a customer analytics workflow for ecommerce analyst work.
How to use this prompt
Open your data context
Load your dataset, notebook, or working environment so the AI can operate on the actual project context.
Copy the prompt text
Use the copy button above and paste the prompt into the AI assistant or prompt input area.
Review the output critically
Check whether the result matches your data, assumptions, and desired format before moving on.
Chain into the next prompt
Once you have the first result, continue deeper with related prompts in Customer Analytics.
Frequently asked questions
What does the Customer Lifetime Value Analysis prompt do?+
It gives you a structured customer analytics starting point for ecommerce analyst work and helps you move faster without starting from a blank page.
Who is this prompt for?+
It is designed for ecommerce analyst workflows and marked as beginner, so it works well as a guided starting point for that level of experience.
What type of prompt is this?+
Customer Lifetime Value Analysis is a single prompt. You can copy it as-is, adapt it, or use it as one step inside a larger workflow.
Can I use this outside MLJAR Studio?+
Yes. The prompt text works in other AI tools too, but MLJAR Studio is the best fit when you want local execution, visible Python code, and reusable notebooks.
What should I open next?+
Natural next steps from here are Customer Acquisition Cost Analysis, Repeat Purchase and Retention Analysis, Returns and Refunds Analysis.