Snowflake World Tour hits your city

See how leading teams deploy agents at scale. Find a stop near you. Register free.

Snowflake for Developers/Guides/Agentic AI for Asset Management using Snowflake Public Data

Agentic AI for Asset Management using Snowflake Public Data

Cortex Analyst
Mats Stellwall, Dureti Shemsi

Overview

This solution builds a complete AI-powered asset management platform inside Snowflake, featuring specialised Cortex Agents that serve different roles across front, middle, and back office functions. It demonstrates how financial firms can transform investment workflows by integrating structured portfolio data with unstructured research documents — all powered by Snowflake CoWork.

The solution creates a fictional firm called Simulated Asset Management (SAM) with:

  • Real securities data from SEC filings via Snowflake Public Data (Free)
  • 11 investment strategies across equity, multi-asset, ESG, and alternatives
  • Synthetic broker research, earnings transcripts, policy documents, and client data
  • 8 specialised Cortex Agents with 36+ runtime skills
  • 3 ML workflow notebooks (market regime, factor models, credit risk)

Prerequisites

  • A Snowflake account with Cortex AI enabled
  • Snowflake Public Data (Free) Marketplace listing installed (auto-installed by setup script)
  • ACCOUNTADMIN role access (for initial setup only — runtime uses a dedicated SAM_DEMO_ROLE)

Architecture

The solution runs entirely within Snowflake using native AI features — no external infrastructure, APIs, or data movement required.

Data Foundation: A dimensional model with 48+ tables — dimensions (securities, issuers, portfolios, benchmarks, clients) and facts (positions, transactions, prices, ESG scores, attribution). Real securities sourced from 14,000+ instruments via Snowflake Public Data.

Document Corpus: Synthetic documents (broker research, press releases, NGO reports, policy documents, regulatory texts) generated via a template hydration engine. Real SEC filings (10-K, 10-Q) and earnings transcripts loaded from the marketplace share.

Cortex Search Services: 16 search services indexing documents by type with filterable attributes (ticker, company, document type, jurisdiction, severity). Enables semantic search across thousands of documents.

Cortex Analyst Semantic Views: 10+ semantic views defining relationships and metrics across portfolio, market, attribution, research, and operational data. Translates natural language into SQL for instant analytical answers.

Cortex Agents: 8 agents with role-specific instructions, tool access, and orchestration skills. Each agent intelligently combines Cortex Analyst, Cortex Search, and stored procedure tools to answer complex multi-source questions.

Snowflake CoWork: The conversational interface where users interact with agents via natural language. Agents orchestrate tools, produce visualisations, and generate PDF reports — all within a chat experience.

ML Workflows: 3 notebook-based ML demonstrations using Snowflake Feature Store, Model Registry, and Cortex ML functions for market regime detection, factor model training, and credit risk scoring.

Agents

AgentRoleKey Capabilities
Portfolio CopilotPortfolio ManagerHoldings analysis, multi-level attribution, stress testing, supply chain exposure, Monte Carlo simulation, portfolio construction and optimisation, historical backtesting, investment memos
Research CopilotResearch AnalystMulti-source synthesis (SEC + transcripts + broker research), investment memo generation, PDF reports
Risk & Compliance CopilotESG / Compliance OfficerControversy monitoring, mandate compliance, concentration limits, engagement tracking, regulatory disclosure
Sales AdvisorClient RelationsQuarterly letters, RFP response preparation, client meeting prep, performance narratives, regulatory disclosures
Operations CopilotMiddle OfficeSettlement monitoring, reconciliation, NAV calculation, corporate actions
Executive CopilotC-SuiteFirm KPIs, client analytics, competitor intelligence, M&A simulation, board briefings
Private Equity CopilotPE Deal TeamDeal pipeline screening, due diligence search, expert network insights, value creation tracking
Private Credit CopilotCredit AnalystCredit portfolio monitoring, covenant tracking, rate sensitivity, deal pipeline, ML credit scoring

ML Notebooks

NotebookTechniqueOutput
Market Regime DetectionXGBoost classification on macro indicatorsRISK_ON / TRANSITIONAL / RISK_OFF regime labels
Factor Model WorkflowMulti-factor model with SHAP explanationsFactor loadings, IC scores, Fama-French decomposition
Credit Risk ScoringGradient boosted PD modelProbability of default scores per borrower

Key Features

