Skip to Content
Solution PlaysPlay 91: Play 91 β€” Customer Churn Predictor πŸ“‰

Play 91 β€” Customer Churn Predictor πŸ“‰

AI churn prediction β€” multi-signal risk scoring, SHAP explainability, segment-specific retention, automated intervention workflows.

Build a customer churn prediction system. LightGBM scores risk from 4 signal categories (usage, engagement, billing, support), SHAP explains top 3 churn drivers per customer, segment-specific retention playbooks auto-trigger personalized interventions, and LLM personalizes retention messaging.

Quick Start

cd solution-plays/91-customer-churn-predictor az deployment group create -g $RG -f infra/main.bicep -p infra/parameters.json code . # Use @builder to implement, @reviewer to audit, @tuner to optimize

Architecture

πŸ“ Full architecture details

Pre-Tuned Defaults

  • Risk: High >0.70 Β· Medium 0.40-0.70 Β· Low <0.40 Β· daily scoring for high risk
  • Features: 4 signal groups (usage, engagement, billing, support) Β· 30 max features Β· SHAP top 3
  • Retention: 5 playbooks (price-sensitive, feature-gap, support, engagement, contract) Β· budget caps
  • Model: LightGBM Β· scale_pos_weight for class imbalance Β· weekly retrain

DevKit (AI-Assisted Development)

PrimitiveWhat It Does
agent.mdRoot orchestrator with builder→reviewer→tuner handoffs
copilot-instructions.mdChurn domain (signals, explainability, retention playbooks)
3 agentsBuilder (gpt-4o), Reviewer (gpt-4o-mini), Tuner (gpt-4o-mini)
3 skillsDeploy (215+ lines), Evaluate (115+ lines), Tune (225+ lines)
4 prompts/deploy, /test, /review, /evaluate with agent routing

Cost Estimate

ServiceDev/TestProductionEnterprise
Azure OpenAI$25 (PAYG)$300 (PAYG)$1,100 (PTU Reserved)
Azure Machine Learning$15 (Basic)$300 (Standard)$900 (Standard GPU)
Cosmos DB$3 (Serverless)$120 (2000 RU/s)$450 (8000 RU/s)
Azure Communication Services$5 (PAYG)$150 (PAYG)$500 (PAYG)
Azure Functions$0 (Consumption)$180 (Premium EP2)$450 (Premium EP3)
Container Apps$10 (Consumption)$150 (Dedicated)$400 (Dedicated HA)
Key Vault$1 (Standard)$5 (Standard)$15 (Premium HSM)
Application Insights$0 (Free)$35 (Pay-per-GB)$120 (Pay-per-GB)
Total$59/mo$1,240/mo$3,935/mo

πŸ’° Full cost breakdown

vs. Play 64 (AI Sales Assistant)

AspectPlay 64Play 91
FocusNew customer acquisitionExisting customer retention
ModelLead scoring + opportunityChurn risk + retention action
ActionPersonalized sales outreachSegment-specific retention playbook
MetricWin rate + pipelineAUC-ROC + retention lift + ROI

πŸ“– Full documentation Β· 🌐 frootai.dev/solution-plays/91-customer-churn-predictorΒ  Β· πŸ“¦ FAI Protocol

FAI Manifest

FieldValue
Play91-customer-churn-predictor
Version1.0.0
KnowledgeT3-Production-Patterns, O2-AI-Agents, F1-GenAI-Foundations
WAF Pillarscost-optimization, reliability, responsible-ai, performance-efficiency
Last updated on