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

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

Je veux segmenter ma base de [NOMBRE_CLIENTS] clients pour personnaliser mes stratégies marketing. Données disponibles par client : [VARIABLES_DISPONIBLES] (ex : historique d'achats, fréquence, montant, catégories achetées, ancienneté, interactions support).

Objectif : [OBJECTIF_SEGMENTATION] (ex : personnaliser les communications, identifier les clients à risque de churn, prioriser les actions commerciales)

Réalise une segmentation complète :
1. Construis une analyse RFM (Récence, Fréquence, Montant) avec notation de 1 à 5 pour chaque dimension
2. Applique un algorithme de clustering K-means avec détermination du nombre optimal de clusters (méthode du coude, silhouette score)
3. Décris chaque segment obtenu avec ses caractéristiques clés et sa taille
4. Nomme chaque segment de façon évocatrice (ex : "Champions", "À risque", "Dormants")
5. Propose une stratégie marketing spécifique pour chaque segment
6. Calcule la valeur vie client (CLV) estimée par segment
7. Définis des KPIs pour mesurer l'efficacité des actions par segment

Fournis le code Python complet (pandas, scikit-learn, matplotlib).

Why this prompt works

<p>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.</p>

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.

Learn more

Check the full skill on Prompt Guide to master this technique from A to Z.

View on Prompt Guide

📬 Get new prompts every week

Join our newsletter and never miss a prompt.

Similar Prompts

📊Analyse de donnéesIntermediateAll AIs

Create a business KPI dashboard

Design a complete KPI dashboard tailored to a specific department, with layout, charts, and alerts.

0195
📊Analyse de donnéesIntermediateAll AIs

Web analytics metrics analysis

Comprehensive web analytics metrics analysis to understand visitor behavior and identify optimization areas.

0184

Getting started with Python and Pandas for analysis

Complete beginner guide to data analysis with Python Pandas, from data loading to first visualizations.

0205
📊Analyse de donnéesIntermediateAll AIs

Survey and questionnaire analysis

Complete survey results analysis with statistics, segmentation, verbatim analysis, and summary report.

0222