Himanshu Gaurav.nb
ENTERPRISE AI / Towards Data Experience

How do I build a data product strategy with Genie Agents for different business domains? Data Mesh on Databricks, Part 2

A step-by-step guide to Data Mesh on Databricks: domain workspaces (hub-and-spoke or harmonized), Gold data products, Marketplace publishing, and one Genie Agent per domain, found through Genie One. Retail examples, limits and docs.

Originally published on Medium ↗ on 2025-09-15. Updated on 2026-12-02 to match the current Medium edition.

Summary. A data product strategy with Genie Agents has four layers. Domains own their data in their own Databricks workspaces or catalogs, arranged either hub-and-spoke or harmonized. Each domain refines raw data through a Medallion pipeline into Gold data products governed by Unity Catalog. Those products are published for discovery through Unity Catalog, Delta Sharing and Databricks Marketplace private exchanges. Finally, each domain builds one Genie Agent on its own Gold products, scoped to one topic and audience, and business users reach every domain’s agent through Genie One. This article shows how to do each layer on Databricks, with retail examples, the limits that shape the design, and the docs to go deeper. Part 1 covered what Data Mesh and data products are and why ownership matters more than tooling.

Knowing what Data Mesh is covers half the problem. The question that follows in every organization I have worked with is the same: how do you actually enable Data Mesh and data products at scale, in a way that creates trusted assets and puts an AI coworker on top of them?

How does a lakehouse fit into a broader data mesh strategy?

Short answer: A lakehouse is the platform; Data Mesh is the operating model that runs on it. The lakehouse gives every domain the same storage format, compute and governance layer, so domains can own their data without each building its own stack. Data Mesh decides who owns which data, how it is published as a product, and which rules are global versus local.

The four Data Mesh principles map directly onto the Databricks lakehouse:

  • Domain ownership: each domain gets its own workspace or Unity Catalog catalog on the shared lakehouse.
  • Data as a product: Gold Delta tables and metric views with named owners, descriptions, quality checks and lineage.
  • Self-serve data platform: the lakehouse itself, with serverless compute, Lakeflow pipelines, AI/BI dashboards and Genie Agents available to every domain without a ticket.
  • Federated computational governance: Unity Catalog applies one set of access policies, tags and audit logs across every domain, while each domain manages its own grants.

The mistake I see most often is treating the two as alternatives. A mesh without a shared platform turns into many incompatible stacks. A lakehouse without mesh ownership turns into a central team bottleneck with a nicer storage layer.

How do I implement Data Mesh on Databricks with domain workspaces: hub-and-spoke or harmonized?

Short answer: Give each domain its own workspace or Unity Catalog catalog. Choose hub-and-spoke if you want central certification of shared data products, or harmonized if you want domains to publish and consume peer to peer.

Start by separating ownership by domain. Each business domain, for a retailer that means Sales, Supply Chain, Marketing and Loyalty, gets its own Databricks workspace or, at minimum, its own Unity Catalog catalog.

  • Domains own their workspaces. Each team manages its own sources, pipelines, notebooks, models, datasets and agents without a central bottleneck.
  • A central hub ties it together. Governance, security and sharing policies are standardized from the hub so compliance holds while domains move fast.
  • Spokes are domain workspaces. Each connects to the hub, giving autonomy with accountability.

There are two proven shapes.

Figure 1: The hub-and-spoke Data Mesh model. Domains publish data products to a central, governed hub.
Figure 1: The hub-and-spoke Data Mesh model. Domains publish data products to a central, governed hub.

Hub-and-spoke. The central hub is the trusted backbone where the most important shared data is registered and managed. Each spoke creates data products for its own needs and publishes them to the hub for broader access. The hub provides self-service publishing, oversees governance and compliance, and offers data history and privacy management. Certified “golden” data products receive governance approval before publishing; others can be shared within the domain without that oversight. Databricks Marketplace extends this model by letting domains discover and consume ready-made data products, models and notebooks, all governed by Unity Catalog.

Figure 2: The harmonized Data Mesh model. Domains publish and consume peer to peer on one governed platform.
Figure 2: The harmonized Data Mesh model. Domains publish and consume peer to peer on one governed platform.

