Skip to main content

Predictive Thresholds

Predictive Thresholds

Configure site-level threshold bands for churn risk, purchase propensity, and CLV segmentation.

Audience: Lifecycle and CRM teams using predictive segments for targeting decisions.

Critical: Predictive thresholds are managed under site endpoints (/api/v1/sites/:id/predictive-thresholds*), not AI site endpoints.

Who This Page Is For

Use this page when you need to define score cutoffs for predictive segmenting and regularly recalculate user predictive scores.

Quick Start (2-5 Minutes)

1

Read current thresholds

Fetch current score thresholds for site.

GET /api/v1/sites/:id/predictive-thresholds
2

Update thresholds

Set high/medium cutoffs for churnRisk, purchasePropensity, and CLV.

PUT /api/v1/sites/:id/predictive-thresholds
3

Get distribution stats

Inspect how users distribute across threshold bands.

GET /api/v1/sites/:id/predictive-thresholds/stats
4

Recalculate predictive scores

Trigger score recalculation after threshold or model updates.

POST /api/v1/sites/:id/predictive-thresholds/calculate
5

Apply segments

Use predictive segment rules after score recalculation.

Use segments module with predictive type audiences.

Predictive threshold endpoints

GET  /api/v1/sites/:id/predictive-thresholds
PUT  /api/v1/sites/:id/predictive-thresholds
GET  /api/v1/sites/:id/predictive-thresholds/stats
POST /api/v1/sites/:id/predictive-thresholds/calculate

Required Fields / Minimum Payload

FieldRequiredTypeUsed by eventsDescription
churnRisk.high / churnRisk.mediumOptionalnumber (0..100)Update thresholdsMust satisfy high > medium.
purchasePropensity.high / purchasePropensity.mediumOptionalnumber (0..100)Update thresholdsMust satisfy high > medium.
clv.high / clv.mediumOptionalnumberUpdate thresholdsMust satisfy high > medium.
autoAdjustOptionalbooleanUpdate thresholdsControls automatic adjustment behavior where supported.

Threshold update example

{
"churnRisk": { "high": 70, "medium": 40 },
"purchasePropensity": { "high": 65, "medium": 35 },
"clv": { "high": 500, "medium": 200 },
"autoAdjust": false
}

Event or Endpoint Decision Matrix

ScenarioUse ThisWhy
Need baseline threshold configGET /sites/:id/predictive-thresholdsRead current segmentation cutoffs.
Need threshold policy updatePUT /sites/:id/predictive-thresholdsPrimary write path with validation rules.
Need audience distribution visibilityGET /sites/:id/predictive-thresholds/statsShows impact of threshold settings.
Need recomputation after changesPOST /sites/:id/predictive-thresholds/calculateApplies threshold/model updates to user scores.
Need targeting rolloutSegments module predictive audiencesOperational usage of computed score bands.

Common Errors and Fixes

Threshold update fails validation

Cause: high value not greater than medium value.

Fix: Set high > medium for each metric block.

Stats endpoint unchanged after update

Cause: Scores not recalculated yet.

Fix: Run calculate endpoint after threshold changes.

Predictive segment reach unexpectedly low

Cause: Thresholds too strict for current data distribution.

Fix: Review stats and adjust thresholds incrementally.

Confusion with AI personalization endpoints

Cause: Predictive thresholds mistaken for /ai/sites/* resources.

Fix: Use /sites/:id/predictive-thresholds* endpoints only.

Production Checklist

  • Threshold definitions are documented with business rationale.Required
  • Validation rule high > medium is enforced for all threshold pairs.Required
  • Score recalculation is part of threshold change runbook.Required
  • Stats are reviewed after each threshold update.Required
  • Predictive segment effects are monitored in campaign outcomes.Required

Next Steps