- Home
- Skills
- E-commerce
- Stop Losing Customers: See Who's Leaving & Win Them Back
More screenshots
Works with the AI Agents you already use
Stop Losing Customers: See Who's Leaving & Win Them Back
by Vincent
Your AI agent cleans your orders CSV, segments every customer (RFM) and finds who is slipping away, with ranked win-back lists.
$19.99
Stop Losing Customers: See Who's Leaving & Win Them Back
Example session with this skill installed
Here's our online store export, online_store_orders.csv. Can you check it's clean, tell me who our best customers are and tell me which customers we're losing?
- Read your context and instructions
- Compiled the stop losing customers
- Generated the data export
Step 1: diagnosis (nothing changed yet)
I read
online_store_orders.csv (11,331 rows).
Health Score: 97/100. Columns: customer customer_id, date order_date, amount amount, order order_id, plus customer_email, channel. Please confirm.
Formatting fixes: none needed.
Your call: 217 negative amounts in 'amount' (suggested: keep them (treat as refunds/returns))
User: "Mapping is right. Keep the refunds."
Step 2: checked
Health Score
97 → 100, rows 11,331 → 11,331. Refunds are kept, so they're taken off each customer's spend. health_report.html written; your original file is unchanged.
Customer segments: Champions + Loyal are 33% of customers and bring in 65% of net revenue; At risk + Can't lose them: 249 customers (22% of revenue).
Churn risk: 2,000 customers analysed.
At Risk + Likely Lost: 928 (46%), $219,097 a year at stake. Tiers: Active 907, Watch 165, At Risk 188, Likely Lost 740.
Backtest: Among all customers, 95% of those flagged At Risk or Likely Lost did not come back, compared with 14% of those flagged Active (81 points apart). The tiers separated them clearly.
Win-back lists: watch_list.csv, at_risk.csv, likely_lost.csv, sorted by priority with a message idea on each row. Only message customers who agreed to hear from you.
online_store_orders.csv
CSV · data export
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
Most customer analysis goes wrong before it starts: duplicate orders, amounts stored as text, dates read the wrong way round. This skill fixes the data first, then runs every analysis on the cleaned file, in one guided run.
Data Health Check + RFM Segmentation + Churn Risk Finder combines Data Health Check, RFM Customer Segmentation and Churn Risk Finder. Hand your AI agent a CSV of orders or sales with a customer and a date on each row. It will:
- Check and clean the file. A Health Score from 0 to 100, every problem by severity, and a numbered list of fixes. Formatting fixes (like
KSh 1,200stored as text or mixed date formats) are applied only with your OK; judgement calls such as refunds, outliers and future dates stay yours. You get a cleaned CSV, a log of every change and a one-page health report. - Segment every customer with RFM: scores 1-5 for recency, frequency and spend, and 11 named segments from Champions to Lost, with a customer list and suggested actions per segment.
- Find who is slipping away. Each customer's own buying rhythm, who is overdue (Active, Watch, At Risk, Likely Lost), ranked by money at stake, with an honest backtest on your own history, a top-25 win-back list and
watch_list.csv,at_risk.csvandlikely_lost.csvready for your email or WhatsApp tool.
You get: health_report.html + cleaned CSV + cleaning log; rfm_report.html + rfm_customers.csv; churn_report.html + customer_risk.csv + three win-back lists.
Why together: RFM shows every customer's place in your business, from Champions to Lost, compared with all your other customers. Churn risk compares each customer with their own rhythm, so it catches a weekly buyer who has gone quiet for three weeks. Together they tell you who matters and who to contact now.
Bought separately, these skills cost $54.98/month; together $39.99/month (save 27%).
How it decides who is slipping
- Each customer's own rhythm. For repeat customers, the median number of days between their purchases, blended toward your store's typical gap when they have only a few orders (one gap counts 25% their own, nine gaps 75%).
- Overdue ratio = days since their last order ÷ their typical gap. Active under 1×, Watch 1-1.5×, At Risk 1.5-3×, Likely Lost 3× or more.
- One-time buyers are compared with how quickly your returning customers usually place a second order (the 80th percentile), and shown as their own group.
- Priority = risk × value at stake (average annual spend), so the list puts high-value slipping customers first.
- Analysis date = the last order date in your file, not today, so an old export still gives sensible results.
- No black-box machine learning: every step is a simple rule you can check in the customer CSV.
Built to be trusted
- Nothing is cleaned without your approval, and your original file is never modified.
- All detection, cleaning and calculations run in bundled Python scripts, not in the AI's head, so the same file gives the same results every time. The scripts are the same as in the standalone VOTIEN skills.
- The agent asks as few questions as possible: one after the diagnosis, one short confirmation before the analysis.
- An honest churn backtest on your own history. If the tiers don't separate leavers from stayers well on your data, the report says so.
- Refunds are handled explicitly and rows that can't be used are counted with the reason, not hidden.
Handles real-world files
Comma, semicolon, tab or pipe delimited; UTF-8, UTF-8 with BOM or Latin-1; amounts like KSh 1,200, 1,200/=, $45.00 or €1.234,56; mixed date formats; line items (several rows per order); about 200,000 rows.
Try it on the included examples
| Example file | Health | Churn risk |
|---|---|---|
| E-commerce orders, messy (KSh): blank rows, duplicates, text amounts, mixed dates | Health Score 49 → 98, rows 1,464 → 1,389 | 102 of 242 customers At Risk/Likely Lost; backtest: tiers did not separate well here (45% vs 36%), and the report says so |
| Online store, 18 months (planted churners) | already clean | 928 of 2,000 customers At Risk/Likely Lost, $219,097 a year at stake; backtest: 95% of flagged customers didn't return vs 14% of Active |
All example data is synthetic.
Requirements
- An AI agent that supports SKILL.md skills
- Python 3.9+ with pandas 2.2+ (
pip install pandas). No other packages. The scripts need no internet; your AI agent uses its usual connection to its AI model.
What it doesn't do
It doesn't forecast sales, send messages or connect to any system. It doesn't build a sales dashboard.
Part of the VOTIEN analytics suite
- Fix Your Messy Sales Data Free: diagnose and clean a messy CSV. Free.
- See How Your Business Is Really Doing: a one-page dashboard from any business CSV. Free.
- Stop Losing Customers (this skill): every customer in a named segment, plus who is slipping away and who to win back first
- Know Who Buys, Who's Leaving & What Next Month Brings: everything above plus a sales forecast with an honest range, in one run
Privacy
Your file is processed on your own computer by the bundled Python scripts, which make no network connections, and the reports and lists are saved to your disk. Your AI agent's model sees what the scripts print (column names, totals, summaries and data-quality notes, with names, emails, phone numbers and customer IDs masked). The skill tells the agent to work from that output, not to open your data files and never to quote personal details. Your agent's own data settings apply to that conversation.
Doesn't forecast sales, send messages or connect to any system. Doesn't build a sales dashboard. Churn risk needs a customer and an order date on each row and works best with 6+ months of history and 30%+ repeat customers; with less it warns, and under 2 months it stops and explains why.
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 4 days ago
- Software
Python 3.9+pandas 2.2+
Permissions
What's inside
Frequently Asked Questions
New in E-commerce
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.