Harmonized. Each domain creates, publishes and manages its own data products on one unified platform. Unity Catalog powers discovery across departments, so teams find and share data peer to peer. Standardized infrastructure, meaning security, compliance and policy enforcement, runs consistently everywhere through platform services.

Figure 3: Key differences between hub-and-spoke and harmonized models.
Figure 3: Key differences between hub-and-spoke and harmonized models.

You can also limit the number of workspaces and still get autonomy at the catalog level. The decision usually comes down to how much central certification the organization wants versus how much peer-to-peer speed.

Docs: Unity Catalog best practices.

How do I turn raw domain data into Gold data products with the Medallion architecture?

Short answer: Land raw data in Bronze, clean and conform it in Silver, and publish business-ready tables with their KPIs in Gold. The Gold tables are the data products.

Once domains have their own workspaces, the Medallion architecture becomes the engine for creating data products.

  1. Bronze. Raw POS transactions, clickstream, supplier feeds, loaded as they arrive.
  2. Silver. Standardized, cleaned, conformed datasets.
  3. Gold. Polished data products such as Daily Sales Transactions or Customer 360 Profiles, at both the lowest grain and the aggregates the business uses, with KPIs attached.
Figure 4: Data product creation along the Medallion architecture, from Bronze to Gold.
Figure 4: Data product creation along the Medallion architecture, from Bronze to Gold.

In retail, the Supply Chain domain might produce an Inventory by Region product at Gold, while Sales publishes Daily Sales Transactions with its KPIs.

Figure 5: The features that make a data product usable.
Figure 5: The features that make a data product usable.

Every data product should be discoverable, addressable, trustworthy, secure, interoperable and consumable. On Databricks that comes from combining Unity Catalog with Delta tables, metric views, lineage, data quality monitoring and tags, with Unity Catalog at the core.

How do I publish data products so other domains and partners can find them?

Short answer: Use three routes: Unity Catalog discovery for internal users, Delta Sharing across workspaces and to partners, and Databricks Marketplace private exchanges for curated listings.

A data product nobody can find is a table. Publishing turns it into a product. There are three routes, and most organizations use all three.

  1. Unity Catalog discovery. Catalog Explorer lets any permitted user search data, examine samples, check lineage and quality, and see usage and owners. This serves technical personas and is the baseline for self-serve analytics.
Figure 6: Searching for data products in Catalog Explorer.
Figure 6: Searching for data products in Catalog Explorer.
  1. Delta Sharing. Share Gold products internally across workspaces or externally to partners, for example a supplier seeing inventory forecasts, with governance controls intact and no data copies.
  2. Databricks Marketplace private exchanges. A private exchange makes certain data products discoverable only to a specified group of consumers. Three constructs work together:
  • Provider: the organization or domain offering data and AI assets.
  • Exchange: the sharing context, a public or private collection of listings visible to certain users.
  • Listing: a specific data or AI asset offered by a provider.
Figure 7: One exchange per domain, each holding that domain’s listings.
Figure 7: One exchange per domain, each holding that domain’s listings.

Create a provider and exchange per domain, then one listing per data product or package. Domains publish with data contracts, quality guarantees and metadata. Other teams subscribe with confidence that the product is governed and current. Think of it as an enterprise app store for data: Marketing subscribes to Sales Transactions, Supply Chain pulls in Campaign Effectiveness.

Figure 8: A data product listing in Databricks Marketplace.
Figure 8: A data product listing in Databricks Marketplace.

Docs: Databricks Marketplace private exchanges.

How do retailers share sales data with their CPG suppliers without giving away too much?

Share a view, not a table, and let the recipient’s identity decide what the view returns. Delta Sharing makes this possible without copying data or building a supplier portal.

  1. Create one share for supplier collaboration and one recipient per CPG supplier.
  2. Set recipient properties such as supplier_id on each recipient.
  3. Build a view over the Gold sales data product that filters with current_recipient('supplier_id'), so each supplier sees only rows for its own brands. The same function inside a CASE expression redacts columns, such as store-level margin, for suppliers on a lower tier.
  4. Add the view to the share and grant it to the recipients. Access can be revoked at any time, and every query is audited.
  5. Use Databricks Clean Rooms for joint analysis neither side should see raw, such as matching a supplier’s promotion calendar against loyalty data. Each party’s data stays private, and only notebooks approved by the collaborators run against it.

