Shopify Merchandising Executive Brief
Pricing
from $0.10 / 1,000 store briefs
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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
9 days ago
Last modified
Categories
Features
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 outcome | What it answers |
|---|---|
| Assortment and launches | Which products appeared or disappeared, which product types gained depth, was there a range reset? |
| Reliable price comparisons | Which products changed price (same variants only), which markdowns started or ended, is a store repricing as a whole? |
| Availability signals | What sold out, what came back, which products lost most of their variants, is there a stock-out wave? |
| Merchandising regressions | Which 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
- Validate every URL: HTTPS only, no credentials, no custom ports, no IP addresses, no internal host names, public DNS results only.
- Read robots.txt for each store (with wildcard and
Allow/Disallowprecedence rules). If robots.txt cannot be read reliably or disallows the feed, the store is skipped. - Read the public
/products.jsonfeed in bounded pages (max 250 products per request, configurable cap per store, pause between requests, no proxies, no logins, no HTML scraping). - Save a snapshot per store and day in a named key-value store, and prune snapshots older than the retention window.
- 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
| Field | Default | Meaning |
|---|---|---|
storeUrls | required | 1-10 distinct public storefront URLs. Only the host is used. |
maxProductsPerStore | 500 | 20-2000. Larger catalogs are marked truncated. |
priceChangeThresholdPercent | 5 | Minimum price move and compare-at markdown depth that counts. |
baselineMinAgeDays | 1 | Compare with the newest snapshot at least this old. |
maxBaselineAgeDays | 35 | Older baselines are not used; a fresh baseline is saved. |
snapshotRetentionDays | 30 | Older snapshots are deleted. |
stateStoreName | pal-shopify-merchandising-snapshots | Named key-value store holding snapshots. |
requestDelayMs | 1000 | Pause between requests; a larger robots.txt Crawl-delay (capped at 10 s) wins. |
assumeSameCurrency | false | Turns on cross-store SKU price gaps. Only enable if all stores price in one currency. |
maxFindings | 300 | Cap on ranked findings in the dataset. |
minSeverity | low | Drops 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 withpriority(P1-P3),ownerHint,recommendedAction,evidenceUrlsandfindingIdsthat point to findings in the same dataset.finding: ranked evidence records withseverity,score,reliability(reliableorindicative), 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
availablefield. 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 markedindicative. - 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_atfrom 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
indicativewhen 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, comparisonsrc/collector.py robots-aware bounded feed collectionsrc/fetcher.py HTTPS GET with DNS pinningsrc/urlsafety.py URL validation, SSRF checks, robots evaluatorsrc/parsing.py feed record to compact snapshot productsrc/state.py snapshot persistence and baseline selectionsrc/assortment.py outcome 1src/pricing.py outcome 2 (+ optional cross-store gaps)src/availability.py outcome 3src/merchandising.py outcome 4src/brief.py joining, ranking, actions, executive brieftests/ offline unittest suite
Local tests
The tests are fully offline (fake feed, in-memory state store):
python -m unittest discover -s tests -t .