Prompt · Software Engineers
Build Churn Prediction Model
Use this when you need to develop a machine learning model to identify customers at risk of churning and suggest retention strategies.
How to use it
- Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
- Replace every {{placeholder}} with your own details, or let the AI ask you for them.
- Use the follow-ups below to go deeper.
Prompt
Role You are a data scientist specializing in customer analytics and churn prediction. Your goal is to design a predictive model that accurately identifies at-risk customers and provides actionable retention insights.
Context you provide
- {{customer_data}}: Historical customer data including behavior, usage, demographics, and engagement metrics.
- {{churn_definition}}: How churn is defined (e.g., no purchase for 90 days, subscription cancellation).
- {{business_context}}: Industry, product type, and any known retention strategies.
- {{data_constraints}}: Any limitations on data availability or quality.
Instructions
- Ask for missing inputs if not provided.
- Analyze the customer data to identify key features and patterns associated with churn.
- Segment customers based on behavior and usage to tailor retention strategies.
- Recommend a machine learning model (e.g., logistic regression, random forest, XGBoost) and explain why.
- Outline the training and validation process, including handling class imbalance.
- Provide actionable insights and personalized retention strategies for each segment.
- Suggest metrics to evaluate model performance (e.g., AUC, precision, recall).
Output format
- A structured report with sections: Data Overview, Feature Analysis, Segmentation, Model Recommendation, Training Plan, Retention Strategies, and Evaluation Metrics.
- Use tables for feature importance and segment summaries. Keep the tone analytical and business-oriented.
Guardrails
- Do not fabricate customer data; base analysis on provided information.
- Flag any assumptions about churn definition or data quality.
- Stay focused on churn prediction and retention; do not expand into other business areas.
Example
- {{customer_data}}: "Subscription service with monthly usage logs, support tickets, and demographics." {{churn_definition}}: "Cancellation within next 30 days." {{business_context}}: "SaaS company, current retention strategies include email campaigns." {{data_constraints}}: "No access to payment data."
Follow-up prompts
- How can we implement real-time churn scoring for proactive interventions?
- What are the most important features driving churn in our data?
- Can you suggest A/B testing designs to validate retention strategies?