Skill-Driven Workflows: 36 runtime skills provide structured multi-step guidance for complex tasks (investment memos, RFP responses, client letters, attribution reports). Skills include verification checkpoints and cross-references.

Multi-Tool Orchestration: A single question can trigger 5+ tools — verify a market event, calculate portfolio exposure, check policy thresholds, search research documents, and generate a committee memo.

Custom Analytical Tools: Agents have access to purpose-built stored procedures that execute complex quantitative workflows:

ToolAgent(s)Capability
Historical Stress BacktestPortfolio CopilotReplay portfolio against historical crises (GFC, COVID, 2022 rates)
Monte Carlo SimulationPortfolio Copilot10,000-path simulation with block bootstrap for VaR and drawdown analysis
Scenario SensitivityPortfolio CopilotWhat-if shock analysis (rate moves, vol spikes, growth shocks)
Counterfactual AttributionPortfolio Copilot"What if we had held different weights?" alternative history analysis
Portfolio OptimizerPortfolio CopilotMax Sharpe, min variance, risk parity, and efficient frontier construction
M&A SimulationExecutive CopilotModel AUM impact, revenue synergies, and integration scenarios
PDF Report GeneratorAll agentsBranded PDF reports with presigned download URLs
Data OriginAll agentsExplain data lineage for any semantic field (source table, transformation, refresh)

Portfolio Construction and Backtesting: The Portfolio Copilot can construct model portfolios, optimise allocations (max Sharpe, min variance, risk parity), run full historical backtests with custom weights, and validate with Monte Carlo simulation — enabling a complete "build, test, validate" workflow in conversation.

Real Data Integration: SEC financials, stock prices, institutional holdings (13F), insider trading, dividends, and economic indicators — all from Snowflake Public Data (Free).

Performance Attribution: Full Brinson-Fachler decomposition (sector, country, industry), factor attribution, currency effects, and linked multi-period analysis.

Proactive Insights: AI-generated morning briefings and signal extraction with urgency scoring — surfaced to agents for context-aware responses.

Setup

Step 1: Create Git Workspace

  1. Navigate to Projects > Workspaces
  2. Click + then From Git repository
  3. Repository URL: https://github.com/Snowflake-Labs/sfguide-agentic-ai-for-asset-management.git
  4. Authentication: Public repository (no auth needed)
  5. Name the workspace (e.g., "SAM Demo")

Step 2: Run Infrastructure Setup (2 minutes)

Open scripts/setup.sql in the workspace and execute it. This creates:

  • SAM_DEMO database with all schemas
  • SAM_DEMO_ROLE with required privileges (including task execution)
  • SAM_DEMO_EXECUTION_WH and SAM_DEMO_CORTEX_WH warehouses
  • Marketplace data share (Snowflake Public Data - Free)
  • Cortex AI enablement and Snowflake CoWork

Step 3: Run Data and AI Build (15-20 minutes)

  1. Open python/workspace_main.py in the workspace
  2. Connect a notebook service when prompted:
    • Python version: 3.11+
    • Compute pool: any available pool
    • Artifact repositories (optional): SNOWFLAKE.SNOWPARK.PYPI_SHARED_REPOSITORY
  3. Open the Terminal and run: pip install -r "$PWD/requirements.txt"
  4. Restart the kernel
  5. Click Run

The build creates all tables, documents, search services, semantic views, agents, skills, tools, signals, and evaluation datasets.

Business Impact

Faster Insights: Multi-dimensional risk assessments completed in minutes instead of days. Event-driven analysis that previously required multiple analysts happens in a single conversation.

Reduced Manual Effort: Eliminates time spent searching across systems, compiling reports, and waiting for data teams. Every question gets an immediate, comprehensive answer.

Better Risk Management: Real-time monitoring of concentration limits, ESG controversies, and mandate breaches with automated policy checking.

Enhanced Client Service: Instant access to performance data, philosophy documents, and regulatory disclosures for quarterly presentations, RFP responses, and client inquiries.

Informed Decisions: Executives get firm-wide visibility with the ability to run M&A simulations, stress tests, and scenario analyses on demand.

Get Started

The repository contains setup scripts, sample data, semantic model definitions, agent skills, ML notebooks, and step-by-step instructions for deploying the complete solution.

Updated 2026-06-26

This content is provided as is, and is not maintained on an ongoing basis. It may be out of date with current Snowflake instances