Skip to main content

Track changes of product prices

Workflow preview

Workflow preview
100%
Track changes of product prices preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

This workflow automatically tracks changes on specific websites, typically in e commerce where you want to get information about price changes. Prerequisites Basic knowledge of HTML and JavaScript ...

Best for

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

Tools used

n8n-nodes-base.htmlextract, n8n-nodes-base.cron, n8n-nodes-base.functionitem, n8n-nodes-base.httprequest, n8n-nodes-base.writebinaryfile, n8n-nodes-base.movebinarydata, n8n-nodes-base.if, n8n-nodes-base.executecommand

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Track changes of product prices
Workflow name
Track changes of product prices

This workflow automatically tracks changes on specific websites, typically in e-commerce where you want to get information about price changes.

Prerequisites

  • Basic knowledge of HTML and JavaScript

Nodes

  • Execute Command nodes create a file named kopacky.json in the /data/ folder (Make sure that n8n has the permissions to make changes to the folder in your setup) and clean data.
  • Cron node triggers the workflow at regular intervals (default is 15 minutes), depending on how often you want to crawl URLs of your watchers.
  • Function Item node (Change me) adds the URL watchers. You can put as many URLs (watchers) as you want by changing the JavaScript code in the node. There are four properties for each watcher:
Property Meaning
slug Unique identifier for the watcher.
link URL of the website where you want to track changes.
selector CSS selector of the HTML tag, where your price is placed. You can use browser web tools to get a specific selector.
currency Currency code in which your price is set.
  • Function Item node (Init item) saves all required data from each watcher to the kopacky.json file.
  • HTTP Request node fetches data from the website.
  • HTML Extract node extracts the required information from the webpage.
  • Send Email nodes (NotifyBetterPrice) send you an email when there is an issue with getting the price, and when a better price is available (this could happen if the website is down, your tracking product is not available anymore, or the owner of the website changed the selector or HTML).
  • IF nodes filter the incoming data and route the workflow.
  • Move Binary Data nodes convert the JSON file to binary data.
  • Write Binary File nodes write the product prices in the file.

NOTE: This is the first (beta) version of this workflow, so it could have some issues. For example, there is an issue with getting content of those websites, where the owner of the website blocks any calls from unknown foreign services - it's typical protection against crawlers.

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 - HTML Extract

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

Block 2 - Cron

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

Block 3 - getActualPrice

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

Block 4 - fetchWeb

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

Block 5 - FunctionItem

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

Block 6 - Write Binary File1

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

Block 7 - Move Binary Data1

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

Block 8 - IF1

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

Block 9 - checkifexists

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

Block 10 - IF3

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

Block 11 - SaveToFile

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

Block 12 - JsonToBinary

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

Block 13 - changeME

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

Block 14 - initItem

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

Block 15 - savedItems

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

Block 16 - itemsToJSON

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

Block 17 - IF

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

Block 18 - initItem1

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

Block 19 - IF2

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

Block 20 - updateSavedItems

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

Block 21 - updateSavedItems1

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

Block 22 - cleanData

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

Block 23 - IF4

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

Block 24 - NotifyBetterPrice

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

Showing the first 24 of 25 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Track changes of product prices
Complexity advanced
Nodes 25
Categories Market Research
Author sthosstudio
Published 19 Dec 2020

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/837/837.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 Track changes of product prices do?

This workflow automatically tracks changes on specific websites, typically in e commerce where you want to get information about price changes. Prerequisites Basic knowledge of HTML and JavaScript ...

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 use case.