WritingDatabricks (DBRX)Databricks (DBRX)published Nov 24, 2026seen 3d

Data Modeling Best Practices for an Agentic CDP, Part 1: The Data Foundation

Open original ↗

Captured source

source ↗

Data Modeling Best Practices for an Agentic CDP, Part 1: The Data Foundation | Databricks Blog Skip to main content

Summary

An Agentic CDP needs the same data foundation as any CDP. That means the right sources, clean data, one identity per customer and trusted profiles. What changes is speed: agents decide for one person in seconds, so a gap in the data becomes a bad decision just as fast.

Resolve identity once, after silver, then build gold on one canonical ID. In a medallion architecture, raw data lands in bronze and gets cleaned in silver. Identity resolution then creates a persistent canonical_id, and the gold layer is built from a customer table, 1:1 attribute tables and 1:many behavior tables.

Flag every gold table as batch or event, and land responses back as data. Event tables built as streaming tables, plus engagement and outcomes stored with holdouts, mean you can add trigger-based campaigns and closed-loop measurement later without a remodel.

A customer saved a jacket to their wishlist on your site 9 days ago. This morning its price dropped 30%. Should you let them know? That depends on your goal. If you want first-time buyers to come back for a second purchase, the alert could help. If you're growing lifetime value and this customer usually pays full price, the discount may cost more than it earns. Whatever the goal, an agent needs six answers about this one person before it makes the call (Figure 1). Figure 1. The goal frames one price-drop decision, and the decision needs answers from six kinds of data. If you're getting customer data ready for an Agentic CDP, start here. At Databricks, we work with many brands on this, and the data model is usually the hardest part. This post is for the data architect who designs the stack that marketers, and now agents, build on. This is Part 1 of a two-part series. Part 1: the modeling steps, from raw data to omnichannel activation. Part 2: mapping B2C and B2B datasets, attributes and use cases onto the model. CDP data modeling: What stays the same, and what changes An Agentic CDP needs everything a traditional CDP needs: the right sources, clean data, one identity per customer and golden profiles marketers trust. If you've built a CDP before, that work carries over. If you haven't, it's the place to start. What changes is who does the work and how fast the data has to be right. Agents take on more of the work, such as matching records and drafting audiences, while people choose the sources, review the matches and approve what goes out. And because an agent decides for one person in seconds, a gap in the data turns into a bad decision just as fast. What changes Campaign era Agentic era What it means for your data model

Unit of work A segment, refreshed on a schedule A decision for one person, on demand Each attribute resolves to one trustworthy value per person

Identity Matched nightly inside a tool Owned, explainable and reversible An identity graph you can audit, with a persistent ID

Context A profile snapshot Deep history plus what's happening now Batch and event data keyed to the same ID

Guardrails A human reviews the list Rules people set and agents check before each action Consent, suppression and business definitions stored as data

Measurement A report after the campaign Teams and agents adjust daily from measured results Engagement and outcomes land back in the lakehouse, with holdouts

Databricks built  CustomerLake around the same idea. Data teams can define trusted datasets and models once through Databricks and Unity Catalog. Marketers can then use purpose-built interfaces to ask questions, build segments, and activate audiences faster without working around IT or exporting data into unmanaged tools. The architecture: six steps from raw data to every channel Here's the flow we recommend. It's a medallion architecture with one important rule: identity resolution runs after silver, and the canonical ID it creates becomes the join key for gold. Land raw data in bronze. Agree with your marketing team on the sources each use case needs, then connect them: apps and databases with  Lakeflow Connect , event streams with  Zerobus Ingest , and partner tables read in place with  OpenSharing . People own this step: someone has to choose each source and authorize each connection. Keep bronze raw and append-only, so you can replay history. Clean in silver. Normalize emails, phones and addresses, put timestamps in UTC, put events on one schema and remove duplicates. Leave identity matching for the next step. Resolve identity after silver, in one place, and rerun it as new records arrive. The result is one canonical ID ( canonical_id ) per person and a crosswalk from every source ID. Agents can do the matching, and people review it. Build the gold layer on the canonical ID: a customer table, 1:1 attribute tables and 1:many behavior tables. Add derived attributes and ML. Compute derived attributes and score models such as propensity and next best action on gold, then write the results back as 1:1 attribute tables on a schedule. Activate across channels, and close the loop. Build audiences on gold-layer data and sync them to the channels you use. CustomerLake Campaign Agents helps marketers build audiences in natural language, powered by Genie, or in the purpose-built UI. Land the responses and engagement metrics back in bronze as new data.

You build the layers with  Spark Declarative Pipelines , keep them on schedule with  Lakeflow Jobs and govern every layer in  Unity Catalog . Figure 2. One governed path from raw data to connected channels, keyed by one canonical ID. Own your identity graph Brands have asked for years why they can't own their identity graph and run deterministic matching on their own data. The usual answer was upkeep: the rules, reruns and reviews take people and time. With identity resolution running next to the data, owning the graph becomes practical, and in our experience it's the most important table you'll build. Figure 3. Four source records resolve to one person. The id_graph keeps the rule and confidence behind each link. Run deterministic rules first (exact email, exact phone, a partner ID that maps to your customer ID), then score the gaps with probabilistic matching. Then cluster the matches and mint, or keep, a persistent ID. Keep the ID persistent. Don't derive it from one mutable source key, and record merges and splits so...

Excerpt shown — open the source for the full document.

Notability

notability 5.0/10

Substantive Databricks post on data modeling for agentic CDP.