A comprehensive guide to the 4-agent AI analytics pipeline — what each agent does, how it works, the statistical methods and tools it uses, and how they connect together to deliver actionable telecom customer intelligence.
The pipeline processes raw customer data through 4 specialized AI agents in sequence. Each agent adds a layer of intelligence, passing enriched outputs downstream. The core design principle is NO HARDCODING — every metric, threshold, and decision is derived from the actual data.
Data Analysis & Knowledge Acquisition
"Let me understand the DATA"
Segmentation Expert & Knowledge Intelligence
"Let me understand WHO"
Persona Discovery & Behavioral Psychology
"Let me understand WHY"
Strategic Growth Intelligence & Wave Planner
"Let me plan WHAT to do"
| Method | Purpose | Key Parameters |
|---|---|---|
| Pearson Correlation | Detect linear relationships between features | r ≥ 0.5 (moderate), r ≥ 0.7 (strong) |
| Spearman Rank Correlation | Detect monotonic/nonlinear relationships | Divergence > 0.15 flags nonlinear |
| Dual Correlation Selection | Takes stronger of Pearson vs Spearman per pair | Best-of-two approach (v8.1) |
| Bonferroni Correction | Control family-wise error rate across multiple tests | α × n_tests |
| Benjamini-Hochberg FDR | Control false discovery rate | Rank-based threshold at α = 0.05 |
| Hopkins Statistic | Assess whether data has natural cluster structure | H > 0.7 = segmentable, H ≈ 0.5 = random |
| IQR Outlier Detection | Identify statistical outliers per numeric column | Fences: Q1 − 1.5×IQR, Q3 + 1.5×IQR |
| Skewness Analysis | Detect highly skewed distributions | |skew| > 2.0 = highly skewed |
| Coefficient of Variation | Detect low-variance (uninformative) features | CV < 0.01 = low variance |
| CLV Proxy (Tenure × ARPU) | Estimate customer lifetime value trajectory | GROWING / STABLE / DECLINING |
| Method | Purpose | Key Parameters |
|---|---|---|
| MiniBatchKMeans | Primary clustering algorithm (memory-efficient for 200K+ rows) | batch=2048, n_init=10, max_iter=200 |
| Silhouette Score | Select optimal k — measures cluster cohesion vs separation | Tests k ∈ [3,4,5,6,7,8,9] |
| Adjusted Rand Index (ARI) | Measure segment stability across 20 random seeds | Campaign block if ARI < 0.50 |
| Bootstrap Resampling | 95% confidence intervals for propensity scores | 100 bootstrap samples |
| Feature Interaction Detection | Find feature products that better predict goal KPI | Must exceed individuals by ≥ 0.05 |
| Collinearity Removal | Drop highly correlated features before clustering | Threshold: r ≥ 0.95 |
| Multi-Model Comparison | Compare behavioral, value, churn, lifecycle, RFM models | Composite score with silhouette weight=50 |
| L2 Centroid Distance | Migration path feasibility between segments | HIGH < 1.5, MEDIUM < 3.0, LOW ≥ 3.0 |
| Goal-Aware Feature Weighting | Boost features aligned to business goal | Target KPI: ×1.8, Model-specific: ×2.0 |
| Method | Purpose | Key Parameters |
|---|---|---|
| LLM Persona Discovery | Reason about segment data to discover psychology | Temp: 0.3, max 2 retries |
| Z-Score Grounding | Statistically validate psychology claims against data | STRONG: |z| ≥ 2.0, MODERATE: |z| ≥ 1.5 |
| Trait-Weighted Jaccard Similarity | Merge similar personas (adaptive threshold) | Motivations: 3.0, Barriers: 3.0, Triggers: 2.0 |
| Sigmoid Centroid Certainty | Measure segment separation quality | sigmoid(min_dist / scale) |
| Exponential Decay Closeness | User-level confidence from centroid distance | exp(−dist / median_dist) |
| Composite Confidence | Combine 3 signals into per-user confidence | 45% closeness + 35% certainty + 20% completeness |
| Tenure-Based Evolution Windows | Optimal intervention timing per persona | p25/p50/p75 tenure quartiles |
| Data-Driven Channel Inference | Infer channels from actual app/SMS/USSD signals | Keyword matching on column names |
| Method | Purpose | Key Parameters |
|---|---|---|
| Composite Strategy Scoring | Rank strategies by data-backed quality | 30% confidence + 45% impact + 25% feasibility |
| Industry Benchmark Calibration | Normalize propensity rates to realistic campaign rates | Telecom retention: 15–25%, reactivation: 3–8% |
| 3-Dimension A/B/C Variants | Test channel, offer size, and message tone independently | 34/33/33 split ratio |
| Wave Carryover Modeling | Adjust later waves for fatigue and prior conversions | 10% fatigue/wave, 30% max cap |
| Competitive Scenario Projections | Range of outcomes for executive planning | Floor: −40%, Competitive: −25%, Best: +20% |
| Linear Programming (scipy) | Mathematically optimal budget allocation | 5% min, 60% max per wave |
| Billing Cycle Alignment | Time campaigns to user recharge/renewal cycles | Retention: days −5 to −1 from cycle |
| Control Group Allocation | 10% holdout for lift measurement | Per-strategy holdout |
| Strategy Grounding | Validate psychology claims against data signals | Score 0.0–1.0 = grounded/total |
| Segment Overlap Detection | Identify double-targeting across strategies | Warn if overlap > 30% |
| From | To | Key Data Passed |
|---|---|---|
| DAKA | SEKI | Unified CSV (200K rows × 83 cols), domain config (KPIs, semantics, goal requirements), root causes, baseline metrics |
| DAKA | LOKI | Domain config (industry, KPI candidates, semantic groupings), root causes for persona reasoning |
| DAKA | STRATEGI | Root causes (strategy basis), baseline metrics (conversion rates), billing cycle data |
| SEKI | LOKI | Users with segment IDs, segment profiles (propensity, goal rank, key features), model artifact (centroids) |
| SEKI | STRATEGI | Segment profiles (sizes, propensity, alignment, campaign labels), migration paths |
| LOKI | STRATEGI | Persona summaries (psychology, preferred channels, messaging tone), evolution windows |