Build a Due Diligence and Investment Research Agent in Snowflake Using Tavily
Overview

In this guide, you will build a real-time due diligence and investment research agent in Snowflake with Tavily Web Search.
Tavily is a purpose-built web search API designed specifically for AI agents. Unlike traditional search engines, Tavily provides a fast, structured, and relevance-optimized web access layer that enables agents to retrieve high-signal, up-to-date information with minimal noise.
You will learn how to create a Financial Agent that analyzes ticker-level fundamentals stored in Snowflake and enriches them with timely insights from across the web. Using Tavily’s real-time search capabilities, the agent retrieves recent news, regulatory updates, litigation developments, executive changes, and emerging risk signals that may not yet be reflected in financial statements.
By combining trusted financial reference data in Snowflake with Tavily’s up-to-date web intelligence, the agent performs contextual risk and opportunity analysis that goes beyond static datasets. This approach helps reduce blind spots between earnings cycles and surfaces early warning signals for buy-side, private equity, and corporate development workflows.
By the end of this guide, you will have a working Financial Agent that demonstrates how Snowflake and Tavily together enable intelligent, real-time financial analysis across structured and unstructured data sources.
Prerequisites
- Familiarity with Snowflake fundamentals, including SQL, databases, schemas, and tables
- Basic understanding of Cortex AI capabilities within Snowflake
- Foundational knowledge of Agentic AI concepts and tool orchestration
What You’ll Need
-
A Snowflake account with appropriate access to databases, schemas, Agents, and Cortex Analyst capabilities
Sign up for a Snowflake account -
A Tavily API key to enable real-time web search. Tavily offers 1,000 free API credits per month with no credit card required
Get your Tavily API key
What You Will Build
- A structured equity reference dataset in Snowflake containing NYSE ticker-level fundamentals.
- A Financial Agent configured with an
Equity_Intelligence_Analysis_Toolto evaluate structured financial data. - A
Tavily_Web_Search_Toolto retrieve real-time external intelligence, including regulatory updates, litigation signals, executive changes, and adverse media. - An end-to-end due diligence workflow that combines structured financial analysis with live web intelligence to surface emerging risk and opportunity signals.
By the end of this guide, you will have a working Financial Agent capable of analyzing a company’s fundamentals and enriching that analysis with real-time developments from across the web.
What You Will Learn
- How to configure Tavily Web Search within Snowflake
- How to build and configure a Financial Agent
- How Cortex Analyst dynamically generates SQL
- How to combine structured financial data with real-time external intelligence
- How to orchestrate multiple tools within Snowflake Intelligence
How You Can Use It
This Financial Agent can support a variety of investment and corporate analysis workflows, including:
- Buy-side due diligence prior to capital deployment.
- Private equity portfolio monitoring and risk assessment.
- Corporate development research for M&A evaluation.
- Continuous monitoring of leadership changes, regulatory exposure, and litigation risk.
- Identifying early warning signals between earnings cycles.
By combining trusted financial reference data in Snowflake with Tavily’s real-time web intelligence, you reduce blind spots in traditional analysis and enable faster, more informed decision-making across structured and unstructured data sources.
Setup
Configuring the Tavily Web Search API
Follow the steps below to configure Tavily Web Search within Snowflake.
-
Install Tavily from the Snowflake Marketplace
- Navigate to Snowflake Marketplace.
- Search for Tavily Search API.
- Click on 'Get' and follow the prompts to install it in your account.

-
Provide Your Tavily API Key
-
After installation, click on 'Open'

-
When prompted, enter your Tavily API key to enable real-time search functionality (If you do not have an API key, you can create one at: https://tavily.com/).

-
External API access must be enabled in the API configuration settings to allow outbound calls (You should find it below the API config field).
-
-
Validate the Configuration
- Once the API key is configured, click on 'Open Worksheet'.

- Then run the default query by selecting your appropriate warehouse and ensuring the Database is set to TAVILY_SEARCH_API and the Schema is set to TAVILY_SCHEMA, as shown below.

- You should see the query results displayed in the output console, similar to the example shown above.
- Once the API key is configured, click on 'Open Worksheet'.
You can follow the steps in this video for a quick setup:
Watch the setup video
Load Financial Tables into Snowflake
There are two ways to bring financial fundamentals into Snowflake for use with the Financial Agent.
The most production-ready approach is to integrate structured financial datasets directly from the Snowflake Marketplace, such as LSEG Financials. However, for this demo, we will use a smaller custom dataset (created using the Alpha Vantage API) to keep the environment lightweight, transparent, and easier to understand while focusing on agent orchestration and tool integration.
Option 1: Use Snowflake Marketplace (Enterprise-Grade Dataset)
For a production or enterprise use case, the recommended approach is to subscribe to a structured financial dataset directly from the Snowflake Marketplace.
Example dataset: LSEG Financials on Snowflake Marketplace

Steps:
- Open the Snowflake Marketplace.
- Search for “LSEG Financials” (or another financial fundamentals dataset).
- Request or subscribe to the listing.
- Follow the on-screen steps to add the shared database to your Snowflake account.
- Once added, you will have access to structured financial tables directly within your account.
This approach provides:
- Enterprise-grade standardized financial data
- Broad historical coverage
- Production-ready schemas and tables
- No need for manual CSV uploads
Option 2: Load Your Own Financial Tables
For this guide, we will use a smaller custom dataset to:
- Maintain full control over the schema
- Keep the demo lightweight
- Focus on how the Financial Agent orchestrates Cortex Analyst and Tavily Web Search
Steps:
-
Ensure your account privileges, region, and other required configurations are properly set before proceeding to avoid errors.
-
Run the commands shown in the image below to create your database and schema, and set the appropriate context to ensure everything is configured correctly.

-
You can verify that your new database and schema are set correctly by checking the context displayed in the top-right corner.

-
Click the “+” icon, then select Table → From File.

-
After uploading your CSV file, ensure the correct database and schema are selected. Then click + Create New Table and provide an appropriate table name of your choice.


Create a Snowflake Agent with Tavily Search and Cortex Analyst Tools
-
In the Snowflake UI, navigate to the AI & ML tab and select Agents.
-
Click Create Agent, then provide a name, description, and relevant example questions for your agent.

-
Navigate to the Tools tab and add the Cortex Analyst tool.
Add the Cortex Analyst Tool

-
Create a new custom tool for the Tavily Search API and configure its required parameters.

-
Click Save Updates to apply the updates.
-
Launch Snowflake Intelligence and verify that the agent has access to both configured tools.

Using Snowflake Intelligence with Tavily Web Search and Cortex Analyst
- You can now interact with Snowflake Intelligence by asking questions and observing how it leverages Tavily’s fast, efficient web search API alongside Cortex Analyst to provide real-time context for your Snowflake data.
1) Example 1: Regulatory & Valuation Risk Assessment (Nike)
User Prompt:
“Given Nike's NYSE fundamentals and latest earnings data, are there any recent regulatory investigations, lawsuits, or enforcement actions in the last 30 days that could materially impact valuation?”