One detail that catches teams out: Unity Catalog row filters and column masks do not protect data shared to external recipients in the same way, so for shares the filtering belongs in the view. A supplier on Databricks can then mount the share as a catalog and build its own Genie Agent on exactly the slice it is allowed to see.

Docs: current_recipient function and Databricks Clean Rooms.

How do I build a data product strategy with Genie Agents for different business domains?

Short answer: Give each business domain one Genie Agent, built only on that domain’s Gold data products. The domain’s subject matter expert owns the agent’s knowledge store, every KPI gets a benchmark, and the agent is published like a product so business users reach it through Genie One.

With data products in place, each domain builds an AI data product on top: a Genie Agent.

A Genie Agent is a domain-specific natural-language chat interface in Databricks where users ask questions of their data and get back SQL, result tables and visualizations. Genie Agents were formerly called Genie spaces. Each agent carries a knowledge store, a collection of curated semantic definitions, which is the domain’s business context made explicit. Agents are shareable, discoverable, governed and maintained over time, which are the hallmarks of a data product.

Figure 9: AI data products for retail. One Genie Agent per domain, each built on that domain’s Gold products
Figure 9: AI data products for retail. One Genie Agent per domain, each built on that domain’s Gold products

The strategy, as I run it with retail customers:

  1. One agent per domain, one topic per agent. Databricks guidance is that an agent should answer questions for a particular topic and audience, not general questions across domains. Aim for five or fewer tables; the hard ceiling is 50 tables, views or metric views.
  2. Build only on Gold. The agent’s sources are the domain’s published data products, so the agent inherits their quality guarantees and lineage.
  3. The domain owns the knowledge store. The domain’s SME writes the instructions, the KPI definitions as SQL expressions, the example queries and the joins. The central team does not.
  4. Benchmark every KPI. Each KPI gets a benchmark question with a SQL answer before business users arrive.
  5. Publish the agent like a product. Share it to the domain’s groups, register it in a Discover domain, and put it on the same release cadence as the data products beneath it.

For a retailer that yields:

  • Sales Genie Agent answers sales questions by store, region and category.
  • Supply Chain Genie Agent flags stock-out risk and inventory position.
  • Marketing Genie Agent measures campaign lift.
  • Loyalty Genie Agent surfaces churn patterns.

Each domain maintains and tunes its own agent, the same way it maintains its own Gold tables.

For a step-by-step guide to how a domain’s subject matter expert fills that knowledge store with instructions, metrics, example queries and benchmarks, see my companion article: How do subject matter experts give Databricks Genie their business context without writing code?

Docs: Genie Agents and Curate an effective Genie Agent.

How do I configure a Genie Agent to use specific metrics and domains?

Scope the sources, then make the metrics explicit.

  1. Attach only the domain’s Gold products. Genie does not query tables or functions that are not attached to the agent, even if instructions mention them. That is the enforcement mechanism for domain boundaries.
  2. Prefer metric views over raw tables for KPIs. A Unity Catalog metric view defines measures and dimensions once; both AI/BI dashboards and the Genie Agent read the same definition, which ends the “two numbers for one KPI” problem.
  3. Add SQL expressions for domain-only metrics. Measures, Filters and Fields with a Name, Code, Synonyms and Instructions, for logic that lives inside one domain.
  4. Hide columns the audience should not see. Hide confusing or sensitive columns in the agent’s source configuration.
  5. Write example queries for the ten most common questions. Pair each with its question title and usage guidance.

Limits that shape the design: 100 instructions and 200 knowledge store snippets per agent, where joins, SQL expressions and table descriptions all count toward the 200.

How do I keep metrics consistent across dashboards and AI tools?

