FINANCE

Flag refund-rate outlier merchants by cohort and open a Monday review

Each morning, pulls Stripe refunds into Snowflake, computes refund rate per merchant cohort.

CategoryFinance
Enginesim
Difficultyadvanced
Triggerschedule
Steps6
Setup~25 min

How it runs

The automated pipeline, trigger to output.

  • TriggerDaily schedule after prior day closes
  • ActionPull charges and refunds from StripeStripeStripe
  • ActionLoad rows and join cohort table in SnowflakeSnowflakeSnowflake
  • LogicCompute per-merchant z-score vs cohort, keep outliers
  • ActionOpen Monday review item with evidence per merchantmonday.com
  • OutputPost outlier digest to finance SlackSlack

What it does

Detects merchants whose refund behavior breaks from their peer group instead of from a flat global threshold. It scores each merchant's daily refund rate against the mean and standard deviation of its cohort (by category and volume band), then files a finance review task with the supporting numbers attached.

When to use it

Run this when a single hard threshold produces too many false alarms because high-volume and low-volume merchants behave differently. Cohort-relative scoring catches the merchant that is anomalous *for its tier*, not just the ones above an arbitrary line.

How it works

  1. 1A daily schedule fires after the prior day closes.
  2. 2Pull yesterday's charges and refunds from Stripe.
  3. 3Load the rows into Snowflake and join to the cohort assignment table.
  4. 4Compute refund rate and a z-score per merchant against its cohort distribution.
  5. 5Branch: keep only merchants with z-score above the configured cutoff and a minimum charge count.
  6. 6Create a Monday review item per flagged merchant with rate, cohort mean, z-score, and refund IDs.
  7. 7Post a digest summary to the finance Slack channel.

Set it up

What you configure once, before turning it on.

  1. 1
    Connect StripeCustomers, subscriptions, payments.
  2. 2
    Connect SnowflakeWarehouses, queries, shares.
  3. 3
    Connect monday.comVisual work management for teams.
  4. 4
    Connect SlackChannels, DMs, threads, mentions.
  5. 5
    Set each agent's modelWe leave models unset so you pick the tier — fast + cheap, or top-quality.
  6. 6
    Tune it to your dataEdit the prompts, filters, and field mappings so it matches how your team works.
  7. 7
    Test, then turn it onRun once against a sample, confirm the output, then enable the trigger.

Run this workflow in your colony.

14-day trial. No DevOps. No Sales call. Provisioned in under a minute.