What Happens Behind the Scenes
-
Snowflake Intelligence calls
tavily_web_searchfirst- The agent identifies that the question requires recent, time-bound external developments.
- It invokes the Tavily Web Search Tool to retrieve regulatory and legal news.
- Tavily’s fast and efficient search ensures:
- Up-to-date information (last 30 days)
- Relevant filtering around investigations and enforcement
- Reduced hallucination risk by grounding responses in real web sources
-
Snowflake Intelligence then calls the Cortex Analyst tool
- The agent generates SQL dynamically to retrieve financial fundamentals.
- It queries revenue, net income, and other structured data from your Snowflake database.
- The SQL execution establishes the financial baseline.

- Synthesis
- External regulatory findings (Tavily)
- Structured financial metrics (Cortex Analyst SQL)
- Combined valuation-aware reasoning
Without Tavily, the agent would lack fresh regulatory intelligence.
Without Cortex Analyst, it could not contextualize events against actual financial scale.
2) Example 2: Revenue Scale & Recent Business Developments (Walmart)
User Prompt:
“Based on Walmart’s fundamentals, analyze its revenue scale and assess whether any recent supply-chain disruptions, labor-related developments, major pricing strategy changes, or significant earnings guidance updates in the last 30 days could impact forward cash flow.”

Step-by-Step Orchestration
- Cortex Analyst Tool is invoked
- The agent dynamically generates SQL to query key fundamentals (e.g., TTM revenue, market cap, net income).
- It establishes a structured financial baseline directly from Snowflake tables.
- SQL execution is visible in the reasoning trace.

-
tavily_web_searchis triggered- The agent searches for recent business developments tied to forward cash flow drivers, such as:
- Supply chain or logistics disruptions
- Labor-related news (staffing, wage pressure, store operations)
- Pricing strategy changes
- Earnings guidance updates or major business announcements
- Tavily delivers high-signal, recent results in real time.
- The agent searches for recent business developments tied to forward cash flow drivers, such as:
-
Combined Financial + Business Intelligence
- Financial scale and baseline metrics (from structured data)
- Recent operational and business drivers (from Tavily search)
- Synthesized implications for forward cash flow
Why Tavily Strengthens the Financial Agent
Tavily’s fast and efficient search:
- Retrieves high-signal, recent developments
- Anchors analysis in real-world, time-sensitive events
- Reduces speculative or generic responses
- Grounds the Financial Agent’s reasoning with external validation
This transforms Snowflake Intelligence from a SQL-driven assistant into a contextual financial reasoning engine.
Conclusion
Congratulations on completing this exercise!
By integrating Tavily Web Search with Cortex Analyst, Snowflake Intelligence becomes a multi-step reasoning system capable of:
- Generating SQL dynamically through Cortex Analyst
- Executing structured financial analysis directly in Snowflake
- Retrieving real-time external intelligence via Tavily
- Synthesizing both structured and unstructured data into valuation-aware insights
The Financial Agent moves beyond simple querying and becomes a grounded, decision-support system for due diligence and investment research.
What You've Learned
- How Snowflake Intelligence orchestrates both Tavily Web Search and Cortex Analyst tools
- How Cortex Analyst dynamically generates SQL to query financial tables
- How Tavily provides real-time, high-quality external intelligence
- How combining structured financial data with live market signals improves analytical depth
- How to build a Financial Agent capable of contextual, risk-aware financial reasoning
You have now implemented a Financial Agent that bridges structured Snowflake data with live external intelligence — enabling real-time, grounded financial analysis.
Related Resources
Snowflake
-
Snowflake Marketplace
Discover and subscribe to third-party datasets, including financial fundamentals and market data providers. -
LSEG Financials on Snowflake Marketplace
Example of an enterprise-grade financial fundamentals dataset available directly within Snowflake. -
Snowflake Developer Guides
Explore additional hands-on tutorials and implementation guides.
Tavily
-
Tavily API Documentation
Official documentation for integrating and configuring the Tavily Web Search API. -
Tavily Product Overview
Learn more about Tavily’s fast and efficient search capabilities for AI applications. -
Tavily Blog
Insights, updates, and best practices for building with Tavily-powered intelligence.
This content is provided as is, and is not maintained on an ongoing basis. It may be out of date with current Snowflake instances