Customer experience analytics is crucial for businesses to understand their customers and improve their services. Through comprehensive data analysis and AI-powered insights, businesses can uncover patterns in customer feedback, identify pain points, and generate actionable recommendations.
In this Quickstart, we will build a comprehensive fan experience analytics platform for a basketball team called "Snow Bear". This demonstrates how to use Snowflake Cortex AI functions to analyze fan survey data, extract sentiment insights, generate business recommendations, and create advanced analytics dashboards.
This Quickstart showcases the complete Snow Bear analytics platform with:
In this step, you'll create the Snowflake database objects and upload all necessary files for the Snow Bear analytics platform.
To use Workspaces:
Projects
, then Workspaces
in the left navigation+ Add new
to create a new WorkspaceSQL File
to create a new SQL fileTo use Worksheets:
Projects
, then Worksheets
in the left navigation+
in the top-right corner to open a new WorksheetThe setup script creates:
SNOW_BEAR_DB
with BRONZE_LAYER
, GOLD_LAYER
, and ANALYTICS
schemasSNOW_BEAR_DATA_SCIENTIST
with all necessary permissionsSNOW_BEAR_WH
for compute resourcesSNOW_BEAR_STAGE
(in ANALYTICS) for app/data files and SEMANTIC_MODELS
(in GOLD_LAYER) for AI assistantCSV_FORMAT
for data loadingSNOWFLAKE.CORTEX_USER
role for Cortex functionsDownload these 5 files from the GitHub repository:
File | Purpose | Download Link |
Data File | Basketball fan survey data | |
Streamlit App | Interactive analytics dashboard | |
Environment File | Streamlit dependencies | |
Semantic Model | AI assistant semantic model | |
Notebook | Setup and data processing notebook |
SNOW_BEAR_DATA_SCIENTIST
Catalog
→ Database Explorer
→ SNOW_BEAR_DB
Upload files to two stages in different schemas:
ANALYTICS
→ Stages
→ SNOW_BEAR_STAGE
:ANALYTICS
→ Stages
SNOW_BEAR_STAGE
Enable Directory Table
basketball_fan_survey_data.csv.gz
snow_bear.py
environment.yml
GOLD_LAYER
→ Stages
→ SEMANTIC_MODELS
:GOLD_LAYER
→ Stages
SEMANTIC_MODELS
Enable Directory Table
snow_bear_fan_360.yaml
Projects
→ Notebooks
in Snowsight+ Notebook
and select Import .ipynb file
snow_bear_complete_setup.ipynb
from your downloadsSNOW_BEAR_DATA_SCIENTIST
SNOW_BEAR_DB
ANALYTICS
SNOW_BEAR_WH
SNOW_BEAR_WH
Create
to import the notebookThe notebook contains all the SQL scripts and processing logic needed for the complete analytics platform.
Projects
→ Notebooks
in SnowsightSNOW_BEAR_COMPLETE_SETUP
Notebook to open itRun all
to execute all cells in the notebook at onceProjects
→ Streamlit
in SnowsightSnow Bear Fan Analytics
Your platform includes executive dashboards, sentiment analysis, theme analysis, fan segmentation, AI recommendations, interactive search, and AI assistant capabilities.
When you're ready to remove all the resources created during this quickstart:
Congratulations! You've successfully built the complete Snow Bear Fan Experience Analytics platform using Snowflake Cortex AI!