- Home
- Skills
- E-commerce
- Find Churning Customers & VIP Buyers from Raw Order CSVs
Works with the AI Agents you already use
Find Churning Customers & VIP Buyers from Raw Order CSVs
Local RFM segmentation and churn risk analysis for e-commerce CSV exports with HTML retention email generation.
$10
Find Churning Customers & VIP Buyers from Raw Order CSVs
Example session with this skill installed
Analyze the customers in data/orders_q3.csv and give me a retention plan for high-value customers at risk of churning.
- Read your context and instructions
- Compiled the find churning customers
- Generated the UI component
I have analyzed orders_q3.csv using the RFM engine. The analysis processed 1,420 unique customers and identified a significant segment of high-value buyers who have not purchased in over 60 days.
RFM Segmentation Summary
| Segment | Customer Count | Avg. Monetary Value | Churn Risk |
|---|---|---|---|
| Champions | 142 | $840.50 | Low |
| Loyal Customers | 310 | $420.25 | Low |
| At Risk (High Value) | 85 | $615.00 | High |
| About to Sleep | 240 | $150.75 | Moderate |
| Hibernating | 643 | $45.20 | Very High |
High-Value At-Risk Customers
These customers have high frequency and monetary scores but haven't placed an order recently:
user_9921: Total Spend $1,240 | Last Order: 72 days agouser_4430: Total Spend $980 | Last Order: 68 days agouser_1102: Total Spend $855 | Last Order: 90 days ago
Retention Campaign Template
<div style="font-family: sans-serif; padding: 20px; border: 1px solid #eee;">
<h2>We've Missed You!</h2>
<p>As one of our valued customers, we noticed it has been a while since your last visit.</p>
<p>Use code <strong>RECLAIM20</strong> for 20% off your next order.</p>
<a href="https://store.com/shop" style="background: #000; color: #fff; padding: 10px 20px; text-decoration: none;">Shop Now</a>
</div>
Next steps
- Export the list of 85 "At Risk" IDs to a CSV for your email service provider.
- Update the HTML template with your specific store URL and branding.
- Schedule a follow-up analysis in 30 days to track segment movement.
orders_q3.csv
TSX · React component
Example file from a real run - the skill writes it into your workspace.
Connects securely to your tools. The creator never sees your data.
About this skill
Manual customer analysis takes hours and sensitive data often ends up in third-party clouds. This skill performs local RFM segmentation and churn prediction directly on your CSV exports without sending PII to external APIs.
What it does
- RFM segmentation Categorizes customers into groups like Champions, Loyal, and Hibernating based on purchase behavior.
- Churn prediction Identifies high-value buyers at risk of leaving based on recency and frequency decay.
- Local processing Runs analytics 100% locally to keep revenue and customer data on your machine.
- Campaign generation Produces ready-to-use HTML retention email templates for specific segments.
- Format detection Handles raw transaction logs or pre-aggregated customer tables automatically.
How it works
- Identify source Point the agent to your customer or transaction CSV file.
- Execute engine The agent runs the zero-dependency Python analyzer script on your local file.
- Analyze report The tool parses the resulting JSON for segment distributions and churn risks.
- Present findings You receive an executive summary table and a customizable HTML retention offer.
Frameworks & tools
This skill uses a zero-dependency Python script compatible with any standard Python environment. It handles CSV parsing for comma or semicolon delimiters.
Why this beats prompting it yourself
Generic prompts often hallucinate math or struggle with large CSV structures. This skill uses a deterministic script to ensure RFM scores are calculated accurately while keeping sensitive data off-platform.
Use cases
- Identify top-tier customers who haven't purchased in the last 90 days.
- Prepare a distribution report of buyer personas for a monthly business review.
- Generate personalized discount code emails for the "At Risk" customer segment.
- Audit raw transaction logs to find the highest-spending loyalists.
Known limitations
Requires a Python environment to execute the local script. Does not support direct database connections; data must be exported to CSV first.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for E-commerce.
Requires local Python environment. Only supports CSV inputs. Does not connect directly to live databases.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 5 days ago
- Software
Python 3.8+