Define each metric once, in Unity Catalog, and make every consumer read that one definition.

  1. Put shared KPIs in a Unity Catalog metric view: measures, dimensions and descriptions in one governed object.
  2. Point AI/BI dashboards and the domain’s Genie Agent at the same metric view instead of at raw tables.
  3. Add a benchmark question per KPI to the Genie Agent, with a SQL answer that queries the metric view, so drift shows up in Evaluations before a user notices.
  4. Change the definition in one place. When Finance redefines net sales, the dashboard tile and the Genie answer change together.

In retail this ends the Monday meeting where merchandising and finance arrive with two different numbers for the same week.

How can multiple AI agents share the same business context?

Keep the context in the governed layer underneath the agents, not inside any one of them.

  • Unity Catalog holds the shared vocabulary: table and column descriptions, tags and metric views, inherited by every Genie Agent that attaches them.
  • Each domain’s Genie Agent adds only what is local: its own instructions, example queries and joins.
  • Genie Ontology is the enterprise context layer Databricks introduced alongside Genie One and Genie Agents, so business terms are interpreted the same way across agents. See Introducing Genie One, Genie Agents, and Genie Ontology.
  • External agents reach the same context through MCP. Databricks managed MCP servers expose Genie Agents as tools, so an assistant such as Claude or ChatGPT asks the governed agent instead of guessing at your schema.

The test is simple: if the Sales and Supply Chain agents answer “what was net sales last week” with the same number and the same definition, the context is shared. If they do not, it lives in the wrong layer.

How do I set up role-based access so different departments use their own Genie Agents?

Short answer: Share each department’s Genie Agent with that department’s group, keep agents in department folders, and let Unity Catalog row filters and column masks control the data each user sees.

Permissions on a Genie Agent are the same workspace ACLs used everywhere else on Databricks, which is what makes domain ownership enforceable.

  1. Share each agent to the department’s group at CAN VIEW or CAN RUN for consumers. The creator automatically holds CAN MANAGE. Authors who tune the knowledge store need CAN EDIT. You can share with specific users or groups, or with all account users.
  2. Keep agents in domain folders. Agents inherit permissions from their enclosing folder, so a Finance folder with Finance group access scopes every agent inside it.
  3. Let Unity Catalog do the row-level work. Every Genie query runs as the user, so Unity Catalog privileges, row filters and column masks apply automatically. A Finance analyst asking the Sales agent sees only the rows Unity Catalog allows them to see.
  4. Assign agents to Discover domains. Curators organize tables, dashboards and Genie Agents into business-aligned domains with up to five levels of subdomains. Business users browse by domain and see only assets they are permitted to open.

The Finance example people ask about most: a Finance Genie Agent attached to the finance Gold products and the finance metric view, shared to the Finance group at CAN RUN, sitting in a Finance folder, registered under a Finance domain in Discover. Nothing outside that scope is reachable from the agent, and nothing inside it bypasses Unity Catalog.

Docs: Set up and share a Genie Agent and Domains in Discover.

How do I train Genie Agents on company-specific terminology and domain expertise to improve question understanding?

You do not train the model. You write the domain’s vocabulary into the agent’s knowledge store, which is faster and auditable.

  • General instructions for globally true context: fiscal calendar, what “comparable store” means, default currency.
  • Synonyms on columns and SQL expressions so “banner”, “chain” and “format” all resolve to the right field.
  • Entity matching for a column’s distinct values, so “PNW” resolves to the Pacific Northwest region code.
  • Example queries that show the SQL pattern behind the questions the domain actually asks.
  • Joins with relationship types, Many to one, One to many or One to one, so the agent does not inflate totals.

Then close the loop. Business users answer “Is this correct?” on every response. Authors review in the Monitor tab, convert fixes with Add as instruction, and let Genie Code’s Analyze Agent Usage propose context changes from up to six months of conversations. The domain’s expertise accumulates in the agent instead of in inboxes.

How do business users reach every domain’s agent? Genie One as the front door

Short answer: Business users go to Genie One. Its search shows the Genie Agents shared with them, and if they type a question without picking one, Genie One finds an agent that can answer it.

Figure 10: Cross-domain reasoning. A question about a sales dip draws on Sales, Supply Chain and Marketing agents.
Figure 10: Cross-domain reasoning. A question about a sales dip draws on Sales, Supply Chain and Marketing agents.

