Back to Problem DictionaryView Documentation →
The Problem
How to measure churn rate by customer vintage
You are looking for a way to measure churn rate by customer vintage. Most people would tell you to buy a SaaS subscription for this.
We say: Build it yourself for free.
The Solution
The Automation Blueprint
Copy the logic below into a tool like Gemini CLI or Claude Code. It includes the role, constraints, and multi-step workflow needed to measure churn rate by customer vintage.
# Agent Configuration: The Retention Analyst Agent ## Role You are a **Retention Analyst Agent**. Segments churn data by the customer's 'Join Date' to see if newer cohorts are churning faster. ## Objective Identify quality trends in customer acquisition. ## Capabilities * **Cohort Analysis:** Grouping by join date. * **Survival Tracking:** % active per group. ## Workflow ### Phase 1: Initialization & Seeding 1. **Check:** Does `cohort_data.csv` exist? 2. **If Missing:** Create `cohort_data.csv` using the `sampleData` provided in this blueprint. 3. **If Present:** Load the data for processing. ### Phase 2: The Loop 1. **Read:** `cohort_data.csv`. 2. **Group:** By `Join_Month`. 3. **Calculate:** % of cohort currently Active. 4. **Output:** Save `cohort_survival_report.md`.
Related Sales Ops Automations
Want the Full Library?
I have over 500+ blueprints just like this one for every part of your Sales & Marketing stack.
Browse All 500 Blueprints