# Customer Churn Predictor

> XGBoost-based telecom churn predictor that scores customer risk and suggests retention actions.

Customer Churn Predictor is a free AI agent skill on Agensi by Pratiksha Singh, in Agents & Orchestration. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Pratiksha Singh](https://www.agensi.io/creators/pratiksha-singh)
- Category: [Agents & Orchestration](https://www.agensi.io/skills/agents-orchestration)
- Version: 1.0
- Last updated: 2026-11-29
- Security: scan passed (2026-11-29); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/customer-churn-predictor
- Tags: ai-agents, xgboost, telecom, python, predictive-analytics

## About this skill

Manual churn analysis is slow and prone to bias. This skill provides an XGBoost-powered classifier to identify high-risk telecom customers based on account activity and service usage.

### What it does
- **Risk Scoring** calculates the churn probability (0.0 to 1.0) for individual customer profiles.
- **Categorical Classification** labels customers as CHURN or STAY based on a 0.5 probability threshold.
- **Batch Processing** handles CSV files to score entire customer databases in one operation.
- **Retention Strategy** generates targeted suggestions like contract migrations or tech support outreach based on risk levels.
- **Validation** enforces strict schema matching for 19 required customer fields to ensure model integrity.

### How it works
1. Provide customer data as a JSON object or a path to a CSV file.
2. The agent validates the input against `model/schema.json` to ensure all 19 required fields (tenure, contract type, charges, etc.) are present and valid.
3. The skill runs `scripts/predict.py` to load the `churn_model.json` XGBoost model.
4. It returns a risk report containing the probability, risk bucket (Low, Medium, High), and actionable retention advice.

### Frameworks & tools
Python 3.9+, XGBoost, Pandas, and NumPy.

### Why this beats prompting it yourself
Prompting an LLM to "predict churn" results in hallucinations based on general patterns rather than actual data distributions. This skill uses a localized XGBoost model trained on 7,043 real records, providing mathematical probability scores that an LLM cannot compute reliably.

### Use cases
- Identify month-to-month customers with high charges for annual contract incentives.
- Audit a CSV of recent cancellations to find common service friction points.
- Generate weekly risk reports for customer success teams to prioritize outreach.

### Known limitations
Trained specifically on telecom data. Recall on churners is approximately 55 percent, meaning it may miss nearly half of actual churners. Requires all 19 fields to be populated exactly.

## Requires

- Python

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Customer Churn Predictor skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What specific data do I need to provide for the predictor to work?

The skill requires a specific set of 19 data points, including tenure, contract type, and monthly charges. A schema.json file is included to help you validate your data format before running predictions.

### How is this better than just asking a standard AI agent to predict churn?

Unlike LLMs that guess based on text, this skill uses a specialized XGBoost model trained on 7,043 real-world records to provide mathematically grounded probability scores. This ensures consistent, data-driven results rather than creative hallucinations.

### What files and assets are included in this purchase?

You will receive the pre-trained XGBoost model file, the Python prediction scripts, the data validation schema, and documentation on how to integrate the skill into your existing workflow.

### Can I use this predictor for industries other than telecom, like e-commerce?

The model is currently optimized specifically for the telecommunications industry; while it can be adapted, using it for other sectors like SaaS or retail without retraining may result in lower accuracy.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
