Operations · n8n

Get Alerted the Instant Shopify Orders Spike Abnormally

A sudden order spike is either the best thing (you went viral) or the worst (a card-testing bot hitting checkout). Either way you want to know now. This workflow learns your normal hourly order rate and pings you the moment reality jumps far above it.

difficulty Intermediatesetup 35 minresult You hear about viral moments and fraud attacks within minutes — not when you check the dashboard tomorrow
  1. 1

    Count orders every hour

    A Schedule Trigger runs hourly; a Shopify node counts orders in the last 60 minutes.

  2. 2

    Compare to the baseline

    A Code node reads a rolling average from a Google Sheet and computes how far above normal the current hour is.

  3. 3

    Decide if it's abnormal

    An IF node fires only when the spike exceeds your threshold (e.g. 3x the recent average).

  4. 4

    Alert instantly

    A Telegram message reports the count, the normal range and a nudge to check for fraud or a traffic source.

  5. 5

    Update the baseline

    Write this hour's count back to the sheet so the baseline keeps learning.

Frequently asked questions

Won't sales events cause false alarms?

You can mute the alert during known campaigns, or raise the threshold. Even during a sale, a bot attack usually spikes far past a promo, so the signal still works.

Could this catch fraud?

Yes — rapid bursts of small orders are a classic card-testing pattern. Pair it with your fraud-hold workflow to auto-pause fulfillment when an anomaly hits.

About this recipe. Recipes on FlowRecipesHub are written for business owners, not developers, and are tested before publishing — how recipes get made. Some ingredient links are affiliate links that cost you nothing — full disclosure.