skills/marketing-growth/customer-retention-engine/SKILL.md
Build automated retention campaigns targeting at-risk customers with behavioral triggers, personalized offers, and churn prevention workflows
npx skillsauth add finsilabs/awesome-ecommerce-skills customer-retention-engineInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Acquiring a new customer costs 5–7x more than retaining an existing one. A retention engine identifies customers who show declining engagement — reduced purchase frequency, decreasing order values, browsing without buying — and intervenes with personalized campaigns before they lapse. Klaviyo and AutomateWoo can build these workflows with no custom code using predictive analytics built into the platform.
Note: For reactivating already-lapsed customers, see @win-back-reactivation. This skill focuses on proactive churn prevention before customers lapse.
| Platform | Recommended Tool | Why | |----------|-----------------|-----| | Shopify | Klaviyo | Klaviyo's predictive analytics automatically calculates expected next purchase date and churn risk for every customer; no manual scoring needed | | WooCommerce | AutomateWoo ($99/yr) | Deep WooCommerce integration, "Customer win-back" workflow type, RFM segmentation built in | | BigCommerce | Klaviyo or Omnisend | Both integrate natively with BigCommerce order events and offer predictive churn scoring | | Custom / Headless | Klaviyo (via API) | Send order events to Klaviyo; use their predictive analytics to identify at-risk customers |
Churn timing depends on your product's natural repurchase cycle:
| Product Category | Expected Repurchase Cycle | At-Risk Threshold | Churned Threshold | |-----------------|--------------------------|-------------------|-------------------| | Consumables (skincare, supplements) | 30–60 days | 60+ days since last order | 120+ days | | Apparel/fashion | 60–90 days | 90+ days | 180+ days | | Home goods | 90–180 days | 180+ days | 365+ days | | Electronics accessories | 120–365 days | 180+ days | 365+ days |
In Klaviyo, go to Analytics → Predictive Analytics to see Klaviyo's automatically calculated churn risk for your customer base. Klaviyo uses your actual order history to set these thresholds — no manual calculation needed.
Flow 1: Early warning — customers approaching their expected repurchase date
{{ person.predicted_next_purchase_date }} variable to acknowledge timingFlow 2: High-value at-risk customers — personalized offer
Create the "High-Value At-Risk" segment in Klaviyo:
Predicted Churn Risk equals High OR MidTotal Customer Value (Historic CLV) greater than $150Has not placed order in last 60 daysFlow 3: One-time buyer reminder
AutomateWoo also includes built-in RFM segmentation — go to AutomateWoo → Reports → RFM Analysis to see your customer segments visually.
Send order events to Klaviyo's API to trigger retention flows:
// Send order event to Klaviyo when an order is completed
async function trackKlaviyoOrder(order: Order) {
await fetch('https://a.klaviyo.com/api/events/', {
method: 'POST',
headers: {
'Authorization': `Klaviyo-API-Key ${process.env.KLAVIYO_PRIVATE_KEY}`,
'Content-Type': 'application/json',
'revision': '2024-10-15',
},
body: JSON.stringify({
data: {
type: 'event',
attributes: {
metric: { data: { type: 'metric', attributes: { name: 'Placed Order' } } },
profile: { data: { type: 'profile', attributes: { email: order.customerEmail } } },
properties: {
$value: order.subtotal,
OrderId: order.id,
Items: order.lineItems.map(i => ({ ProductName: i.name, ItemPrice: i.price })),
},
},
},
}),
});
}
Klaviyo's predictive analytics then automatically calculates churn risk and expected next purchase date based on these events.
Match interventions to customer value tier:
| Customer Tier | Intervention | Incentive | |--------------|-------------|-----------| | VIP (6+ orders, $500+ LTV) | Personalized email from "founder" | No discount — just recognition and early access | | High-value (3–5 orders) | Email + SMS follow-up | Free shipping (protects margin) | | Standard (1–2 orders) | Email sequence | 10% discount at final step only | | One-time buyer | Email at 45 days | 10% off second order |
Track these in Klaviyo or AutomateWoo dashboards:
| Metric | Target | Where to Find | |--------|--------|---------------| | Flow revenue | Growing month-over-month | Klaviyo → Flows → Analytics | | Repeat purchase rate | > 25% of customers | Shopify: Analytics → Customer cohorts. Klaviyo: Segment analytics | | At-risk segment shrinking | Decrease vs. prior month | Klaviyo → Segments → Size history | | Churn rate | Declining | Compare lapsed customer count month-over-month |
| Problem | Solution | |---------|----------| | Sending retention emails to customers who just bought | Add a flow filter in Klaviyo: "Has placed an order in last 7 days → skip"; AutomateWoo's "Customer has not purchased since workflow was created" rule handles this | | Discounts eroding margin on customers who would have repurchased anyway | Use Klaviyo's predictive analytics: only offer discounts when predicted churn risk is "High"; skip for "Mid" and "Low" | | Single-purchase customers receiving win-back messaging too early | Set a minimum 45-day window before treating a one-time buyer as at-risk | | Flows sending to unsubscribed contacts | Klaviyo respects unsubscribes automatically; ensure your Shopify/WooCommerce unsubscribe events sync to Klaviyo in real-time |
tools
Let shoppers save products to a wishlist, share it with friends, and get notified when saved items come back in stock or drop in price
development
Build a themeable storefront with design tokens and CSS custom properties that supports white-labeling, multi-brand variants, and dark mode
development
Speed up product discovery with instant search suggestions, fuzzy typo matching, and category-aware results powered by Algolia or Elasticsearch
development
Build a mobile-first storefront with thumb-friendly navigation, sticky add-to-cart buttons, and touch-optimized components for high mobile conversion