Shopify Merchandising Executive Brief avatar

Shopify Merchandising Executive Brief

Pricing

from $0.10 / 1,000 store briefs

Go to Apify Store
Shopify Merchandising Executive Brief

Shopify Merchandising Executive Brief

Turns daily snapshots of public Shopify storefronts into a severity-ranked executive brief: launches, price moves, availability and merchandising regressions with next actions.

Pricing

from $0.10 / 1,000 store briefs

Rating

0.0

(0)

Developer

Practical AI Lab

Practical AI Lab

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

9 days ago

Last modified

Features

Limited permissions

Share

Give this Actor several public Shopify storefront URLs and run it on a schedule. It stores a compact snapshot of each store's public product feed, compares today's snapshot with an earlier one, and produces one joined, severity-ranked brief for a commerce decision-maker:

Buyer outcomeWhat it answers
Assortment and launchesWhich products appeared or disappeared, which product types gained depth, was there a range reset?
Reliable price comparisonsWhich products changed price (same variants only), which markdowns started or ended, is a store repricing as a whole?
Availability signalsWhat sold out, what came back, which products lost most of their variants, is there a stock-out wave?
Merchandising regressionsWhich listings lost images, descriptions, tags or variants, which launches went live incomplete?

The four outcomes are not separate reports. They are joined into ranked findings, compound risks (for example a launch that is both new and missing images) and a short list of evidence-linked next actions with priority and owner hints, plus an executive headline and a Markdown version of the brief.

How it works

  1. Validate every URL: HTTPS only, no credentials, no custom ports, no IP addresses, no internal host names, public DNS results only.
  2. Read robots.txt for each store (with wildcard and Allow/Disallow precedence rules). If robots.txt cannot be read reliably or disallows the feed, the store is skipped.
  3. Read the public /products.json feed in bounded pages (max 250 products per request, configurable cap per store, pause between requests, no proxies, no logins, no HTML scraping).
  4. Save a snapshot per store and day in a named key-value store, and prune snapshots older than the retention window.
  5. Compare with the newest snapshot that is old enough (default: at least 1 day old), run the four outcome analyses, join and rank them.

The first run for a store only saves a baseline. A comparison brief appears on the next qualifying run.

Sample input

{
"storeUrls": ["https://www.allbirds.com", "https://kith.com"],
"maxProductsPerStore": 500,
"priceChangeThresholdPercent": 5,
"baselineMinAgeDays": 1,
"stateStoreName": "pal-shopify-merchandising-snapshots"
}

The URLs are examples of public Shopify storefronts, not endorsements. Only monitor stores whose terms allow reading their public feed. Schedule the Actor daily (or weekly with baselineMinAgeDays: 7) and keep the same stateStoreName on every run.

Input fields

FieldDefaultMeaning
storeUrlsrequired1-10 distinct public storefront URLs. Only the host is used.
maxProductsPerStore50020-2000. Larger catalogs are marked truncated.
priceChangeThresholdPercent5Minimum price move and compare-at markdown depth that counts.
baselineMinAgeDays1Compare with the newest snapshot at least this old.
maxBaselineAgeDays35Older baselines are not used; a fresh baseline is saved.
snapshotRetentionDays30Older snapshots are deleted.
stateStoreNamepal-shopify-merchandising-snapshotsNamed key-value store holding snapshots.
requestDelayMs1000Pause between requests; a larger robots.txt Crawl-delay (capped at 10 s) wins.
assumeSameCurrencyfalseTurns on cross-store SKU price gaps. Only enable if all stores price in one currency.
maxFindings300Cap on ranked findings in the dataset.
minSeveritylowDrops findings below this severity.

Output

The dataset holds records distinguished by recordType:

  • executive_brief (one): headline, overall risk, counts by severity and outcome, top actions, store highlights and caveats.
  • action: ranked next actions with priority (P1-P3), ownerHint, recommendedAction, evidenceUrls and findingIds that point to findings in the same dataset.
  • finding: ranked evidence records with severity, score, reliability (reliable or indicative), product URL, before/after values and the snapshot keys used (evidence.baselineSnapshot, evidence.currentSnapshot).
  • store_summary: per store status (compared, baseline_only, error, skipped), counts, metrics, notes and error code.

The default key-value store also holds OUTPUT (brief, top actions, store summaries) and EXECUTIVE_BRIEF.md (readable brief).

Ten finding types per store and type are kept at most (the rest is counted in suppressedFindings), so one big sale does not bury everything else.

Pricing event (not configured here)

The code defines one pay-per-event name, store-brief, in src/billing.py. It is intended to be charged once per store for which a real cross-run comparison was produced. It is never charged for failed stores, skipped stores or first-run baseline-only stores. No payable plan is configured in this project, and the price is a decision for the publisher after real cloud unit costs are known.

Limitations and sample-size caveats

  • No currency in the feed. Prices are compared as numbers per store. A market, currency or tax-display change can look like a price move. Very large moves (over 3x) are flagged indicative, and a store-wide move is reported as one summary finding.
  • Availability is a flag, not inventory. It reflects the public available field. Overselling, hidden inventory and preorders are invisible.
  • Only published products are visible. Draft, unpublished, password-protected, B2B or region-specific catalogs cannot be observed.
  • Snapshot cadence limits what you see. A price raised and reverted between two runs is invisible. The comparison gap equals your schedule.
  • Product caps. When a store has more products than maxProductsPerStore, removal findings are suppressed and new-product findings are marked indicative.
  • Small catalogs. Share-based signals (churn, price waves, availability waves) need at least 30 comparable products; below that they are not raised and a note says so. Results from a handful of products are indicative.
  • Launch date. published_at from the feed is used when it falls after the baseline; otherwise the product is reported as first seen in the feed.
  • Severity scores are heuristics (type, size of change, premium price tier, recent launch). They are not revenue or margin estimates. Sales, traffic and conversion are not observable.
  • Cross-store SKU gaps depend on SKUs being equal and titles similar; unrelated SKUs that collide are filtered by title similarity but can still be wrong. They are marked indicative when similarity is below 0.85.
  • Some stores disable or block /products.json. Those stores are reported with an error code and nothing is charged.
  • Findings are public-feed observations, not statements of fact about intent. Verify on the live storefront before reacting.

Safety

  • HTTPS only; hosts are validated, resolved, and connected by pinned public IP address (private, loopback, link-local and reserved ranges are refused).
  • Redirects are followed manually, at most three times, and every target is re-validated and checked against that host's robots.txt.
  • Response sizes are capped (8 MB for the feed, 512 KB for robots.txt); no compression is requested.
  • No logins, cookies, contact harvesting, proxies, browser automation or paid APIs. No personal data is stored: snapshots hold product titles, handles, prices, availability flags and counts.
  • Errors never trigger a charge.

Project layout

src/main.py Actor entry point (input, state store, output, charging)
src/pipeline.py per-store collection, snapshot saving, comparison
src/collector.py robots-aware bounded feed collection
src/fetcher.py HTTPS GET with DNS pinning
src/urlsafety.py URL validation, SSRF checks, robots evaluator
src/parsing.py feed record to compact snapshot product
src/state.py snapshot persistence and baseline selection
src/assortment.py outcome 1
src/pricing.py outcome 2 (+ optional cross-store gaps)
src/availability.py outcome 3
src/merchandising.py outcome 4
src/brief.py joining, ranking, actions, executive brief
tests/ offline unittest suite

Local tests

The tests are fully offline (fake feed, in-memory state store):

python -m unittest discover -s tests -t .