πŸ”¬ Audit inventory prices between a website scraper and Google Sheets

⚑ 26 views Β· πŸ”¬ Document Extraction & Analysis

πŸ’‘ Pro Tip β€” HTTP Request scraping tends to break when sites update their markup. If you’re scraping a major platform, check if ScraperNode covers it β€” it has maintained scrapers for LinkedIn, Instagram, TikTok, YouTube, and 20+ other platforms that return structured data.

View All Scrapers

Description

Quick overview

This workflow receives scraped product data via a webhook, compares it against an internal inventory list in Google Sheets, and writes an audit log (price changes, matches, and missing items) to a separate Google Sheets spreadsheet.

How it works

  1. Receives a POST webhook request containing a JSON payload with a products array from an external scraper.
  2. Reads the current internal inventory reference rows (SKUs, product names, and prices) from a Google Sheets spreadsheet.
  3. Compares each sheet item to the scraped products, matching first by SKU and then (as a fallback) by product name, and calculates the price difference.
  4. Labels each item as Matched (No Price Change), Price Changed, or Not Found on Website, and carries forward category and image URL when available.
  5. Appends the comparison results as new rows into an output Google Sheets spreadsheet for reporting.

Setup

  1. Create or select two Google Sheets files (one for the inventory reference and one for the audit output) and ensure the output sheet has headers for sku, product_name, sheet_price, scraped_price, match_found_via, status, difference, category, and image_url.
  2. Add a Google Sheets OAuth2 credential in n8n with access to both spreadsheets and update the document and sheet IDs if you use different files.
  3. Configure your external scraper to POST to the workflow’s production webhook URL and send a JSON body that includes body.products[] with fields such as sku, name, scraped_rate, category, and image_url.

Requirements

Customization

πŸ”— Nodes Used

Google Sheets, Webhook

πŸ“₯ Import

Download workflow.json and import into n8n: Workflow menu β†’ Import from File

πŸ“– Importing guide Β· πŸ”‘ Credential setup