AI Visual Guide · Medallion series, part 3
How Silver becomes Gold on Snowflake with Cortex AI
A visual use case for a certified semantic layer: Data Vault 2.0 to a star schema, tested with dbt, so Power BI dashboards and Cortex AI agents give the same answer.

The use case
When the dashboard and the AI agent disagree
An executive asks an AI assistant for written premium in Texas last quarter and gets a different number than the Power BI dashboard shows. Trust in both disappears. The cause is almost always the same: each reader calculates the metric its own way, from different tables.
This guide shows the fix. Silver data modeled as Data Vault 2.0 hubs, links and satellites is transformed with dbt on Snowflake into a Gold star schema with conformed dimensions. Then one certified semantic layer defines every metric once, for people and for AI agents.
The process
Part 1: model Silver into Gold
- Silver raw vault: Data Vault 2.0 hubs, links and satellites for customer, policy and product, insert-only with full history.
- dbt on Snowflake: staging, intermediate, dimension and fact models, with tests and docs run in CI. All 48 dbt tests must pass.
- Gold sales mart: a star schema with a premium fact table and conformed customer, policy, product and date dimensions, including SCD Type 2 history.
Part 2: one semantic layer, two readers
A Snowflake semantic view holds one certified definition for each metric, such as written premium, active policies, loss ratio and retention rate, owned by Finance. A Power BI dashboard for people and a Cortex Agent for AI both read from it, so both return $4.2M in Texas for Q3.
Agentic AI
Four AI Agents on the path to Gold
Modeling agent
Uses AI_COMPLETE and dbt to draft the models that turn hubs, links and satellites into facts and dimensions. A star schema in days.
Testing agent
Writes unique, not-null and relationship tests for every key with AI_COMPLETE and DMFs, and explains each failure.
Semantic model agent
Drafts metric definitions, synonyms and descriptions in Snowflake semantic views for data owners to certify.
Cortex Analyst
Turns a business question into SQL on the semantic view, never on raw tables, so the agent gives the same answer as BI.
Data governance
Define it once, and every reader agrees
AI Agents never query raw tables. Metrics, masking and access rules live in one certified semantic layer, owned by the business. That single rule is what makes conversational analytics and Agentic AI trustworthy enough for executives and regulators.
Business value
Why it matters to the business
- One version of the truth across dashboards, AI assistants and LLM applications.
- Faster delivery, as AI Agents draft dbt models, tests and semantic definitions for people to approve.
- Fewer reconciliation meetings, because every metric has one owner and one definition.
- Governed self-service: anyone can ask a question in plain English and get a certified answer.
Questions
Frequently asked questions
What is a semantic layer?
A semantic layer is a shared set of business definitions for metrics and dimensions that sits between data tables and the tools that read them, so BI dashboards and AI agents calculate the same way.
Why use Data Vault 2.0 in Silver and a star schema in Gold?
Data Vault 2.0 keeps full, auditable history and absorbs source changes easily. A star schema is simple and fast for analytics, which makes it the right shape for Gold.
How does Cortex Analyst use a semantic view?
Cortex Analyst translates a natural-language question into SQL against the Snowflake semantic view, using the certified metric definitions instead of raw tables.
Authorship
Original work by Craig Brown, PhD
This animation and guide were created by Craig Brown, PhD, known on social media as Dr Craig. The concept, architecture, AI agent design and written use case are his original work, first published on his LinkedIn and X channels.
You are welcome to share this guide for learning and discussion, with credit. Please keep the “Dr Craig” label on the image and credit it as: Source: Craig Brown, PhD (Dr Craig), craigbrownphd.com, with a link back to this page. For commercial use, republishing or brand partnerships, please contact Craig on LinkedIn.
© 2026 Craig Brown, PhD. All rights reserved.
Get the next guide first
New AI visual guides are posted on LinkedIn and X before they land here.
