When combined with Snowflake's robust and efficient data cloud solution, ThoughtSpot can help you turn your data into actionable insights. Our AI-Powered Analytics platform is designed for everyone—whether you're code first or code free. Instead of relying on data teams to crank out clunky dashboards and outdated reports, business users can use a familiar natural language search interface and augmented analytics to discover insights, create and share Liveboards, and make real-time decisions. This frees analysts and data teams to work on more impactful projects, like data pipeline optimizations or complex analysis. By choosing ThoughtSpot and Snowflake, you're investing in a modern data infrastructure built to scale, grow, and innovate with your business.

Product Architecture

Prerequisites

What You'll Learn

What You'll Build

To get started, we are going to need a few cloud environments, one for Snowflake and another for ThoughtSpot. Thankfully, both platforms offer free trials you can sign up for online. This tutorial will use sample datasets in each environment. If you already have an existing Snowflake or ThoughtSpot instance, it is recommended to create a new free trial instance.

Snowflake Partner Connect

Snowflake Connection

Now that we have our cloud environments setup, it is time to create the connection from ThoughtSpot to Snowflake. If you haven't done so already, go ahead and log into your ThoughtSpot account. From the top menu, select Data, then Connections from the left hand menu, tap Snowflake, give your connection the name TutorialSnowStore, and tap continue.

ThoughtSpot to Snowflake

After tapping Continue, you will be prompted to enter Snowflake connection details. These are the details you collected earlier from the Snowflake Free Trial. Copy these into the form, paying careful attention to case. Connection details are case sensitive and need to appear exactly as they appear in Snowflake.

Worksheet is a flat table representation exposed to business users, the goal is for business users to express questions on top of this worksheet without having to worry about the data schema hidden behind this simplistic definition. ThoughtSpot uses Worksheets, which are logical views of data, to model complex datasets. The Worksheets simplify access to data for end-users and application services by incorporating these key features, and more:

Steps to Create a Worksheet

Create a Worksheet

Add Sources and Columns to a Worksheet

Add Sources

After creating a Worksheet, you need to add the sources that contain the data. A source is another name for a table. The sources you choose are typically related to one another by foreign keys.

To add sources to your Worksheet, follow these steps. The Worksheet creation UI also guides you through the process.

Note that the list of sources only shows the data sources on which you have view or edit privileges.

Note that after you add a column, non-related tables (those without a primary/foreign key relationship) become hidden. If you are working with two tables that should be related, but are not, you can add a relationship between them.

Worksheet

Here's more on creating a Worksheet

ThoughtSpot Embed with Snowflake

This section demonstrates how to embed ThoughtSpot analytics into a web application using React, TypeScript, and Vite. It integrates with Snowflake as the data source.

Overview

This application serves as a template for embedding ThoughtSpot into web applications. It utilizes modern web development tools and practices. We encourage you to customize it to fit your needs.

Features

Get Started

These instructions will help you set up and run the project on your local machine for development and testing purposes.

Installation

  1. Clone the repository: open a terminal window in VS Code or your favorite IDE and type in the following below
   git clone https://github.com/thoughtspot/snowflake-quickstart-tse

  1. Navigate to the project directory:
cd ts-embed-snowflake

  1. Install the dependencies:
npm install

Run the Application

  1. To start the development server, run:
npm run dev

Open your browser and go to your newly created application to see it in action.

  1. Click on the Liveboard. A sample retail liveboard will appear.

Liveboard

Liveboard1

  1. Use Natural Language Search with SageAsk a question like "what are my best performing brands last week" in the Search bar

Sage

  1. Or simply use our token based search

SearchData

What you learned today

Congratulations! You've successfully learned how to

Feel free to customize the application to suit your needs.

Resources