Automate Snowflake
Keep an eye on warehouse credit spend, send query results to people who don't log in to Snowsight, and catch loads that didn't arrive. ClickRuntime runs SQL against your account through the SQL API with a role you choose. Describe what you want to your AI assistant, check what it will do, and it keeps running.
Try asking
Create a ClickRuntime automation: every morning at 7, check Snowflake warehouse credit usage for the last 24 hours and email me any warehouse that used more than 10 credits.
Paste it into your assistant. It tells you what it will send or change before it runs live.
Ideas
What you can automate in Snowflake
Get an email when a warehouse uses too many credits
Each morning you learn which warehouses used more than your limit in the last 24 hours.
See how it worksEmail a KPI query's results every morning
The numbers you'd otherwise open Snowsight for arrive as a table in your inbox.
See how it worksGet a Slack alert when a table gets no new rows
If today's load hasn't arrived by 9am, your data channel hears about it once.
See how it works Your own logicAny other automation you can describe in words
Your own rules, schedule and AI steps with Snowflake, plus any other app. Describe it and your assistant builds it.
See how to build your ownBuild your own
Build any Snowflake automation you can describe
Your own rules
Conditions, thresholds, filters and exceptions, written the way you'd explain them to a colleague.
Any number of apps
One automation can read from one app and update several others. Over 248 apps are ready, and anything with an API works too.
AI where it helps
Summaries, classification, extraction and drafts use ClickRuntime's built-in AI, with no extra key.
On a schedule or on each event
Runs as often as every 5 minutes, or the moment an app sends an event, and keeps track of what it already handled.
For example, ask your assistant
Every morning, check Snowflake credit usage per warehouse and warn me if any warehouse used more than 150% of its 7-day average yesterday.
Every Monday at 8am, run my weekly revenue query in Snowflake and post the result table with a short AI summary of what changed to our #finance Slack channel.
Every day, run a Snowflake query for customers whose usage dropped by half this month, add them to a Google Sheets tracker, and create a HubSpot task for each account owner.
Beyond chat
Have Snowflake work when you're not in the chat
On a schedule
Get an email when a warehouse uses too many creditsDaily
On a schedule
Email a KPI query's results every morningDaily
On a schedule
Get a Slack alert when a table gets no new rowsHourly
Setup
Connect Snowflake
Snowflake connects with a programmatic access token (PAT) you create for your own Snowflake user, restricted to a role you pick. Key-pair authentication works for service users.
Snowflake
Data warehouse
- In Snowsight, open Governance & security, then Users & roles, and select the user the automation should run as.
- Choose Generate new token, give it a name, set the expiry and restrict it to a role that can read the tables you need. You can also run
ALTER USER ... ADD PROGRAMMATIC ACCESS TOKENin SQL. - Copy the token secret straight away; Snowflake shows it only once.
- In the ClickRuntime dashboard, open Connections & secrets and save the token and your account identifier as a Snowflake secret.
Good to know
Snowflake limits that affect automations
- Access tokens expire, and an admin sets the longest lifetime allowed. Expiry can't be extended, so create a new token and update the secret before the old one runs out.
- Your account's network and authentication policies decide whether a token can be used. Check them with your Snowflake admin before connecting.
- Every query runs on one of your warehouses and uses its credits, so an hourly check costs more than a daily one.
- Credit usage reports need a role that can read the
ACCOUNT_USAGEviews.
FAQ
Questions about automating Snowflake
What can ClickRuntime see in Snowflake?
What happens when my token expires?
Will these automations use warehouse credits?
Can I use key-pair authentication instead of a token?
Do I need AI for Snowflake automations?
Is this a Snowflake connector for ChatGPT or Claude?
Related pages
Keep exploring