DatabricksAshrit KulkarniExplainer
Data Modeling Best Practices for an Agentic CDP, Part 1: The Data Foundation
Summary
Part 1 of a two-part series describes data modeling for an Agentic CDP, covering steps from raw data in bronze to omnichannel activation. Identity resolution runs after the silver layer, where data is cleaned and normalized, and publishes a persistent canonical ID as the join key for gold. The gold layer comprises a customer entity table, separate 1:1 attribute tables for model scores and consent, and 1:many behavior tables such as orders and events at event grain. Agents take over matching and audience drafting while humans choose sources, review matches, and approve outputs, with consent and suppression rules stored as data for fast checks. Gold tables are flagged as batch or event, event tables are streaming tables, and engagement metrics land back in bronze with holdout groups to close the measurement loop.
Context
Data architects preparing customer data for an Agentic CDP need to adapt from batch segments to per-person decisions in seconds. Part 1 covers the medallion architecture, identity ownership, and gold layer design. The post is written by Databricks and focuses on their CustomerLake product, but the modeling principles apply broadly.
Approach / What changed
Use a medallion architecture with bronze (raw), silver (cleaned), then identity resolution after silver to create a persistent canonical ID. Build gold with three table types: customer entity table, 1:1 attribute tables for scores and consent, and 1:many behavior tables at event grain. Flag each gold table as batch or event; build event tables as streaming tables. Own the identity graph with deterministic then probabilistic matching, recording rules and confidence for auditability. Land engagement outcomes back in bronze with holdout groups for closed-loop measurement. Use Databricks tools or open-source matchers like Splink or Zingg.
Takeaways
Identity resolution should run after silver data is cleaned and normalized, using deterministic then probabilistic matching, and publish a persistent canonical ID with an auditable graph recording rules and confidence.
The gold layer must contain three table types: a customer entity table with all activation identifiers, separate 1:1 attribute tables for model scores and consent, and 1:many behavior tables at event grain such as orders and web events.
Each gold table should be flagged as batch or event, with event tables built as streaming tables to enable real-time triggers and bring engagement data back into bronze with holdout groups for closed-loop measurement.
FAQ
Where should identity resolution run in a CDP pipeline?
After silver, before gold, in one place with incremental reruns. Use deterministic matching first (exact email, phone, partner ID), then probabilistic scoring, then cluster and mint a persistent canonical ID. Human review a sample before each publish. This post recommends using SQL rules or open-source matchers like Splink or Zingg.
Why should brands own their identity graph instead of relying on vendors?
Ownership makes the graph explainable, auditable, and reversible, which agents need for safe per-person decisions. With identity resolution running next to the data, maintaining the graph is practical. Deterministic rules first, then probabilistic scoring, and record merges and splits so downstream can follow.
How are attribute tables different from behavior tables in a CDP data model?
Attribute tables have one row per customer, holding values like propensity scores, consent status, or lifecycle stage. Behavior tables have many rows per customer, one per event with a timestamp, such as orders, web visits, or service cases. Marketers use attribute columns directly and aggregate behavior tables into new attributes like orders in last 30 days.
Source and freshness
- Source
- databricks.com
- Published
- Added to Yomu
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.