A Data Mesh has many agents. Business users need one place to go. That place is Genie One, the simplified Databricks interface for business users and a single entry point for interacting with data and AI. It was previously called Databricks One.

Genie One’s search bar shows the Genie Agents shared with the user, and the user can pick one. If they type a question without picking, Genie One tries to find a Genie Agent that can answer it. Discover, inside Genie One, lets users browse agents and dashboards by domain.

When a merchandising leader asks “Why did Southwest sales dip last week?”, the pieces of the answer live in three domains:

  • Sales agent, on transaction data: “Sales dropped 10% in Phoenix.”
  • Supply Chain agent, on inventory data: “Two key items were out of stock.”
  • Marketing agent, on campaign data: “The planned campaign was delayed.”

Two patterns bring those together. For questions that stay inside one domain but need investigation, Agent mode in that domain’s Genie Agent creates a research plan, runs multiple SQL queries and returns a report with citations. For questions that span domains, the supervisor pattern routes sub-questions to each domain agent and synthesizes the responses. Databricks’ earlier Multi-Agent Supervisor in Agent Bricks implemented that pattern and is now listed as a legacy offering, so for new builds I treat Genie One as the front door and keep cross-domain synthesis in a custom agent only where a single agent cannot hold the scope.

Figure 11: The Genie One interface, where business users see only the agents, dashboards and domains relevant to them.
Figure 11: The Genie One interface, where business users see only the agents, dashboards and domains relevant to them.

Genie One gives business personas a clutter-free experience: AI/BI dashboards, Genie Agents and documents, with the pipelines and engineering out of sight. Business users focus on insight and decisions while the technical complexity stays under the hood.

Docs: Genie One and Find assets in Genie One.

Wrapping up

Enabling Data Mesh and data products on Databricks is a way to align ownership, accountability and collaboration across people and process, not just a technical exercise.

  • Hub-and-spoke or harmonized gives each domain its own workspace under central governance.
  • The Medallion architecture shapes raw data into trusted Gold data products.
  • Unity Catalog, Delta Sharing and Marketplace private exchanges make those products easy to find and consume.
  • One Genie Agent per domain turns each product into an AI coworker, and Genie One puts every agent behind one front door.

For retailers that means answers are no longer trapped in silos or delayed by bottlenecks. Insights become connected and trustworthy, at the speed the business needs.

Key takeaways

  • Separate ownership by domain first; pick hub-and-spoke for central certification or harmonized for peer-to-peer speed.
  • Build Genie Agents only on Gold data products, one topic and audience per agent, five or fewer tables where possible.
  • Enforce domain boundaries with attached sources, folder-inherited permissions and Unity Catalog row filters.
  • Put domain vocabulary in the knowledge store: instructions, synonyms, entity matching, example queries, joins.
  • Genie One is the front door; Discover domains make the mesh browsable.

FAQ

How many Genie Agents should a domain have?

Start with one per topic and audience. A domain with distinct audiences, say merchants and store operations, may need two.

Can one Genie Agent query another domain’s tables?

Only if those tables are attached to it and Unity Catalog grants the user access. Attaching another domain’s published Gold product is the governed way to do it.

Should KPIs live in metric views or SQL expressions?

Metric views when the KPI is shared across dashboards and agents. SQL expressions when it only matters inside one agent.

What replaced the Multi-Agent Supervisor for cross-domain questions?

Databricks lists the Supervisor Agent as legacy. Genie One routes users to the right agent, Agent mode handles multi-step investigation within an agent, and custom agents cover true cross-domain synthesis.

Does a business user need a Databricks license to use a domain’s Genie Agent?

They need the Consumer access or Databricks SQL access entitlement and at least CAN VIEW on the agent.

References: datamesh-architecture.com, Databricks Lakehouse and Data Mesh, Part 1, Building a Data Mesh Based on the Databricks Lakehouse, Part 2.

Thanks for reading. Let’s connect on LinkedIn.

More articles: Towards Data Experience

Author: Himanshu Gaurav, himanshugaurav.com

Note: all opinions expressed here are my own and do not reflect the views of any organization I am affiliated with.