Send Snowflake query results to Slack on schedule

Recipe ToolsMarketingDatabaseBotsArtificial IntelligenceSales Enablement

What it does

When a scheduled interval triggers, this automation runs custom SQL in Snowflake. It sends matching results to Slack, or posts a no-results message if the query finds nothing.

Who it's for

Data and analytics teams who need regular Snowflake query summaries posted to Slack without manual checks.

How teams use this

Post daily sales metrics to leadership

Run a SQL query each morning that counts closed deals and revenue, then post the summary to an executives channel. The team wakes up to current numbers without asking for a report.

Alert when inventory falls below threshold

Query Snowflake hourly for stock levels and post to an operations channel only when items drop below a set amount. Add a SQL condition to filter for low inventory and set the interval to hourly.

Monitor failed transactions in finance

Schedule a nightly query that finds all failed payments and posts them to a finance channel for review. The team starts each day knowing which transactions need attention.

How it works

  1. Start on a specified interval. Set this to run daily or at another interval you choose. The automation starts automatically at that time without someone having to begin it manually.
  2. Run custom SQL and fetch results. Input your custom SQL query and configure the output JSON schema within Snowflake. The database returns matching rows as a batch so the next step can evaluate whether records exist.
  3. Post results or no-results message. If the query returned no records, post a message to Slack saying no results were found. If records exist, send them to the channel so the team sees the summary.