Sub topic 4
Email: segmentation, send-time choice, and personalization
This chapter assumes you know what a contact record, a campaign, and an open or click event are. It also assumes you have a basic idea of what a machine learning model is. Here we look at the three ways AI chooses who gets an email, when it arrives, and what each person sees.
Segmentation
A segment is a group of contacts that share traits or behavior. Rule-based segments use filters you write, such as "country = DE and opened in the last 30 days". AI-assisted segments are found or ranked by a model:
- Clustering groups contacts with similar behavior, such as purchase frequency and pages viewed, without predefined labels.
- Predictive segments use a model's score, such as "likely to buy in 14 days" or "likely to churn".
These features depend on the data the platform holds: past sends, opens, clicks, purchases, and profile fields. Sparse or stale data produces weak segments.
Send-time choice
Send-time optimization picks a delivery time per contact. The platform looks at when each person has opened or clicked before, then schedules the message near their most active hour. Contacts with little history fall back to a list-wide default.
from collections import Counter
# Hours (0-23) at which one contact opened past emails
open_hours = [8, 9, 8, 20, 8, 9, 8]
def best_send_hour(hours, default=10, min_events=5):
"""Return the contact's most common open hour, or a default."""
if len(hours) < min_events:
return default
return Counter(hours).most_common(1)[0][0]
print(best_send_hour(open_hours))
print(best_send_hour([21, 21]))The first call prints 8. The second prints 10, because two events are too few to trust.
Personalization
Personalization changes the content for each reader. It ranges from simple to model-driven:
| Level | Example | Technique |
|---|---|---|
| Merge fields | "Hi Ana" | Template substitution |
| Dynamic blocks | Show the product category the contact browsed | Rules on profile data |
| Recommendations | "Items you may like" | Model trained on behavior |
| Generated text | Rewritten intro per segment | Language model |
Common errors
- Opens as the only signal. Mail privacy features can pre-load images and register false opens. This distorts send-time models and engagement segments. Prefer clicks or conversions where you can.
- Cold start. New contacts have no history, so the model has nothing to learn from. Check what the default behavior is.
- Over-narrow segments. Very small groups give noisy results and make tests hard to read.
- Creepy personalization. Using sensitive or inferred traits can break trust and, depending on the region, consent rules.
How to judge it
Compare against a baseline. Keep a holdout group that receives the normal send time or generic content, then compare clicks and conversions between the groups. A higher open rate alone does not show the feature helped.
Exercise
A send-time feature reports that open rates rose 12% after you switched it on. Name two reasons this might not mean the feature works, and one way to check.
Show answer
Opens can be inflated by mail privacy pre-loading, and the rise may come from other changes, such as a new subject line or seasonal timing. To check, keep a holdout group on the old send time, run both groups at the same time, and compare clicks or conversions instead of opens.