P
📊Analyse de donnéesAdvancedAll AIs

Customer segmentation by clustering

Segment a customer base into homogeneous groups via RFM and K-means with personalized marketing strategies per segment.

Paste in your AI

Adapt this prompt

Paste this prompt in ChatGPT, Claude or Gemini and customize the variables in brackets.

I want to segment my [CUSTOMER_COUNT] customers so I can tailor my marketing. For each customer I have [AVAILABLE_VARIABLES], such as purchase history, purchase frequency, spend, product categories, time as a customer and support interactions.

My aim is [SEGMENTATION_GOAL] (for example, personalize messages, identify customers likely to leave or prioritize sales outreach).

  1. Run an RFM analysis. Score recency, frequency and monetary value from 1 to 5 each.
  2. Apply k-means clustering. Use the elbow method and silhouette scores to choose the number of clusters.
  3. Describe each segment's size and distinguishing characteristics.
  4. Give each segment a name that describes it, such as "Champions", "At risk" or "Dormant".
  5. Recommend a marketing strategy for each segment.
  6. Estimate customer lifetime value (CLV) for each segment.
  7. Define KPIs to track how well each strategy works.

Provide the full Python code using pandas, scikit-learn and matplotlib.

Personalize this prompt with Léa · AI assistant

Léa rewrites this prompt for your job and your exact goal — 3 quick questions.

Why this prompt works

This prompt is powerful because it combines the classic RFM approach with algorithmic clustering and goes all the way to concrete strategic implications. The request for complete code makes it immediately executable.

Use Cases

E-commerce segmentationEmail campaign targetingB2B sales force prioritization

Expected Output

RFM analysis, named and described K-means segments, marketing strategies per segment, complete Python code.

Improve this prompt

Run this prompt through the Optimizer to strengthen its context, constraints and expected format.

Improve this prompt with the Optimizer

Comments

Be the first to comment on this prompt.

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Go further

Similar Prompts

📊Analyse de donnéesIntermediateClaude

Claude Prompt to Analyze Market Trends

Market trend analysis is a strategic exercise that requires cross-referencing economic, behavioral, and sectoral data to identify weak signals and underlying movements. Claude excels at this task thanks to its ability to synthesize large amounts of information, structure multi-dimensional analyses, and formulate well-argued hypotheses. Whether you are an entrepreneur seeking to validate an opportunity, an analyst mapping an industry, or a marketer preparing a launch, Claude saves hours of research by producing structured, nuanced, and actionable analyses. By providing precise context about your target market, objectives, and constraints, you get a panoramic view of the dynamics at play: technological developments, regulatory changes, shifts in consumer behavior, and competitive repositioning. AI does not replace field monitoring, but it significantly accelerates the exploration and structuring phase of information, allowing you to focus your human expertise on strategic interpretation and decision-making.

1523
📊Analyse de donnéesIntermediateChatGPT

ChatGPT Prompt for Data Analysis

Data analysis has become an indispensable strategic lever for businesses and professionals. Yet extracting relevant insights from raw datasets remains a technical challenge that typically requires skills in statistics, programming, or specialized tools like advanced Excel, Python, or R. ChatGPT radically transforms this approach by allowing anyone to analyze complex data through natural language instructions. Whether you're working on sales data, survey results, marketing metrics, or financial indicators, a well-structured prompt enables you to obtain statistical analyses, correlations, trends, and actionable recommendations in seconds. The key lies in how you formulate your request: a precise prompt that defines the context, the type of analysis desired, and the expected output format will yield significantly more usable results than a vague query. In this guide, you'll find optimized prompts to get the most out of ChatGPT for your data analyses, regardless of your expertise level.

1754

Write an ML system design

Design production ML systems

519

Design a feature store

Build a feature store

497