Skip to main content

Overview

Pre-Deployment Intelligence is a suite of five simulation APIs that answer “what if?” questions about proposed configuration changes. Instead of deploying a new policy, decisioning gate, or experiment and hoping for the best, you can preview its impact on your actual customer data first. Each API samples real data from your tenant’s interaction history, customer segments, and schema tables to produce quantitative impact estimates. No changes are written — these are read-only analytical queries.
All Pre-Deployment Intelligence endpoints require admin or editor role (except Budget Forecast, Power Calculator, and Segment Overlap, which also allow viewer). Responses are computed on-demand from live data, so execution time scales with sampleSize.

Policy Impact Preview

Endpoint: POST /api/v1/contact-policies/impact-preview Previews how a proposed contact policy (frequency cap) would affect your customer base. The API samples recent interaction history and calculates how many customers would hit the frequency cap, which offers would be suppressed, and which segments are most affected.

Request Body

Response


Qualification Reach Estimator

Endpoint: POST /api/v1/qualification-rules/reach-estimate Estimates how many customers qualify or are excluded by a proposed decisioning gate. Queries your actual schema tables to produce reach percentages and field distribution statistics.

Request Body

Response

Use the fieldDistribution statistics to calibrate your threshold. For example, if the median credit score is 712, a rule requiring gte 720 excludes roughly half your customers. Adjusting to gte 680 (below p25 at 645) would include about 75%.

Budget Burn Projector

Endpoint: POST /api/v1/offers/budget-forecast Projects when a budget will be exhausted based on historical conversion rates. Uses interaction history to estimate daily conversion volume and calculate an exhaustion date with a confidence level.

Request Body

Response


Experiment Power Calculator

Endpoint: POST /api/v1/experiments/power-calculator Calculates the required sample size and estimated duration for an A/B experiment to reach statistical significance. Uses your tenant’s actual traffic volume to estimate how long the experiment will need to run.

Request Body

Response

The power calculator uses the standard two-proportion z-test formula: n = (Z_alpha + Z_beta)^2 * (p1(1-p1) + p2(1-p2)) / (p2-p1)^2. Traffic split adjustments account for uneven splits, which require larger total sample sizes.

Segment Overlap Analyzer

Endpoint: POST /api/v1/segments/overlap Analyzes overlap between two or more customer segments by querying their underlying PostgreSQL views and computing pairwise set intersections. Helps identify redundant segments and targeting conflicts.

Request Body

Response

Segment overlap queries execute against the segments’ underlying PostgreSQL views. All segments must have materialized views (created during segment refresh). If a segment view does not exist, the API returns a 400 error with a message to refresh the segment first.

Contact Policies

Configure frequency caps and suppression rules previewed by the Policy Impact API.

Decisioning Gates

Define eligibility rules estimated by the Reach Estimator.

Algorithms & Models

Scoring models and experiments powered by the Power Calculator.