{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["platform-badges","admonition","img"]},"type":"markdown"},"seo":{"title":"Treasure AI Studio - Connect Snowflake","description":"Connect Treasure AI Studio to Snowflake so agents can explore and visualize your warehouse data. Create the Snowflake OAuth security integration, configure the connector, and authorize your connection.","siteUrl":"https://docs.treasure.ai","lang":"en-US","jsonLd":{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://www.treasure.ai/","name":"Treasure AI","url":"https://www.treasure.ai/","logo":"https://www.treasure.ai/hubfs/assets/images/logos/primary-logo.svg"},{"@type":"WebSite","@id":"https://docs.treasure.ai/#website","name":"Treasure AI Documentation","url":"https://docs.treasure.ai/","inLanguage":["en","ja"],"publisher":{"@id":"https://www.treasure.ai/"}}]},"llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"connect-snowflake","__idx":0},"children":["Connect Snowflake"]},{"$$mdtype":"Tag","name":"PlatformBadges","attributes":{"platforms":["Web","Desktop"]},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The Snowflake connector lets Treasure AI Studio agents explore and visualize data in your Snowflake warehouse during a chat. Setup has three parts: an administrator creates an OAuth security integration in Snowflake, configures the connector in Treasure AI, and then each user authorizes their own connection."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"New to connections?"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Read ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/connections"},"children":["Connections"]}," first for the general model — the difference between a connector and a connection, and the administrator vs. user roles. This page covers the Snowflake-specific steps."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"objective","__idx":1},"children":["Objective"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Set up the Snowflake connector end to end: create the Snowflake OAuth security integration, configure and enable the connector in Treasure AI, and authorize a connection so the agent can query your warehouse."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"prerequisites","__idx":2},"children":["Prerequisites"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Account administrator privileges in Treasure AI Studio (for the connector configuration steps)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A Snowflake account with the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ACCOUNTADMIN"]}," role (or another role that can create a security integration)"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["The account URL of the Snowflake account you want to connect"]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-1--create-a-security-integration-in-snowflake-administrator","__idx":3},"children":["Step 1 — Create a Security Integration in Snowflake (Administrator)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Treasure AI connects to Snowflake using an OAuth security integration that you create in your Snowflake account. The setup uses a confidential OAuth client with refresh tokens."]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Find your Account URL."]}," In Snowsight, click the account selector at the bottom-left, select your account, and copy the account URL. It has the form ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://ORGNAME-ACCOUNTNAME.snowflakecomputing.com"]},". You'll enter this as the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Account URL"]}," in Treasure AI (Step 2)."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create the integration."]}," Run the following SQL as ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ACCOUNTADMIN"]},". Replace the redirect URI with the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["callback URL"]}," shown in the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Setup Guide"]}," on the Treasure AI connector form (it ends in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/connections/callback"]}," and is specific to your region):"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"CREATE SECURITY INTEGRATION TREASURE_AI_STUDIO_INTEGRATION\n  TYPE = OAUTH\n  OAUTH_CLIENT = CUSTOM\n  OAUTH_CLIENT_TYPE = 'CONFIDENTIAL'\n  OAUTH_REDIRECT_URI = 'https://<your-region-host>/connections/callback'\n  OAUTH_ISSUE_REFRESH_TOKENS = TRUE\n  OAUTH_REFRESH_TOKEN_VALIDITY = 7776000\n  ENABLED = TRUE;\n","lang":"sql"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Retrieve the client credentials."]}," Run:"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"sql","header":{"controls":{"copy":{}}},"source":"SELECT SYSTEM$SHOW_OAUTH_CLIENT_SECRETS('TREASURE_AI_STUDIO_INTEGRATION');\n","lang":"sql"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["From the output, copy ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["OAUTH_CLIENT_ID"]}]}," and ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["OAUTH_CLIENT_SECRET"]}]},". Ignore ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["OAUTH_CLIENT_SECRET_2"]}," — you only need the first secret."]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For more detail, see Snowflake's guide on ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"https://docs.snowflake.com/en/user-guide/oauth-custom"},"children":["Configure Snowflake OAuth for custom clients"]},"."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"The agent connects with the PUBLIC role"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The connection authorizes the agent with Snowflake's ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUBLIC"]}," role. The agent can only query objects that ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUBLIC"]}," can access, so grant the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUBLIC"]}," role the privileges it needs: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["USAGE"]}," on a warehouse (required to run any query), ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["USAGE"]}," on the databases and schemas, and ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SELECT"]}," on the tables you want the agent to explore. The role is fixed at authorization time and cannot be changed from within a chat."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Because ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUBLIC"]}," is automatically granted to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["every"]}," user in the Snowflake account, any privilege you grant to ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUBLIC"]}," for the agent also exposes that data to all other users. Grant only what the agent needs, and consider whether a more restricted setup is required for sensitive data."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-2--configure-the-connector-in-treasure-ai-administrator","__idx":4},"children":["Step 2 — Configure the Connector in Treasure AI (Administrator)"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["In Treasure AI Studio, open ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings → Connector Settings"]}," (under ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Organization"]},")."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add Connector"]}," and choose ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Snowflake"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Complete the form:"]}]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Field"},"children":["Field"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Value"},"children":["Value"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Account URL"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Your account URL from Step 1, e.g. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://myorg-myaccount.snowflakecomputing.com"]},"."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client ID"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["OAUTH_CLIENT_ID"]}," from the security integration."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client Secret"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["OAUTH_CLIENT_SECRET"]}," from the security integration (entered as a masked field)."]}]}]}]}]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":4},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Use the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Setup Guide"]}," panel on this form as your reference — it contains the exact ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["redirect URL"]}," to register in the security integration (Step 1) and the SQL to run."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Save"]},". The Snowflake connector now appears in your configured list."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Make sure the connector is ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["enabled"]}," so users can authorize connections to it."]}]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/ai-studio-connector-select-snowflake.02ea98200f5429c12f909ddb831c916866c30b58b342b1847f153c1292f5f433.fdfbfafb.webp","alt":"The Select Connector screen with the Snowflake connector and an Add button","framed":false,"withLightbox":true,"width":"800px"},"children":[]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/ai-studio-connector-configure-snowflake.e4c4b18362de292db5ce83e42ebb3ebfb606949482193c48eb98e03ed2fa875a.fdfbfafb.webp","alt":"The Configure Snowflake form showing Account URL, Client ID, and Client Secret fields with the Setup Guide panel below","framed":false,"withLightbox":true,"width":"800px"},"children":[]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"warning","name":"Allow the account domain in your network policy"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If your account uses a network policy, allow the connector's ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["egress domain"]}," (your Snowflake account host, e.g. ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["myorg-myaccount.snowflakecomputing.com"]},") so the agent's sandbox can reach it. The required domain is shown next to the configured connector in ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connector Settings"]},"."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-3--authorize-your-connection-user","__idx":5},"children":["Step 3 — Authorize Your Connection (User)"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Each user who wants the agent to access Snowflake authorizes their own connection:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Open ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings → Connections"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Under ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Available"]},", find ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Snowflake"]}," and click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connect"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Sign in to Snowflake in the popup and approve the requested access."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["When the popup closes, ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Snowflake"]}," appears in your connected list with the date you connected it."]}]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/ai-studio-connections-snowflake-available.a5958715c2d1c71e0f4f41a85acbd4d582475dbb56c9ec7777d11bbe7274aaee.fdfbfafb.webp","alt":"The Connections page with Snowflake listed under Available and a Connect button","framed":false,"withLightbox":true,"width":"800px"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To remove the connection later, click the delete (trash) icon next to it."]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Connect from a chat instead"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You don't have to authorize in advance. If you ask the agent to work with Snowflake before you've connected, it shows a ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connection Required"]}," card in the chat — click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connect"]}," there to run the same authorization without leaving the conversation. See ",{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/connections#connect-from-a-chat"},"children":["Connect from a chat"]},"."]}]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"step-4--use-snowflake-in-a-chat","__idx":6},"children":["Step 4 — Use Snowflake in a Chat"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Once connected, ask the agent to work with your Snowflake data — for example, to explore a table or visualize a query result. The agent runs SQL against your warehouse and uses your connection automatically; no extra configuration is needed in the chat."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"reference","__idx":7},"children":["Reference"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Item"},"children":["Item"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Value"},"children":["Value"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Connector"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Snowflake"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Authentication"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["OAuth 2.0 (user-to-machine), confidential client with refresh tokens"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["OAuth scopes"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["refresh_token"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["session:role:PUBLIC"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Agent role"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUBLIC"]}," (fixed by the OAuth scope)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Required configuration"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Account URL, Client ID, Client Secret"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Redirect URL"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Shown in the connector form's ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Setup Guide"]}," (ends in ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/connections/callback"]},")"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"troubleshooting","__idx":8},"children":["Troubleshooting"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Issue"},"children":["Issue"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Solution"},"children":["Solution"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Snowflake isn't listed on the Connections tab"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["An administrator must add the Snowflake connector in ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Connector Settings"]}," and enable it."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["OAuth popup shows a redirect URL error"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["OAUTH_REDIRECT_URI"]}," in the security integration must exactly match the callback URL shown in the connector form's Setup Guide. Re-run the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["CREATE SECURITY INTEGRATION"]}," (or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["ALTER SECURITY INTEGRATION"]},") with the correct value."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The connection stops working after about 90 days"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Refresh tokens are valid for 90 days (",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["OAUTH_REFRESH_TOKEN_VALIDITY = 7776000"]}," seconds in Step 1). Reconnect from ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings → Connections"]}," to re-authorize."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The connection authorizes but the agent can't reach Snowflake"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Allow your Snowflake account domain in your network policy (see the egress domain shown in Connector Settings)."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The agent connects but can't see your tables"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Grant the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["PUBLIC"]}," role privileges on the databases, schemas, and tables you want the agent to query."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["\"Account URL\" is rejected"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["The URL must be your account host in the form ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://<orgname>-<accountname>.snowflakecomputing.com"]},". Use hyphens (not underscores) between the organization and account names."]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Saving the connector fails on the client secret"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Re-run ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["SELECT SYSTEM$SHOW_OAUTH_CLIENT_SECRETS('TREASURE_AI_STUDIO_INTEGRATION');"]}," and copy ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["OAUTH_CLIENT_SECRET"]}," again — make sure you copied the first secret, not ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["OAUTH_CLIENT_SECRET_2"]},"."]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"next-steps","__idx":9},"children":["Next Steps"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/connections"},"children":["Connections"]}," — The general connection model and administrator controls"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/connections/databricks"},"children":["Connect Databricks"]}," — Configure and authorize a Databricks connection"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/query/query-execution"},"children":["Query Execution"]}," — How the agent runs and returns query results"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/products/ai-studio/visualization/charts"},"children":["Charts & Data Visualization"]}," — How the agent visualizes data"]}]}]},"headings":[{"value":"Connect Snowflake","id":"connect-snowflake","depth":1},{"value":"Objective","id":"objective","depth":2},{"value":"Prerequisites","id":"prerequisites","depth":2},{"value":"Step 1 — Create a Security Integration in Snowflake (Administrator)","id":"step-1--create-a-security-integration-in-snowflake-administrator","depth":2},{"value":"Step 2 — Configure the Connector in Treasure AI (Administrator)","id":"step-2--configure-the-connector-in-treasure-ai-administrator","depth":2},{"value":"Step 3 — Authorize Your Connection (User)","id":"step-3--authorize-your-connection-user","depth":2},{"value":"Step 4 — Use Snowflake in a Chat","id":"step-4--use-snowflake-in-a-chat","depth":2},{"value":"Reference","id":"reference","depth":2},{"value":"Troubleshooting","id":"troubleshooting","depth":2},{"value":"Next Steps","id":"next-steps","depth":2}],"frontmatter":{"seo":{"title":"Treasure AI Studio - Connect Snowflake","description":"Connect Treasure AI Studio to Snowflake so agents can explore and visualize your warehouse data. Create the Snowflake OAuth security integration, configure the connector, and authorize your connection."},"platforms":["Web","Desktop"]},"lastModified":"2026-07-02T06:27:45.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/products/ai-studio/connections/snowflake","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}