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](https://docs.n8n.io/integrations/core-nodes/n8n-nodes-base.executecommand/) 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](https://docs.n8n.io/integrations/core-nodes/n8n-nodes-base.cron/) 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](https://docs.n8n.io/integrations/core-nodes/n8n-nodes-base.functionItem/) **(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](https://docs.n8n.io/integrations/core-nodes/n8n-nodes-base.functionItem/) **(Init item)** saves all required data from each watcher to the `kopacky.json` file. - [HTTP Request node](https://docs.n8n.io/integrations/core-nodes/n8n-nodes-base.httpRequest/) fetches data from the website. - [HTML Extract node](https://docs.n8n.io/integrations/core-nodes/n8n-nodes-base.htmlExtract/) extracts the required information from the webpage. - [Send Email nodes](https://docs.n8n.io/integrations/core-nodes/n8n-nodes-base.sendemail/) **(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](https://docs.n8n.io/integrations/core-nodes/n8n-nodes-base.if/) filter the incoming data and route the workflow. - [Move Binary Data nodes](https://docs.n8n.io/integrations/core-nodes/n8n-nodes-base.movebinarydata/) convert the JSON file to binary data. - [Write Binary File nodes](https://docs.n8n.io/integrations/core-nodes/n8n-nodes-base.writebinaryfile/) 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.
- Platform
- n8n
- Category
- E-commerce
- Price
- $14.99
- Creator
- sthosstudio
- if
- cron
- emailSend
- htmlExtract
- httpRequest
- functionItem
- executeCommand
- moveBinaryData
- readBinaryFile
- writeBinaryFile
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related E-commerce workflows
- Automate AI-Generated Virtual Try-On Images for WooCommerce$14.99
- Automate E-commerce Visual Content Creation with AI$19.99
- Automate Multilingual Shopify Product Descriptions with AI Vision Analysis$4.99
- Automate Shopify SEO Content Creation with GPT-4 & Claude Multi-Agent System$24.99
- Automate 3D Product Video Creation from 2D Images for E-Commerce$14.99
- Create a Smart Shopping Assistant with Persistent Memory Using Zep, GPT-4, and Google Sheets$4.99
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.