๐Ÿ“Š Reprice WooCommerce products using Amazon data, Bright Data, OpenAI and Slack

โšก 3 views ยท ๐Ÿ“Š Market Research & Insights

๐Ÿ’ก 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 runs daily to compare WooCommerce product prices against Amazon buy-box prices scraped via Bright Data, uses OpenAI (GPT-5.6) to confirm each Amazon URL matches the same product, then (optionally) updates WooCommerce sale prices, logs results to Google Sheets, and posts a digest to Slack.

How it works

  1. Runs every day on a schedule and loads repricing rules (limits, margin/undercut settings, dry-run flag, and target Slack channel).
  2. Fetches up to the configured number of products from WooCommerce and reads a Google Sheets mapping of sku to amazon_url (plus cost) to build a list of comparable product pairs.
  3. Triggers Bright Dataโ€™s Amazon product dataset for all competitor URLs, then polls the snapshot progress until the scrape is ready.
  4. Downloads the scraped results, joins them back to the WooCommerce products by URL, and extracts buy-box price, availability, and title data.
  5. Uses OpenAI (GPT-5.6) to verify the WooCommerce and Amazon listings refer to the same product, then calculates a new sale price using guardrails like margin floor, regular-price ceiling, max change per run, and a sanity band.
  6. If dry_run is off, updates the WooCommerce sale price for each approved change; otherwise, skips writes while keeping the same reporting.
  7. Appends each proposed/applied change to a Google Sheets โ€œReprice Logโ€ tab and posts a summary (including held-back items and reasons) to Slack.

Setup

  1. Add credentials for Bright Data (HTTP Header Auth with Authorization: Bearer <API_KEY>), WooCommerce, Google Sheets, OpenAI, and Slack.
  2. Create or update a Google Sheet with a mapping tab (for example, Sheet1) containing sku, amazon_url, and cost columns, plus a โ€œReprice Logโ€ tab for appended results.
  3. In the workflow settings, set your competitor sheet ID in the repricing rules and update the Google Sheets document ID used for logging.
  4. Set the Slack channel name in the repricing rules (for example, #pricing) and leave dry_run enabled until you validate the digest output.

Requirements

Customization

๐Ÿ”— Nodes Used

Google Sheets, HTTP Request, Slack, WooCommerce, Gmail, Schedule Trigger

๐Ÿ“ฅ Import

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

๐Ÿ“– Importing guide ยท ๐Ÿ”‘ Credential setup