DiffFlow icon DiffFlow by VerveCraft
Documentation & Flow Recipes

DiffFlow Setup & Shopify Flow Recipes

Connect DiffFlow to Shopify Flow in minutes—no coding required. Follow these recipes and exact trigger field references to automate catalog alerts and operations.

Quick Start (3 Minutes)

  1. Install DiffFlow and wait for the Dashboard status to show Monitoring while DiffFlow captures an initial read-only baseline of products, variants, and inventory locations.
  2. Open Shopify Flow → Create workflow, click Select a trigger, choose DiffFlow, and pick one of the 6 triggers listed below.
  3. Preview safely in DiffFlow's Triggers & Simulator using local Dry Run mode (zero side effects), or confirm a Live Test when you are ready to run active Flow workflows.
  4. Verify delivery in DiffFlow's Change History (Accepted by flow) and inspect downstream action results in Shopify Flow's run history.

5 Practical Shopify Flow & History Recipes

1. Steep Price Drop Alert (Using Variant price changed)

Best for: Tagging the affected product and alerting Slack/email when a variant's selling price drops sharply (e.g., CSV or ERP typo).

  • Trigger: DiffFlow → Variant price changed (includes a native Product reference)
  • Condition: Has delta percent is true AND Delta percent is less than or equal to -30
  • Action: Send Slack message / internal email including Old price, New price, Delta percent, SKU, and Event ID + optionally add product tag price-review.

2. Guardrail Anomaly Digest (Using Store anomaly detected · Starter+)

Best for: Routing any guardrail match configured on your DiffFlow Guardrails page (price drops, steep inventory drops, or active product unpublishes).

  • Trigger: DiffFlow → Store anomaly detected (sends text fields rather than a Product reference)
  • Condition: Rule equals Variant price drop (or leave unfiltered to catch all enabled guardrails)
  • Action: Send internal email or Slack message displaying Rule, Resource type, Resource ID, Old value, New value, Severity, and Event ID.

3. Per-Location Low-Stock Reorder Alerts (Using Inventory crossed threshold)

Best for: Multi-location stores wanting a single alert when a specific warehouse crosses its low-stock threshold (default 5; customizable on Growth+).

  • Trigger: DiffFlow → Inventory crossed threshold
  • Condition: Location ID equals your target Shopify location ID (e.g., 89081053370)
  • Action: Include Inventory item ID, Location ID, Old available, New available, and Threshold in an internal email or a connected Flow app (such as Slack, Asana, or Google Sheets), optionally pairing with a Flow lookup or merchant ID-to-SKU mapping.

4. Automated Sale Collection Tagging (Using Variant compare at price changed)

Best for: Driving a tag-based automated Shopify collection (rule: Product tag is equal to flash-sale).

  • Trigger: DiffFlow → Variant compare at price changed (includes a Product reference plus text Old/New compare at price, SKU, and Variant ID)
  • Condition & Action: Because a product can have multiple variants and compare-at prices are sent as text, inspect the product's variants in Flow (comparing numeric compare-at price against each variant's current selling price) so you add tag flash-sale while any variant qualifies and remove it only when no variants remain on sale.

5. Observed Price History & CSV Export Walkthrough

Best for: Reviewing observed catalog and price edits since your DiffFlow baseline (subject to your plan's history window and stored-row cap).

  • Open DiffFlow → Change History to inspect the interactive per-variant Price Trend chart and observed UTC timestamps.
  • Filter by resource, trigger, source, or anomalies only, and click Export CSV (Starter plan and above) for operational records.

All 6 Shopify Flow Triggers — Complete Field Reference

Trigger Name When It Fires Exact Payload Fields
Variant price changed Observed variant selling price changes Product (product_reference), Old price (decimal), New price (decimal), Delta amount (decimal), Has delta percent (boolean), Delta percent (decimal), SKU (text), Variant ID (text), Event ID (text)
Variant compare at price changed Compare-at price is set, changed, or cleared (empty text = unset) Product (product_reference), Old compare at price (text), New compare at price (text), SKU (text), Variant ID (text), Event ID (text)
Product status changed Observed product status changes (ACTIVE, DRAFT, ARCHIVED, or UNLISTED) Product (product_reference), Old status (text), New status (text), Product title (text), Event ID (text)
Inventory level changed Observed available inventory changes at a location Old available (decimal), New available (decimal), Delta (decimal), Location ID (text), Inventory item ID (text), Event ID (text)
Inventory crossed threshold Available stock falls to/below threshold or reaches zero Old available (decimal), New available (decimal), Threshold (decimal), Direction (text), Location ID (text), Inventory item ID (text), Event ID (text)
Store anomaly detected (Starter+) Observed price, status, or inventory change matches a guardrail Rule (text), Resource type (text), Resource ID (text), Old value (text), New value (text), Severity (text), Event ID (text)

Need help building a custom Shopify Flow?

Email support@vervecraft.app with what you want to automate and we will help you map the Flow steps.