Sub topic 3
Analytics: automated insights and trend explanations
This chapter assumes you know what a dashboard metric is, understand basic statistics (mean and standard deviation), and know that a model can be wrong.
Automated insights and trend explanations
Analytics platforms scan metrics and write short statements such as "Trial signups rose 18% after the pricing change." Most of these features rely on trend and anomaly models, not large language models. The model compares each new value with a baseline built from earlier values. A text generator may then phrase the result. Check every number in a generated explanation against the source metric, because a fluent sentence can still blame the wrong cause.
Chaining features into multi-step automation
Platforms let you chain features. An anomaly alert can create a CRM task, which can trigger an email draft. Each link adds error, and the errors compound. If each step is 95% accurate, a three-step chain succeeds about 86% of the time (0.95 × 0.95 × 0.95 ≈ 0.857).
Deciding what to automate and what to review
Keep a human approval step in front of any action that is external, costly, or hard to reverse. The function below sends a draft automatically only when the draft is internal and the model is confident.
def route_draft(confidence: float, is_external: bool, threshold: float = 0.9) -> str:
"""Decide whether an AI-generated email draft is sent or reviewed."""
if is_external:
return "human_review"
return "auto_send" if confidence >= threshold else "human_review"
print(route_draft(0.95, is_external=False))
print(route_draft(0.95, is_external=True))
print(route_draft(0.70, is_external=False))The output is auto_send, human_review, and human_review.
Measuring whether an AI feature helps
Compare the feature against a baseline and a holdout group. Keep a random share of contacts, for example 10%, on the old process. Then compare a business metric, such as reply rate or pipeline created, between the two groups. A difference that is small compared with normal week-to-week variation does not prove the feature works.
Privacy, consent, bias, and accuracy risks
Insight features read customer data, so confirm that each use matches the consent terms you collected. Models trained on past decisions can repeat past bias, such as scoring leads from certain regions lower. Track error rates by segment, and check generated explanations against the source data before acting on them.
Exercise
A feature flags a 40% jump in churn and suggests a cause. Your holdout group shows no difference in churn between the two groups. What should you conclude about the suggested cause?
Show answer
The suggested cause is not supported by the experiment. Treat it as an unverified hypothesis, and investigate further before changing the process.