Skip to main content

Scrape product prices and send GPT-4o-mini insights to Google Sheets and Gmail

Workflow preview

Workflow preview
100%
Scrape product prices and send GPT-4o-mini insights to Google Sheets and Gmail preview
Open on n8n.io

1. Workflow Overview

Quick Overview This workflow runs daily at 9 AM to scrape product titles and prices from a target website, store the results in Google Sheets, generate price statistics and an OpenAI GPT 4o mini ma...

Best for

  • Market Research automation workflows
  • AI Summarization automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.scheduletrigger, n8n-nodes-base.httprequest, n8n-nodes-base.html, n8n-nodes-base.splitout, n8n-nodes-base.sort, n8n-nodes-base.code, n8n-nodes-base.googlesheets

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Incrementors.

Original n8n.io source

1.1 Workflow description

Title
Scrape product prices and send GPT-4o-mini insights to Google Sheets and Gmail
Workflow name
Scrape product prices and send GPT-4o-mini insights to Google Sheets and Gmail

Quick Overview

This workflow runs daily at 9 AM to scrape product titles and prices from a target website, store the results in Google Sheets, generate price statistics and an OpenAI GPT-4o-mini market insight, and email a formatted report with a CSV attachment via Gmail.

How it works

  1. Runs every day at 9:00 using a schedule trigger.
  2. Fetches the target webpage HTML over HTTP and extracts all product blocks with CSS selectors.
  3. Splits the extracted product blocks into individual items, then parses each product’s title and price and sorts the list by price in descending order.
  4. Cleans the price into a numeric field and adds the current scrape date to each product record.
  5. Appends the product rows to a Google Sheets tab and, in parallel, calculates min/max/average price plus top and bottom price lists for analysis.
  6. Sends the compiled price context to OpenAI (GPT-4o-mini) to generate a short plain-text market insight.
  7. Converts the scraped product list into a CSV file, then emails the stats and AI insight with the CSV attached using Gmail.

Setup

  1. Update the target URL and the CSS selectors used to extract product blocks, titles, and prices to match the site you want to scrape.
  2. Add an OpenAI credential and ensure the workflow can access the GPT-4o-mini model.
  3. Add Google Sheets OAuth credentials, set the spreadsheet ID, and create a “Products” sheet with columns for Title, Price, and Scraped Date.
  4. Add Gmail OAuth credentials and set the recipient email address used to send the daily report.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Section — Daily Fetch and Product Extraction

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Section — Split, Extract Fields, and Sort

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 4 - Section — Date Cleanup, Sheets Save, Stats, and AI Analysis

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 5 - Section — CSV Merge and Email

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 6 - 1. Schedule Trigger — Daily 9AM

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 7 - 2. HTTP — Fetch Website HTML

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 8 - 3. HTML — Extract All Products

Type / Role
n8n-nodes-base.html - html
Config choices
Version 1.2

Block 9 - 4. Split Out — One Product at a Time

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 10 - 5. HTML — Extract Title and Price

Type / Role
n8n-nodes-base.html - html
Config choices
Version 1.2

Block 11 - 6. Sort — By Price Descending

Type / Role
n8n-nodes-base.sort - sort
Config choices
Version 1

Block 12 - 7. Code — Add Date and Clean Price

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 13 - 8. Google Sheets — Save Products

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 14 - 9. Code — Compile for AI and Stats

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 15 - 10. AI Agent — Price Analysis

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.9

Block 16 - OpenAI — GPT-4o-mini Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.3

Block 17 - 11. Convert to CSV File

Type / Role
n8n-nodes-base.convertToFile - convertToFile
Config choices
Version 1.1

Block 18 - 12. Merge — Combine AI and CSV

Type / Role
n8n-nodes-base.merge - merge
Config choices
Version 3

Block 19 - 13. Code — Merge CSV and AI for Email

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 20 - 14. Gmail — Send Report and CSV

Type / Role
n8n-nodes-base.gmail - gmail
Config choices
Version 2.1

3. Summary Table

Workflow Scrape product prices and send GPT-4o-mini insights to Google Sheets and Gmail
Complexity advanced
Nodes 20
Categories Market Research, AI Summarization
Author Incrementors
Published 16 Jun 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/16409/16409.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Scrape product prices and send GPT-4o-mini insights to Google Sheets and Gmail do?

Quick Overview This workflow runs daily at 9 AM to scrape product titles and prices from a target website, store the results in Google Sheets, generate price statistics and an OpenAI GPT 4o mini ma...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Market Research, AI Summarization use case.