Sub topic 7
CRM: automatic data capture, cleanup, and call summaries
This chapter assumes you know what a contact record, an activity, and a pipeline are, and that you have a basic idea of what a large language model (LLM) does. It covers the features that fill and tidy a CRM so that features like lead scoring and forecasting have data to work with.
Why capture comes first
Lead scoring and forecasting learn from CRM records. If reps skip logging calls, duplicates split one customer into two records, or fields are empty, those models learn from a distorted picture. Capture and cleanup features reduce that manual work. They sit upstream of the predictive features covered in the neighboring chapters.
Four jobs and the technique behind each
| Job | What it automates | Typical technique |
|---|---|---|
| Activity capture | Logging emails, meetings, and calls to the right contact | Rules plus matching on email address and calendar data |
| Deduplication | Merging records that describe the same person or company | Fuzzy string matching, then a match score |
| Enrichment | Filling job title, company size, or industry | Lookup against third-party data |
| Call and meeting summaries | Turning a transcript into notes and action items | Speech-to-text, then an LLM |
Activity capture
The platform reads connected mailboxes and calendars. It matches each participant's address to a contact record and attaches the message or meeting as an activity. This is mostly deterministic matching. Errors appear when a person uses several addresses or when a shared inbox, such as sales@, matches many people.
Deduplication
Duplicates rarely match exactly. "Jon Smith, Acme Inc." and "Jonathan Smith, ACME" are the same person. The usual approach normalizes the text, compares fields with a similarity measure, and combines them into a match score. High scores merge automatically or are queued for review.
from difflib import SequenceMatcher
def normalize(text: str) -> str:
return " ".join(text.lower().replace(".", "").replace(",", "").split())
def similarity(a: str, b: str) -> float:
return SequenceMatcher(None, normalize(a), normalize(b)).ratio()
name_score = similarity("Jon Smith", "Jonathan Smith")
company_score = similarity("Acme Inc.", "ACME Inc")
score = (name_score + company_score) / 2
print(f"name={name_score:.2f} company={company_score:.2f} combined={score:.2f}")
print("merge candidate" if score >= 0.8 else "keep separate")The threshold is a business decision. A low threshold merges distinct people, which is hard to undo. A high one leaves duplicates behind.
Call summaries
A call summary is a pipeline of steps.
A speech-to-text model produces the transcript. An LLM then writes the summary, lists action items, and proposes updates such as a new close date. This is generative AI, so it can invent details or misattribute who said what.
Common errors
- Bad merges. Two different people with the same name and company get combined, and their histories mix.
- Wrong contact match. An activity attaches to the wrong person because of a shared address.
- Transcript errors. Product names, accents, and crosstalk are misheard, and the summary repeats the mistake.
- Unsupported claims. A summary states a commitment or price that nobody mentioned.
- Silent overwrites. Enrichment replaces a correct value that a rep typed with an outdated one.
Practical checks
- Sample captured activities each week and confirm they sit on the right contacts.
- Log every automatic merge so it can be reversed.
- Compare summaries to transcripts on a handful of calls before trusting them.
- Check call-recording consent rules before turning summaries on.
Exercise
A deduplication tool merges "Maria Lopez, Northwind" with "Maria Lopez, Northwind Traders" at a combined score of 0.82. Later, you learn they are two different people. Name one change that reduces this risk and explain the trade-off.
Show answer
Raise the auto-merge threshold, or send mid-range scores to human review and use more fields such as email domain or phone number. The trade-off is that more true duplicates stay unmerged, or reviewers have more work, in exchange for fewer wrong merges that are hard to undo.
Exercise
Why should a call summary stay linked to its transcript?
Show answer
The summary is generated by an LLM and can contain errors or invented details. The linked transcript lets a person verify any claim against what was actually said.