cd /news/ai-agents/data-modeling-best-practices-for-an-… · home › topics › ai-agents › article
[ARTICLE · art-175673] src=databricks.com ↗ pub= topic=ai-agents verified=true sentiment=· neutral

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

Databricks published Part 1 of a two-part series on data modeling for an Agentic CDP, arguing that identity resolution should run after the silver layer and produce a canonical ID that becomes the join key for gold. The post recommends building layers with Spark Declarative Pipelines, scheduling them with Lakeflow Jobs and governing them in Unity Catalog, and ties the approach to Databricks' CustomerLake product. Databricks says owning the identity graph is now practical because agents can do record matching while people review matches and approve activations.

recommendation

Place identity resolution after silver and key all gold-layer batch and event data to its canonical ID so agents resolve each attribute to one trustworthy value per person.

more in playbook: Designing agent systems
by read7 min views4 publishedNov 24, 2026
Data Modeling Best Practices for an Agentic CDP, Part 1: The Data Foundation
Image: Databricks Blog

The modeling steps every CDP needs, and what changes when agents use the data

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.

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.

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.

canonical_id) per person and a crosswalk from every source ID. Agents can do the matching, and people review it. 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.

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.

You can build this with SQL rules plus an open-source matcher such as Splink or Zingg. Or use CustomerLake: Profile Agents handle the heavy lifting of matching and golden-record survivorship. The approach is called Agentic Identity Resolution, which combines deterministic, probabilistic, and LLM-based matching to connect fragmented records. Manual data steward overrides allow teams to apply human judgment where needed.

Figure 4. Use attribute columns directly; aggregate or filter behavior tables first.

Keep the full consent history (one row per person, channel, purpose, source and time) and the suppressions, such as unsubscribes and bounces, in silver. Derive the 1:1 consent table from them, so audiences and agents check one place before they send.

Flag each gold table so campaign builders know how fresh it is:

Flag What it means Examples Good for
Batch Refreshed on a schedule customer, attribute tables Scheduled campaigns
Event Updated incrementally as events arrive, one row per event with a timestamp Web and app events, cart, transactions In-session decisions, filters and triggers

Build event tables as streaming tables in Spark Declarative Pipelines and record the flag as a Unity Catalog tag. Streaming tables can update on a schedule or continuously; for triggers like a cart reminder, run their pipelines in continuous mode, which "keeps tables fresh as new data arrives." Behavior that arrives only on a schedule, such as nightly store sales, stays Batch until you stream it. If the events carry the canonical ID, adding triggers later shouldn't need a remodel.

Two more habits help: compute time windows against a declared as-of date, so a rerun gives the same answer, and keep one governed copy, giving each activation tool only the tables it needs.

With the model in place, you define an audience or a decision once, on governed gold tables, and send it to the channels your customers use.

Figure 5. Decide once on governed data, activate across channels, and land responses back as data.

CustomerLake enables direct syncing of audiences and signals to martech, adtech and CX channels directly with native Reverse ETL connectors, without custom pipelines or additional activation layers.

If you can say yes to most of these, your foundation is ready for agents: id_graph. The foundation is in place. In Part 2, we put it to work:

We'll come back to the jacket use case in the beginning, and show which datasets answer each of the six questions.

1. What is the best data model for an Agentic CDP?

A medallion architecture where identity resolution runs after silver and its canonical ID becomes the join key for gold. The gold layer has three kinds of tables: a customer table with every activation identifier, 1:1 attribute tables for model scores, consent and derived attributes, and 1:many behavior tables, such as orders and events, at event grain.

2. Where should identity resolution run in a CDP data pipeline?

Identity resolution should run in one place, after data is cleaned in silver and before the gold layer is built. Running it on normalized emails, phones and addresses gives more accurate matches. It should rerun as new records arrive and publish a persistent canonical_id plus an auditable identity graph that records the rule and confidence behind each link.

3. Why should brands own their identity graph?

An owned identity graph is explainable, auditable and reversible, and agents need that to make decisions for one person safely. Brands can run deterministic rules first, score the gaps with probabilistic matching, and record merges and splits so downstream systems can follow. With identity resolution running next to the data, keeping the graph up to date is now practical.

4. What is the difference between attribute tables and behavior tables in a CDP?

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, such as "orders in the last 30 days."

5. How do you prepare a CDP data model for real-time, trigger-based campaigns?

Flag each gold table as batch or event, and build event tables as streaming tables keyed to the canonical ID. For triggers like cart recovery, run those pipelines in continuous mode. If events already carry the canonical ID, you can add triggers later without remodeling. Landing responses back in the lakehouse then closes the measurement loop.

Subscribe to our blog and get the latest posts delivered to your inbox.

── more in #ai-agents 4 stories · sorted by recency
── more on @databricks 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/data-modeling-best-p…] indexed:0 read:7min 2026-11-24 · —