Case study
How a Fast-Casual Restaurant Chain Built an AI-Powered Sales Assistant in Eight Weeks
A fast-casual restaurant chain needed to make its 200+ governed KPIs accessible to everyone without rebuilding their logic from scratch. By bridging the gap between their existing Power BI logic and Snowflake, they launched an AI-powered sales assistant that’s as accurate as it is fast. The entire semantic layer was ready to go in just eight weeks.
faster semantic model delivery vs. a manual approach, with additional scope shipped inside the original PoC window
governed KPIs queryable in plain English, validated against production Power BI definitions
proof of concept to production
At a glance
| Industry | Fast-casual restaurant |
| Scale | Thousands of locations |
| Challenge | Translating a mature BI semantic model to power an AI-powered sales assistant |
| Technology | Snowflake Cortex Analyst, Cortex Agents, Cortex Code, Semantic Views |
| Timeline | Eight-week proof of concept |
| Result | 2–3× faster semantic model delivery; additional scope shipped within original window |
| Phdata Service | AI & Machine Learning, Generative AI |
The problem
How to translate Power BI logic into Snowflake-native semantic layers
Enterprises with mature BI semantic models face a specific translation problem when building an AI-powered sales assistant. The business logic in those models represents years of alignment between finance, sales, and data teams on definitions for same-store sales, traffic, channel mix, and promotion performance. That logic cannot be rebuilt from scratch for a new AI layer without reopening every definitional debate.
This client had a Power BI semantic model with 20+ interconnected tables and 200+ measures. The goal was to give sales and finance stakeholders the ability to ask natural-language questions about store performance, regional trends, and campaign results and get trustworthy answers in seconds.
phData needed to translate that model into a Snowflake-native semantic layer that Snowflake Cortex Analyst and Cortex Agents could consume reliably, inside an eight-week proof of concept (POC). Existing export tools could bootstrap portions of the model, but they produced three immediate problems: naming mismatches between Power BI artifacts and Snowflake tables, syntax issues in translated measure definitions, and no clean path for handling edge cases across 200+ measures manually. Time spent chasing schema discrepancies meant less time tuning the assistant and validating it with real users.
Snowflake Cortex Analyst is a Snowflake service that lets users query structured data in natural language by consuming a semantic layer that defines business metrics, table relationships, and calculation logic.
A Snowflake Semantic View is a metadata layer that defines business entities, measures, and relationships in Snowflake so AI services can generate accurate SQL against governed definitions.
Snowflake CoCo is an AI-assisted development environment inside Snowflake that helps engineers write, debug, and validate SQL and semantic model definitions using natural language against live Snowflake metadata.
What phData did
Three decisions shaped the delivery.
01
Kept Power BI as the source of truth for business logic
The team translated the existing model into Snowflake Semantic Views rather than rebuilding measure definitions from scratch. That preserved years of stakeholder alignment on KPI definitions and kept the assistant’s outputs consistent with what finance teams already trusted.
02
Used CoCo (Cortex Code) to propose, engineers to review and harden
Snowflake CoCo generated candidate SQL definitions for all 200+ measures. Engineers reviewed each one for edge cases, Snowflake-specific behavior, and business logic accuracy before it entered the semantic layer. That pattern kept quality high without requiring manual translation of every definition from scratch.
03
Pre-aggregated for conversational query patterns
Restaurant data queries span large time ranges and dimensional cuts: regional comp trends across a promotional period, broken out by channel and store group. The team identified and built supporting aggregation views for daily revenue and traffic summaries before the assistant went live, keeping response times predictable under real usage.
The results
Launching a production ready AI sales assistant in 8 weeks
phData delivered a production-ready Snowflake Semantic View and a working AI-powered sales assistant within the eight-week window, shipping more capability than the original scope included. CoCo produced an estimated 2-3× speedup in semantic model development vs. a manual approach. That time came back as coverage: additional measures, broader question patterns, and performance-optimized supporting views that would otherwise have been cut.
Sales and finance users can now ask questions like:
Show last quarter’s comparable sales by region, and highlight any stores more than 5% off plan.
How did digital pickup orders perform during our last national promotion compared to in-restaurant?
Every answer traces back to the same measure definitions the finance team relies on in Power BI. The numbers match. That traceability is what builds trust with stakeholders who have to stand behind the outputs.
faster semantic model delivery
governed KPIs in the semantic layer
proof of concept to production
Ready to see what a similar engagement could look like for your organization?
Why this matters beyond this project
Enterprises with mature BI semantic models face a choice when building AI-powered analytics: rebuild the logic from scratch or carry it forward. Rebuilding reintroduces the definitional debates that took years to settle, what counts as revenue, how same-store sales is calculated, which transactions belong to a promotional period.
This engagement shows a third path: translate the existing model into a Snowflake-native semantic layer, with AI tools handling the translation work and engineers owning the review. The result is an AI-powered sales assistant that answers questions users trust, because the definitions behind it are the ones they already rely on.
The same pattern applies to any organization moving a governed semantic layer into Snowflake to power Cortex Analyst, Cortex Agents, or other AI applications, regardless of source BI platform.
Frequently asked questions
What is an AI-powered sales assistant on Snowflake?
An AI-powered sales assistant on Snowflake is a conversational analytics tool that lets sales and finance users ask natural-language questions about business performance and receive answers generated from governed, Snowflake-native data definitions. It runs on Snowflake Cortex Analyst and Cortex Agents, consuming a Semantic View that defines the metrics and relationships behind every response.
How long does it take to build an AI-powered sales assistant on Snowflake?
phData delivered a production-ready AI-powered sales assistant on Snowflake, including translation of a Power BI model with 20+ tables and 200+ measures, inside an eight-week proof of concept. Timeline depends on model complexity, documentation quality, and the number of measures requiring custom validation.
Can an AI-powered sales assistant use the same KPI definitions as an existing Power BI model?
Yes. phData’s approach keeps the existing BI model as the source of truth for business logic and translates it into a Snowflake Semantic View rather than rebuilding definitions from scratch. This keeps AI assistant outputs consistent with the dashboards stakeholders already trust.
What Snowflake services power a conversational AI sales assistant?
This project used Snowflake Cortex Analyst for natural-language query against the semantic layer, Cortex Agents for orchestration of multi-step queries, CoCo for AI-assisted semantic model development, and Snowflake Semantic Views as the governed metadata layer defining business metrics and relationships.
How does phData ensure AI-powered sales assistant outputs are accurate?
Accuracy comes from grounding the assistant in a semantic layer that matches the business logic already in production. Every measure in the Snowflake Semantic View was validated against the original Power BI definition before the assistant went live, so the numbers users see match what they already see in their dashboards.
Related case studies
Retail & CPG
Improved Tableau Performance during Data Migration at Restaurant Chain
See how phData optimized Tableau performance during a restaurant chain’s data migration, ensuring faster insights and seamless reporting.
Read more
Retail & CPG
Restaurant Chain Massively Scales Data Platform on AWS
Discover how a leading fast food chain scaled and optimized its AWS data platform from 5 to over 140 data products with phData.
Read more
Retail & CPG
Alteryx Workflows and Power Automate save thousands of hours in a Global Restaurant Chain
Check out how a global restaurant chain saved thousands of hours of work by using Alteryx workflows and Power Automate.
Read more
Get started
Ready to scope your own AI-powered assistant on Snowflake?
Talk to a phData expert about translating your semantic model into a production-ready AI assistant. We’ll help you assess scope, timeline, and the right Snowflake services for your stack.
- Free scoping conversation — no commitment
- Snowflake-certified data and AI engineers
- Proven delivery in 8-week POC windows

