Browse the docs

Agent setup guide

Snowflake Weekly KPI Digest

Every Monday in Slack: the results of your own KPI query in Snowflake, with a headline and what stands out written in plain words.

Available About 12 min to set up

What it does

Every Monday in Slack: the results of your own KPI query in Snowflake, with a headline and what stands out written in plain words.

  • Every Monday, runs your own SQL in Snowflake, read-only, and takes up to 50 rows exactly as Snowflake computes them.
  • AI writes a headline and up to three observations in words, without restating numbers.
  • Posts the digest with the rows to your Slack channel.

What it needs

  • A paid plan (agents run live on paid plans).
  • An AI provider key (Settings → AI Providers).
  • Snowflake and Slack, connected in Settings → Integrations.

What it doesn't do

  • It never changes data: only read-only queries run.
  • Up to 50 rows per digest; aggregate in the query for bigger tables.
  • It doesn't make charts.

Availability and plans

Available

Its workflow is built and tested, and every app it needs is live. You can get it and set it up now.

Included free on the Enterprise plan; on other paid plans it's a one-time purchase per workspace (the price is on the Agents page). The Agents page in the app always shows its current status.

Before you start

  • A paid plan: agents run live, and the Free plan only runs Dry Runs.
  • An AI provider key (OpenAI, Anthropic, Google and more) in Settings → AI Providers. AI usage is billed by your provider.
  • These apps, connected in Settings → Integrations: Snowflake and Slack.
  • Nothing to send: the agent runs on a schedule.
  • About 12 minutes.

Set it up step by step

Get the agent first (buy it, or it's already yours when your plan includes it), then in Agents → My agents press “Set up this agent”. That creates the agent's workflow in your workspace (it counts towards your plan's workflow limit) and opens the canvas with a setup checklist above it. Each item links to the exact place to go and ticks itself off when it's done.

1. Connect your AI provider

The AI steps run on your own key (OpenAI, Anthropic, Google and more). Add one in Settings → AI Providers.

2. Connect Snowflake

Connect Snowflake with a key pair or a programmatic access token and a read-only role (Settings → Integrations → Snowflake).

3. Connect Slack

Connect the Slack workspace (Settings → Integrations → Slack).

4. Set your KPI query

Open “Run your KPI query”, pick the Snowflake connection and replace the example SQL.

SettingWhat to enterIn step
Snowflake accountYour Snowflake connection (use a role with SELECT grants only). Pick your connected Snowflake account.“Run your KPI query”
Your KPI queryReplace the example with the SELECT that computes your weekly KPIs (up to 50 rows are posted). It starts as “select region, count(*) as orders, sum(amount) as revenue from analytics.public.orders where order_date >= dateadd(day, -7, current_date) group by region order by revenue desc” until you replace it.“Run your KPI query”

5. Describe the query

Open “What stands out” and replace the placeholder.

SettingWhat to enterIn step
What the query measuresReplace the placeholder with what each column means, who reads the digest and what a good week looks like. It starts as “[YOUR BUSINESS, WHAT THE QUERY MEASURES (EACH COLUMN), WHO READS THE DIGEST AND WHAT A GOOD OR BAD WEEK LOOKS LIKE]” until you replace it.“What stands out”

6. Pick the Slack channel

Open “Post the digest” and pick the workspace and channel.

SettingWhat to enterIn step
Slack accountThe Slack workspace for the digest. Pick your connected Slack account.“Post the digest”
Slack channelWhere the digest goes, e.g. #metrics.“Post the digest”

7. Test it with Dry Run

Press Dry Run: the agent runs on sample data with no messages sent and nothing written to your apps.

8. Switch the trigger on

Open the trigger, set your time zone and switch the schedule on. It runs every Monday at 8:00.

How it works

The agent is a normal workflow with 5 steps (1 AI step). You can open, edit and monitor it like any other workflow.

  • Mondays at 8:00 — Runs on a schedule (cron 0 8 * * 1, UTC — change it in the trigger's settings). Runs every Monday morning. Set your time zone on the trigger.
  • Run your KPI query — Snowflake: Run a SQL query. Runs your read-only SQL in Snowflake (only SELECT can run here) and returns up to 50 rows exactly as Snowflake computes them.
  • What stands out — AI step (runs on your AI provider key). AI reads the rows (numbers from Snowflake) and writes a headline and up to three observations, without restating the numbers.
  • Post the digest — Slack: Post a message. Posts the headline, the observations and the rows (as Snowflake returned them) to your Slack channel.
  • Digest posted — Kept in the run history. The run history keeps every digest.

Test it with Dry Run

Press Dry Run in the canvas. The agent runs on the sample data stored on its trigger (the “Sample data for Dry Run” box), so you can check every step's output before anything is live.

  • Nothing is sent or written: app actions, emails and Slack posts are simulated, and AI steps don't call your AI provider.

Go live

  • Open the trigger, set your time zone and switch the schedule on. It runs every Monday at 8:00.
  • Scheduled runs start only once the schedule is activated, and can't repeat faster than your plan's minimum interval.
  • The setup checklist adds a “paid plan” item before activation: live runs need a paid plan (the Free plan only runs Dry Runs).
  • When every checklist item is done and the trigger is on, the checklist says “Live — this agent is running”. Follow its runs in the workflow's History tab and in Analytics → Agents.

Questions

Can the AI get the numbers wrong?

The numbers come from Snowflake and are posted as Snowflake returns them; the AI only describes them in words and is told not to restate figures.

Can the query change my data?

No. The step is read-only: only SELECT, WITH … SELECT, SHOW and DESCRIBE can run. Use a role with SELECT grants only as well.

Does it use warehouse credits?

Yes, one query a week on the warehouse you pick on the connection.

Troubleshooting

  • “No AI provider connected” or a rejected key: connect or fix the key in Settings → AI Providers, then press Test there.
  • A checklist item stays unticked: the setting is still empty or still contains its placeholder text. Open the step from the checklist and fill it in.
  • An app step fails with “Needs reconnect”: the account's access was revoked or expired. Reconnect it in Settings → Integrations.
  • Slack says the app isn't in the channel: in Slack, type /invite @Fluxo Flow in that channel (always needed for private channels).
  • It didn't run at the expected time: the schedule must be activated, and its time is in the trigger's timezone.
  • A step failed: open the run in History and check that step in the Trace tab for the error and what it received.

Generated from the agent's own workflow, so it always matches what the agent does. Last updated .