Sub topic 2
What data email, CRM, and analytics platforms give their AI features
This chapter assumes you know what a contact record, a campaign, and a dashboard are, and that you have a rough idea of how machine learning models and large language models (LLMs) work. It covers one question: for each kind of platform, which data does an AI feature actually read?
Why data decides what a feature can do
An AI feature can only use what its platform stores. A lead-scoring model needs past leads with known outcomes. A send-time model needs timestamps of opens and clicks. A natural-language query tool needs a clear description of your tables and columns. If that data is missing, thin, or wrong, the feature produces weak results or none at all.
When you evaluate a feature, ask two questions. What data does it read? How much history does it need?
What each platform holds
| Platform | Typical data | Features that depend on it |
|---|---|---|
| Email marketing | Subscriber lists, send, open, click, and unsubscribe events, past campaign copy, purchase data | Subject-line and draft generation, segmentation, send-time choice |
| CRM | Contact and company records, deals and stages, logged emails, calls, and meetings, closed-won and closed-lost outcomes | Lead scoring, forecasting, call summaries, deduplication |
| Analytics | Event streams, sessions, conversions, and daily metrics over time, plus a schema of tables and metric definitions | Anomaly detection, automated insights, natural-language queries |
Data usually falls into three groups:
- Profile data describes who someone is: job title, company size, email domain.
- Behavior data describes what they did: opened an email, viewed a pricing page, attended a demo.
- Outcome data describes what happened next: became a customer, churned, unsubscribed.
Predictive features need outcome data, because that is the label the model learns to predict. Generative features need text examples and context, such as your past campaigns and brand guidelines.
From stored data to model input
Platforms turn raw records into features, which are numeric inputs a model can use. A feature is also called a column or variable. The same word, "feature", is used for the product capability, so this tutorial says "model input" when it means the numbers.
The lead-scoring example from the plan shows the idea. Each row is one lead. Each column is a model input built from profile or behavior data. The last array holds the outcome.
import numpy as np
# Columns: requested_demo, free_email_domain, pricing_page_views
X = np.array([
[1, 0, 3],
[0, 1, 0],
[1, 1, 5],
])
# Outcome: 1 = became a customer, 0 = did not
y = np.array([1, 0, 1])
print("Rows (leads):", X.shape[0])
print("Model inputs per lead:", X.shape[1])
print("Share who converted:", y.mean())The platform has to collect, join, and clean this table before any model runs. A pricing-page view, for example, only reaches the CRM if web tracking is connected to the contact record.
Common data problems
- Too little history. A model trained on a few dozen outcomes gives unstable scores. Many vendors set a minimum, so check the documentation.
- Missing links. If email activity is not tied to CRM contacts, the model cannot see engagement.
- Stale or duplicated records. Duplicate contacts split one person's behavior across two rows.
- Biased history. A model learns from past decisions. If sales ignored a certain segment, it has few examples of that segment converting.
- Consent limits. Some data cannot be used for some purposes. Later chapters return to this.
Exercise
A CRM vendor offers predictive lead scoring. Your CRM has 40 leads, and none has a recorded outcome. Which of the three data groups is missing, and why does it block the feature?
Show answer
Outcome data is missing. A predictive model learns by comparing leads that became customers with leads that did not. Without those labels it has nothing to learn from, so the score would not mean anything. You would first need to record outcomes and collect more history.