Preis- und Lagerbestandsmonitoring mit n8n ohne LLM-Kosten
Viele KI-Preismonitore schicken jede Abfrage über OpenAI und verursachen laufende Kosten. Für das Auslesen einer Zahl von einer Produktseite ist reines Parsing die bessere Lösung. Mit n8n, Google Sheets und Slack lässt sich ein Monitor ohne AI-Kosten bauen.

Most "AI price monitor" builds I see end the same way: HTTP Request → OpenAI → parse the JSON → hope. It demos beautifully and then quietly costs you money on every run, twice an hour, forever.
For price monitoring that is the wrong tool. Reading a number out of a product page is a parsing problem, not a reasoning problem, and an LLM is the one component in the stack that can invent a plausible price when the page loads slowly, returns a CAPTCHA, or has three prices on it (the variant, the "was" price, the cross-sell).
Here is the whole thing, node by node, including where it breaks — because the failure modes are what decide whether you trust a monitor or stop reading it after week two.
Schedule (every 6h) → Google Sheets: read "Competitors" → Code: prepare checks (valid URLs, cap at 25) → Split In Batches (size 1) → HTTP Request: fetch product page → Code: extract price + stock → IF anything changed? true → Sheets: append "Price History" → Sheets: update baseline row → Code: build alert text → Slack: post message → back to the loop false → back to the loop Enter fullscreen mode Exit fullscreen mode Eleven nodes, one credential type (Google Sheets OAuth2) and Slack. No OpenAI key, no Amazon SP-API, no Shopify app review, no scraping subscription.
The important design decision is Split In Batches with size 1. One bad page — a 404, a timeout, a store that returns a bot wall — then costs you one row instead of the whole run. The HTTP Request node is set to continue on error with regular output, so a failed fetch still reaches the extraction node and produces a clean fetch_ok: false instead of a red execution you'll learn to ignore.
Two tabs, lowercase headers, spelled exactly. You fill the first nine columns; the workflow owns the last three.
product_key, product, competitor, url, my_price, currency, last_price, last_stock, alert_threshold_pct, notes, last_checked, last_change Enter fullscreen mode Exit fullscreen mode product_key is the row's identity and the match key for updates — keep it stable ( lamp-01-rival ). url must start with http. Rows without a URL are skipped, so you can keep a product in the sheet before you find the competitor link. alert_threshold_pct is a per-row noise floor. 1 means "tell me about a 1% move"; 5 means "only 5%+". A 3% swing on a €9 item is noise; on a laptop it's a decision. One global threshold is the reason most price alerts get muted. Leave last_price and last_stock empty on the first run. Price History — append-only, written only on change:
checked_at, product_key, product, competitor, currency, old_price, new_price, change_pct, old_stock, new_stock, reasons, url Enter fullscreen mode Exit fullscreen mode reasons is written in plain English: price drop 7.4%, went out of stock, back in stock, baseline captured. Six months from now that column is the only thing that will tell you why a row exists.
Starting with an empty history tab is correct. A quiet week leaves it empty, and that is the product: you learn that nothing moved without reading anything.
A bare fetch from a server gets a different page than Chrome does, so the HTTP Request node sends the two headers that matter most:
User - Agent: Mozilla / 5.0 ( Windows NT 10.0; Win64; x64 ) AppleWebKit / 537.36 ( KHTML, like Gecko ) Chrome / 124.0 Safari / 537.36 Accept - Language: en - US, en; q = 0.9 Enter fullscreen mode Exit fullscreen mode Plus timeout: 25000, followRedirects: true (max 5) and response format: text — you want raw HTML, not n8n's auto-JSON.
One request per URL per run. That's it. No crawling, no pagination, no category pages: the more you ask of someone else's server, the more likely you are to be blocked — and a monitor you can't trust is worse than a bookmark.
The extractor tries five strategies in descending order of reliability. This is the core of the whole build, so here it is in full:
const toNum = ( s ) => { if ( s === null || s === undefined ) return null; const cleaned = String ( s ). replace ( / [ ^ \ d., ] / g, '' ). replace ( /, / g, '' ); const v = parseFloat ( cleaned ); return isNaN ( v )? null: v; }; let price = null, currency = ''; // 1. JSON-LD (schema.org Product) — Shopify, WooCommerce, BigCommerce, most headless stores const ldCur = html. match ( / "priceCurrency" \ s *: \ s * "([A-Z]{3})" / ); if ( ldCur ) currency = ldCur [ 1 ]; const ld = html. match ( / "(?:price|lowPrice|salePrice|highPrice)" \ s *: \ s * "?([0-9][0-9.,]*)"?/ i ); if ( ld ) price = toNum ( ld [ 1 ] ); // 2. Schema.org microdata if ( price === null ) { const micro = html. match ( / itemprop = [ "']price[" '][^>]*content=["' ] ( [ 0 - 9 ] [ ^ "']*)[" ']/i) || html.match(/content=["' ] ( [ 0 - 9 ] [ ^ "']*)[" '][^>]*itemprop=["' ] price [ "']/i); if (micro) price = toNum(micro); } // 3.
OpenGraph product price if (price === null) { const og = html.match(/(?:og:price:amount|product:price:amount)[" '][^>]*content=["' ] ( [ 0 - 9 ] [ ^ "']*)[" ']/i); if (og) price = toNum(og); } // 4. data-* attributes if (price === null) { const attr = html.match(/data-(?:price|product-price|sale-price)=["' ] ( [ 0 - 9 ] [ ^ "']*)[" ']/i); if (attr) price = toNum(attr); } // 5. Last resort: currency symbol followed by a number if (price === null) { const sym = html.match(/(?:[$€£₩₹¥]|USD|EUR|GBP|KRW|INR|JPY)\s?([0-9][0-9.,]{1,11})/); if (sym) price = toNum(sym); } Enter fullscreen mode Exit fullscreen mode Two details that matter more than they look:
Currency comes from the page, not from you. "priceCurrency": "EUR" in JSON-LD is authoritative; otherwise the symbol is mapped ( $ → USD, € → EUR, £ → GBP, ₩ → KRW, ₹ → INR, ¥ → JPY ). Mixed-currency competitor lists then compare numbers as numbers, not as converted values — which is a known limitation, not a hidden one.
Step 5 is honest about being a guess. It only runs when structured data is missing entirely, and it's the step that produces wrong numbers most often: a "related products" carousel, a shipping banner, a discount badge. For a store that is consistently caught by step 5, use the exact variant URL and consider whether the row belongs in the monitor at all.
const avail = html. match ( / "availability" \ s *: \ s * "([^" ] + ) "/i); let inStock = true; let stockSource = 'assumed (no signal found)'; if (avail) { const a = avail.split('/').pop(); // schema.org/OutOfStock → OutOfStock if (/OutOfStock|SoldOut|Discontinued/i.test(a)) { inStock = false; stockSource = 'schema:' + a; } else if (/InStock|LimitedAvailability|PreOrder|BackOrder/i.test(a)) { inStock = true; stockSource = 'schema:' + a; } } else { const OOS = ['out of stock', 'sold out', 'currently unavailable', 'notify me when available', '품절', 'soldout', 'temporarily unavailable']; const hit = OOS.find(k => html.toLowerCase().includes(k)); if (hit) { inStock = false; stockSource = 'page copy: " ' + hit + ' "'; } } Enter fullscreen mode Exit fullscreen mode Carrying stock_source through to the sheet is the single most useful debugging field in the workflow. schema:OutOfStock you can trust. page copy: "out of stock" on a page that also has a "you may also like" carousel that happens to contain that phrase is a maybe — and now you can see which one you got.
This is where a monitor earns its keep, and it's four lines of arithmetic plus a rule:
const prevPrice = item. last_price === '' || item. last_price === null? null: toNum ( item. last_price ); const prevStock = String ( item. last_stock || '' ). toLowerCase ( ); const threshold = Number ( item. alert_threshold_pct || 1 ); const reasons = [ ]; let changePct = ''; if ( price!== null && prevPrice!== null && prevPrice > 0 ) { const diffPct = ( ( price - prevPrice ) / prevPrice ) * 100; changePct = diffPct. toFixed ( 2 ); if ( Math. abs ( diffPct ) >= threshold ) { reasons. push ( ( diffPct < 0? 'price drop ': 'price rise ' ) + Math. abs ( diffPct ). toFixed ( 1 ) + '%' ); } } if ( prevStock && prevStock!== stockNow ) { reasons. push ( prevStock === 'in'? 'went out of stock': 'back in stock' ); } if ( prevPrice === null && price!== null ) reasons. push ( 'baseline captured' ); const changed = reasons. length > 0; Enter fullscreen mode Exit fullscreen mode Three rules that keep the alert channel quiet enough to stay useful:
Inside the loop, after the history row is written and the baseline updated:
const money = ( v, c ) => ( v == null || v === ''? 'n/a': ( c? c + ' ': '' ) + Number ( v ). toLocaleString ( ) ); const dir = r. change_reasons. includes ( 'drop' )? '📉': r. change_reasons. includes ( 'rise' )? '📈': '⚠️'; const lines = [ dir + ' *Competitor change* - ' + ( r. product || r. product_key ), ( r. competitor? '*' + r. competitor + '*' + ' · ': '' ) + r. change_reasons, 'price: ' + money ( r. prev_price, r. currency ) + ' → *' + money ( r. price, r. currency ) + '*' + ( r. change_pct? ' (' + r. change_pct + '%)': '' ), 'stock: ' + ( r. prev_stock || 'unknown' ) + ' → ' + r. stock_now, r. my_price!== ''? 'your price: ' + money ( r. my_price, r. currency ): '', '', '<' + r. url + '|open product page>', ]; Enter fullscreen mode Exit fullscreen mode Which arrives as:
📉 Competitor change - Arc floor lamp Rival Store · price drop 7.4%, went out of stock price: USD 149 → USD 138 (-7.40%) stock: in → out your price: USD 149 <https://rivalstore.example/products/arc-floor-lamp|open product page> Enter fullscreen mode Exit fullscreen mode Including your price in the same message is the small thing that makes it actionable — the number you need is in the alert, not one lookup away.
The Slack node is set to continue on error, and it sits inside the loop. A mistyped channel name should never cost you the remaining 24 URL checks; by the time the alert is built, the history row is already saved.
This is a page scraper. Being clear about the edges is the difference between a tool you use and one you quietly stop checking.
The only real cost is the n8n instance you already have. Compare that to a $20–$50/month price-monitoring SaaS for the same handful of URLs and the same "tell me only when it moves" behaviour.
The full workflow described above — the extraction cascade, the threshold and baseline logic, the plain-English reasons, the in-canvas sticky notes with the column lists — is workflow 01 of the E-Commerce Growth Pack, three importable n8n workflows for the three jobs that decide whether a small store grows: knowing what competitors charge, writing listings that convert, and answering support mail before it becomes a dispute.
No affiliate links, no countdown timers. If you build it yourself from the code above, that's a genuinely fine outcome — the parsing order and the per-row threshold are the parts that took the thinking.