Most small businesses find out about a competitor's price rise from a customer, and usually a few weeks after it happened. Nobody has time to open five rival websites every morning and compare them with what they said yesterday, and a rival can launch a new plan on any morning you happen to skip. With Black Friday tomorrow, 27 November, plenty of those pages are likely to change this week.
I'd build this first for anyone who sells a product with a public price list and two or three obvious rivals: a coffee subscription, a bookkeeping practice, a software tool with a pricing page. It keeps a quiet watch on the pages you name, saves a copy of each one, and compares today's copy with yesterday's. When a page changes, a small AI model reads only the lines that changed and writes two or three plain bullet points, and you get one email. When nothing has changed, it sends nothing at all. [Dev: ever been caught out by a rival's price change? one line, or delete]
As a rough estimate, checking five pages by hand takes ten minutes a day, or more than an hour a week, and most of those checks find nothing. The workflow does the checking in under a minute and only asks for your attention when there is something to read.
This tutorial is a step up from our earlier ones. It uses a small built-in database to remember what each page said, it handles pages that fail to load without stopping, and it splits into two branches that do different jobs from the same data. Expect to spend 45 minutes to an hour on the build.
What you need
n8n, either n8n Cloud or the free self-hosted Community Edition. As of 26 November 2026 the Starter cloud plan is listed at €20 a month billed annually, with 2,500 workflow executions a month. This workflow runs once a day, so it uses about 30 executions a month however many pages you watch.
An OpenAI API account with billing set up. We use
gpt-6-luna, which OpenAI lists at $0.05 per million input tokens and $0.25 per million output tokens as of 26 November 2026. OpenAI counts text in tokens, each about three-quarters of an English word. Our test summary used about 160 input tokens and 30 output tokens, so a year of daily changes would cost a fraction of a US cent.A Google account with Gmail, for the morning email. Any Gmail account will do, including a free one.
An n8n Data Table, which is n8n's own small database, built into the product, with no extra account or credential. n8n limits all data tables in an instance to 200 MiB by default, which is room for thousands of saved pages.
Two credentials in n8n, one for OpenAI (paste your API key) and one for Gmail (sign in with Google). n8n stores each login encrypted and lets every workflow reuse it.
The addresses of the pages you want to watch. Pricing pages, plan comparison pages, careers pages and product launch pages tend to be the most useful.
The flow at a glance
The workflow has eleven nodes. A node is one step in an n8n workflow, and each passes its results, called items, to the next. Six of them carry the main idea, and the canvas below shows those six in the order they run.

Illustration of the n8n canvas, drawn from the built and tested workflow.
In words: a schedule starts the run at 7am, a short list names the pages, an HTTP Request node downloads each one, and the Data Table hands back yesterday's copies. A Code node compares old and new and labels each page as changed, unchanged, new or failed. From there the workflow splits. One branch saves today's copy of every page that loaded. The other keeps only the changed pages, asks OpenAI to summarise each change, builds one email and sends it.
Build it step by step
Start by creating the table that will remember each page. In n8n, open the Data tables tab in your project, create a table (any name will do, for example page_watch) and add four columns, all of type String: url, pageName, pageText and checkedAt. Leave it empty; the workflow fills it on the first run.
Then create a new workflow, name it after what it does (ours is Check competitor web pages daily, summarise changes with OpenAI and email me) and add the nodes below in order.
Step 1: Every morning at 7am (Schedule Trigger)
A trigger starts the workflow, in this case on a timer. Add a Schedule Trigger and rename it.
Trigger Interval: Days
Days Between Triggers: 1
Trigger at Hour: 7am
Trigger at Minute: 0
The schedule follows the time zone set in your workflow settings, or your instance's default if you have not set one, so check it once if your email arrives at an odd hour.
Step 2: List the pages to watch (Code)
A Code node runs a little JavaScript. Here it simply returns one item per page, each with a friendly name and an address. Add a Code node, set Mode to Run Once for All Items and Language to JavaScript, and paste:
const pages = [
{ pageName: 'Rival Roasters pricing', url: 'https://example.com/pricing' },
{ pageName: 'Rival Roasters blog', url: 'https://example.org/blog' },
{ pageName: 'Bean Box features', url: 'https://example.net/features' },
{ pageName: 'Bean Box careers', url: 'https://example.com/careers' }
];
return pages.map(page => ({ json: page }));Replace the four sample entries with your own. Each { pageName, url } pair becomes one item, and every later node runs once for each item unless told otherwise. The page name only appears in your email, so make it something you will recognise at a glance. A Google Sheet would also work as the list if you would rather edit it without opening n8n; see Make it yours.
Step 3: Fetch each page (HTTP Request)
The HTTP Request node downloads a web page, the same way a browser does before it draws it. Add one and set:
Method: GET
URL:
{{ $json.url }}Authentication: None
Options > Response: Response Format Text, Put Output in Field
dataOptions > Timeout: 20000 (milliseconds)
Options > Batching: Items per Batch 1, Batch Interval 2000 (milliseconds)
Settings tab: Retry On Fail on, and On Error set to Continue
{{ $json.url }} is an expression, a small piece of code inside double curly brackets that n8n fills in as it runs. $json means the current item, so each run of the node reads that page's address. Response Format Text keeps the raw HTML as one long string, which is what the comparison step needs.
The two settings at the bottom do the error handling. Batching fetches one page every two seconds rather than all at once, which is politer to the sites you are reading and less likely to get you blocked. Retry On Fail tries a failed page again, and On Error set to Continue means a page that still fails comes out as an item with an error field instead of stopping the whole workflow. Without that second setting, one broken link would cancel your whole morning report.
Step 4: Load saved copies (Data table)
Add a Data table node (n8n documents its operations here) and set:
Resource: Row. Operation: Get
Data table: choose the table you created
Return All: on
Settings tab: Execute Once on, and Always Output Data on
Execute Once matters here. Four page items arrive at this node, and without it the node would read the whole table four times. Always Output Data covers the very first run, when the table is empty: n8n normally stops a branch when a node returns nothing, and this setting lets the run carry on so the empty table can be filled.
Step 5: Find the pages that changed (Code)
Most of the logic sits in this node. Add a Code node, Run Once for All Items, JavaScript, and paste:
const pages = $('List the pages to watch').all().map(item => item.json);
const fetched = $('Fetch each page').all();
const saved = {};
for (const row of $('Load saved copies').all()) {
if (row.json.url) saved[row.json.url] = row.json;
}
function toText(html) {
return String(html || '')
.replace(/<(script|style)[\s\S]*?<\/\1>/gi, ' ')
.replace(/<(nav|header|footer)[\s\S]*?<\/\1>/gi, ' ')
.replace(/<\/?(br|p|div|li|ul|ol|h[1-6]|tr|section|article)\b[^>]*>/gi, '\n')
.replace(/<[^>]+>/g, ' ')
.replace(/ /g, ' ')
.replace(/&(amp|#38);/g, '&')
.split('\n')
.map(line => line.replace(/\s+/g, ' ').trim())
.filter(Boolean)
.join('\n');
}
const checkedAt = new Date().toISOString();
return pages.map((page, i) => {
const response = fetched[i] ? fetched[i].json : {};
const base = { pageName: page.pageName, url: page.url, checkedAt };
if (response.error || typeof response.data !== 'string') {
const reason = response.error && response.error.message ? response.error.message : 'No page content came back';
return { json: { ...base, status: 'failed', reason } };
}
const pageText = toText(response.data).slice(0, 20000);
const previous = saved[page.url];
if (!previous) return { json: { ...base, status: 'new', pageText } };
if (previous.pageText === pageText) return { json: { ...base, status: 'unchanged', pageText } };
const oldLines = new Set(String(previous.pageText).split('\n'));
const newLines = new Set(pageText.split('\n'));
const added = [...newLines].filter(line => !oldLines.has(line)).slice(0, 40).join('\n');
const removed = [...oldLines].filter(line => !newLines.has(line)).slice(0, 40).join('\n');
return { json: { ...base, status: 'changed', pageText, added, removed } };
});Read from the top. The first block collects three lists by reaching back to earlier nodes by name: the pages you listed, what came back for each, and the saved copies. The saved copies are put into a lookup keyed by address, so finding yesterday's copy of a page is one step.
toText turns a page's HTML into plain lines of text. It removes scripts and styles, which change on many sites every day without anything a reader would notice, and it removes navigation, header and footer blocks, which hold menus and copyright lines. It then starts a new line wherever a paragraph, heading, list item or table row begins or ends, strips the remaining tags, tidies spaces and drops blank lines. What is left looks much like the page's words read aloud, one sentence or price per line.
The main loop pairs each page with its download by position (the first page with the first download, and so on), which works because the HTTP Request node keeps items in order. A page with an error, or with no text, is marked failed with the reason. A page with no saved copy is marked new. A page whose text matches yesterday's exactly is unchanged. Anything else is changed, and the last few lines work out which lines appeared and which disappeared, capped at 40 of each so a full redesign does not send an essay to the AI.
I picked a line comparison over sending both full pages to the model, because it keeps each AI call small and makes the model describe what actually moved rather than summarise the whole page again.
Step 6: Skip pages that failed (Filter)
From here the workflow splits into two branches. Connect a Filter node to the Code node's output; a Filter passes on only the items that meet a condition.
Value 1:
{{ $json.status }}Operation: String, is not equal to
Value 2:
failed
This branch saves today's copies, and a page that failed to load has no copy worth saving. Letting it through would overwrite yesterday's good copy with nothing, and tomorrow every line would look new.
Step 7: Save the latest copy (Data table)
Add a second Data table node after the Filter and set:
Resource: Row. Operation: Upsert
Data table: the same table
Must Match: All Conditions, with one condition: column
url, Equals, value{{ $json.url }}Columns: Map Each Column Below, with
url,pageName,pageTextandcheckedAteach set to the matching field, for example{{ $json.pageText }}
Upsert updates the row for that address if one exists and adds a row if it does not, so the same node handles both a page you have watched for months and one you added this morning.
Step 8: Keep only changed pages (Filter)
Drag a second connection from the Find the pages that changed node and add another Filter:
Value 1:
{{ $json.status }}Operation: String, is equal to
Value 2:
changed
On a quiet day no items pass, the rest of this branch does not run, and no email is sent. You do not need any extra logic for that; n8n stops a branch on its own when there is nothing left to process.
Step 9: Summarise each change with OpenAI (Basic LLM Chain)
The Basic LLM Chain passes a single prompt to a language model and hands back the reply. It keeps no conversation history and calls no tools, and a narrow job like this needs neither. Add one and set:
Source for Prompt (User Message): Define below
Prompt (User Message): the text below
Chat Messages: add one message of type System, with the instruction below
Settings tab: Retry On Fail on
Page: {{ $json.pageName }} ({{ $json.url }})
Lines that are new on the page:
{{ $json.added || "(none)" }}
Lines that are no longer on the page:
{{ $json.removed || "(none)" }}You watch competitor web pages for a small business owner. You are given the lines that appeared and disappeared on one page since yesterday. In at most three short bullet points, say in plain English what changed, putting anything about prices, plans, offers, product names or hiring first. Quote exact numbers. Ignore dates, cookie notices, visitor counters and menu links. If the change is only small wording, reply with the single line "Minor wording change only." Do not guess why the change was made.The prompt gives the model the page name and address, then the lines that appeared and the lines that disappeared; || "(none)" prints a placeholder when one of the lists is empty. The system message sets the order of importance (prices, plans, offers, product names and hiring first), asks for exact numbers, tells the model which kinds of change to ignore and stops it guessing at motives. Without that last sentence a model will often add a confident line about why a competitor raised its prices, which you have no way to check.
Click the Model connector under the chain and add an OpenAI Chat Model:
Credential to connect with: your OpenAI account
Model: By ID,
gpt-6-lunaOptions: leave empty
Step 10: Build the email (Code)
The chain returns one summary per changed page. This Code node gathers them into a single email. Run Once for All Items, JavaScript:
const changed = $('Keep only changed pages').all().map(item => item.json);
const summaries = $input.all().map(item => item.json.text || '');
const everything = $('Find the pages that changed').all().map(item => item.json);
const failed = everything.filter(page => page.status === 'failed');
const firstSeen = everything.filter(page => page.status === 'new');
const sections = changed.map((page, i) => page.pageName + '\n' + page.url + '\n' + summaries[i].trim());
let body = changed.length + ' of ' + everything.length + ' watched pages changed since the last check.\n\n' + sections.join('\n\n');
if (firstSeen.length) {
body += '\n\nSaved for the first time (nothing to compare yet):\n' + firstSeen.map(page => '- ' + page.pageName).join('\n');
}
if (failed.length) {
body += '\n\nCould not be checked today:\n' + failed.map(page => '- ' + page.pageName + ': ' + page.reason).join('\n');
}
return [{ json: { subject: 'Page watch: ' + changed.length + ' change' + (changed.length === 1 ? '' : 's') + ' today', body } }];changed holds the changed pages and summaries the AI's answers, in the same order, so the sections line can join each page's name and address to its summary. everything reaches back to the comparison step for the full list, which lets the email also mention pages saved for the first time and pages that could not be checked. The last line returns one item with a subject and a body, so the next node sends one email however many pages changed.
Step 11: Email me the changes (Gmail)
Add a Gmail node and set:
Credential to connect with: your Gmail account
Resource: Message. Operation: Send
To: your own address, for example
[email protected]Subject:
{{ $json.subject }}Email Type: Text
Message:
{{ $json.body }}Options: add Append n8n Attribution and switch it off
Test it
A change detector needs a yesterday to compare against, so test it in two passes. Run the workflow once with Execute workflow: every page comes back as new, the table fills, and no email is sent. Then change something you can see (add a line to the saved text of one page in the Data table, or point one entry at a page you control and edit it) and run it again. That second run should produce an email.
We tested the build with four made-up pages for two made-up rivals. Yesterday's saved copy of the Rival Roasters pricing page listed a Starter plan at $9 a month. Today's version, which we supplied as sample HTML, listed Starter at $12, added a Team plan at $49, and wrapped the page in a menu, a footer and a small visitor-counting script. The blog page was unchanged, the Bean Box features page had never been seen before, and the careers page returned a 404 error. When this workflow ran, every node succeeded, OpenAI returned its summary in under three seconds, and the email node received this:
Page watch: 1 change today
1 of 4 watched pages changed since the last check.
Rival Roasters pricing
https://example.com/pricing
- Starter increased from $9 to $12 a month.
- New Team plan: $49 a month for offices of up to 20.
Saved for the first time (nothing to compare yet):
- Bean Box features
Could not be checked today:
- Bean Box careers: The resource you are requesting could not be found (404)
All four paths behaved as they should. The menu, footer and script were ignored, the price change and the new plan came through with exact numbers, the new page was saved quietly, and the broken page was reported without stopping the run. The Data table ended the run holding three rows, one for each page that loaded.
Our test did not touch the live web. The OpenAI step and both Data table steps ran for real, while the page downloads and the Gmail send used sample data in their place (n8n calls this pinning). That let us test a price change on demand rather than wait for a real competitor to oblige. Before your first scheduled run, execute the workflow once by hand to see real pages come back and a real email arrive.
Once both passes look right, switch the workflow on with the publish toggle at the top of the editor, and the schedule takes over from there.
Common problems and fixes
"Unsupported parameter: 'temperature' is not supported with this model." Our first test failed with exactly this error. We had set Sampling Temperature in the OpenAI Chat Model's options, and newer OpenAI models reject it. Remove the option and leave Options empty.
Every page shows as changed every day. In our first test the site menu's "Home" link was glued onto the page heading, so the same page looked different from its saved copy. The final code removes nav, header and footer blocks and breaks lines at both the start and end of each block, which fixed it. If a site still changes daily, look at the lines in the summary and add a rule to drop them, such as a date or a visitor counter.
A page comes back almost empty. Some sites build their content in the browser with JavaScript, and a plain HTTP request sees only the empty shell. Open the page's raw text in the HTTP Request node's output; if your prices are missing, use a scraping service that renders pages (see Make it yours).
A site blocks the request or returns 403. Keep the batching interval, check the site's terms, and do not watch more often than once a day. A daily check of a public pricing page is light, but some sites refuse automated requests whatever you do, and those belong on a manual list.
No email on the first day. This is expected: on the first run every page is new and there is nothing to compare. The email starts from the second run.
Make it yours
Keep the list in a Google Sheet. Replace the List the pages to watch node with a Google Sheets node that reads a sheet with pageName and url columns, so anyone on the team can add a page without touching n8n.
Watch one part of a page. Add an HTML node after the fetch with an Extract HTML Content operation and a CSS selector for the pricing table, and compare only that. Fewer lines compared means fewer false alarms.
Render JavaScript-heavy pages. Swap the HTTP Request node for a Firecrawl or similar scraping node that returns the rendered page as text, then feed its text into the comparison in place of
data.Know when the watch itself breaks. Set up an error workflow in Workflow Settings so a failure anywhere in the run sends you a short alert, rather than leaving you wondering whether a quiet week was really quiet.
Download the workflow
To import the build, open a blank workflow in n8n and paste the JSON below straight onto the canvas, or save it as a file and use Import from File. Credentials are not included, so you will be asked to pick your own OpenAI and Gmail accounts. Then make three changes: replace YOUR_DATA_TABLE_ID in both Data table nodes by choosing your table from the list, put your own address in place of [email protected], and edit the four sample pages in List the pages to watch.
{"name":"Check competitor web pages daily, summarise changes with OpenAI and email me",
"nodes":[
{"name":"Every morning at 7am","type":"n8n-nodes-base.scheduleTrigger","typeVersion":1.3,"position":[200,300],"parameters":{"rule":{"interval":[{"field":"days","daysInterval":1,"triggerAtHour":7,"triggerAtMinute":0}]}}},
{"name":"List the pages to watch","type":"n8n-nodes-base.code","typeVersion":2,"position":[420,300],"parameters":{"mode":"runOnceForAllItems","language":"javaScript","jsCode":"const pages = [\n { pageName: 'Rival Roasters pricing', url: 'https://example.com/pricing' },\n { pageName: 'Rival Roasters blog', url: 'https://example.org/blog' },\n { pageName: 'Bean Box features', url: 'https://example.net/features' },\n { pageName: 'Bean Box careers', url: 'https://example.com/careers' }\n];\n\nreturn pages.map(page => ({ json: page }));"}},
{"name":"Fetch each page","type":"n8n-nodes-base.httpRequest","typeVersion":4.4,"position":[640,300],"parameters":{"method":"GET","url":"={{ $json.url }}","options":{"timeout":20000,"batching":{"batch":{"batchSize":1,"batchInterval":2000}},"response":{"response":{"responseFormat":"text","outputPropertyName":"data"}}}},"retryOnFail":true,"onError":"continueRegularOutput"},
{"name":"Load saved copies","type":"n8n-nodes-base.dataTable","typeVersion":1.1,"position":[860,300],"parameters":{"resource":"row","operation":"get","dataTableId":{"__rl":true,"mode":"id","value":"YOUR_DATA_TABLE_ID"},"returnAll":true},"executeOnce":true,"alwaysOutputData":true},
{"name":"Find the pages that changed","type":"n8n-nodes-base.code","typeVersion":2,"position":[1080,300],"parameters":{"mode":"runOnceForAllItems","language":"javaScript","jsCode":"const pages = $('List the pages to watch').all().map(item => item.json);\nconst fetched = $('Fetch each page').all();\nconst saved = {};\nfor (const row of $('Load saved copies').all()) {\n if (row.json.url) saved[row.json.url] = row.json;\n}\n\nfunction toText(html) {\n return String(html || '')\n .replace(/<(script|style)[\\s\\S]*?<\\/\\1>/gi, ' ')\n .replace(/<(nav|header|footer)[\\s\\S]*?<\\/\\1>/gi, ' ')\n .replace(/<\\/?(br|p|div|li|ul|ol|h[1-6]|tr|section|article)\\b[^>]*>/gi, '\\n')\n .replace(/<[^>]+>/g, ' ')\n .replace(/ /g, ' ')\n .replace(/&(amp|#38);/g, '&')\n .split('\\n')\n .map(line => line.replace(/\\s+/g, ' ').trim())\n .filter(Boolean)\n .join('\\n');\n}\n\nconst checkedAt = new Date().toISOString();\n\nreturn pages.map((page, i) => {\n const response = fetched[i] ? fetched[i].json : {};\n const base = { pageName: page.pageName, url: page.url, checkedAt };\n\n if (response.error || typeof response.data !== 'string') {\n const reason = response.error && response.error.message ? response.error.message : 'No page content came back';\n return { json: { ...base, status: 'failed', reason } };\n }\n\n const pageText = toText(response.data).slice(0, 20000);\n const previous = saved[page.url];\n\n if (!previous) return { json: { ...base, status: 'new', pageText } };\n if (previous.pageText === pageText) return { json: { ...base, status: 'unchanged', pageText } };\n\n const oldLines = new Set(String(previous.pageText).split('\\n'));\n const newLines = new Set(pageText.split('\\n'));\n const added = [...newLines].filter(line => !oldLines.has(line)).slice(0, 40).join('\\n');\n const removed = [...oldLines].filter(line => !newLines.has(line)).slice(0, 40).join('\\n');\n\n return { json: { ...base, status: 'changed', pageText, added, removed } };\n});"}},
{"name":"Skip pages that failed","type":"n8n-nodes-base.filter","typeVersion":2.3,"position":[1300,180],"parameters":{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"leftValue":"={{ $json.status }}","operator":{"type":"string","operation":"notEquals"},"rightValue":"failed"}],"combinator":"and"}}},
{"name":"Save the latest copy","type":"n8n-nodes-base.dataTable","typeVersion":1.1,"position":[1520,180],"parameters":{"resource":"row","operation":"upsert","dataTableId":{"__rl":true,"mode":"id","value":"YOUR_DATA_TABLE_ID"},"matchType":"allConditions","filters":{"conditions":[{"keyName":"url","condition":"eq","keyValue":"={{ $json.url }}"}]},"columns":{"mappingMode":"defineBelow","value":{"url":"={{ $json.url }}","pageName":"={{ $json.pageName }}","pageText":"={{ $json.pageText }}","checkedAt":"={{ $json.checkedAt }}"},"matchingColumns":[],"schema":[{"id":"url","displayName":"url","required":false,"defaultMatch":false,"display":true,"type":"string","canBeUsedToMatch":true},{"id":"pageName","displayName":"pageName","required":false,"defaultMatch":false,"display":true,"type":"string","canBeUsedToMatch":true},{"id":"pageText","displayName":"pageText","required":false,"defaultMatch":false,"display":true,"type":"string","canBeUsedToMatch":true},{"id":"checkedAt","displayName":"checkedAt","required":false,"defaultMatch":false,"display":true,"type":"string","canBeUsedToMatch":true}]}}},
{"name":"Keep only changed pages","type":"n8n-nodes-base.filter","typeVersion":2.3,"position":[1300,420],"parameters":{"conditions":{"options":{"caseSensitive":true,"leftValue":"","typeValidation":"strict"},"conditions":[{"leftValue":"={{ $json.status }}","operator":{"type":"string","operation":"equals"},"rightValue":"changed"}],"combinator":"and"}}},
{"name":"Summarise each change with OpenAI","type":"@n8n/n8n-nodes-langchain.chainLlm","typeVersion":1.9,"position":[1520,420],"parameters":{"promptType":"define","text":"=Page: {{ $json.pageName }} ({{ $json.url }})\n\nLines that are new on the page:\n{{ $json.added || \"(none)\" }}\n\nLines that are no longer on the page:\n{{ $json.removed || \"(none)\" }}","messages":{"messageValues":[{"type":"SystemMessagePromptTemplate","message":"You watch competitor web pages for a small business owner. You are given the lines that appeared and disappeared on one page since yesterday. In at most three short bullet points, say in plain English what changed, putting anything about prices, plans, offers, product names or hiring first. Quote exact numbers. Ignore dates, cookie notices, visitor counters and menu links. If the change is only small wording, reply with the single line \"Minor wording change only.\" Do not guess why the change was made."}]}},"retryOnFail":true},
{"name":"OpenAI Chat Model","type":"@n8n/n8n-nodes-langchain.lmChatOpenAi","typeVersion":1.3,"position":[1460,620],"parameters":{"model":{"__rl":true,"mode":"id","value":"gpt-6-luna"},"options":{}}},
{"name":"Build the email","type":"n8n-nodes-base.code","typeVersion":2,"position":[1740,420],"parameters":{"mode":"runOnceForAllItems","language":"javaScript","jsCode":"const changed = $('Keep only changed pages').all().map(item => item.json);\nconst summaries = $input.all().map(item => item.json.text || '');\nconst everything = $('Find the pages that changed').all().map(item => item.json);\nconst failed = everything.filter(page => page.status === 'failed');\nconst firstSeen = everything.filter(page => page.status === 'new');\n\nconst sections = changed.map((page, i) => page.pageName + '\\n' + page.url + '\\n' + summaries[i].trim());\n\nlet body = changed.length + ' of ' + everything.length + ' watched pages changed since the last check.\\n\\n' + sections.join('\\n\\n');\n\nif (firstSeen.length) {\n body += '\\n\\nSaved for the first time (nothing to compare yet):\\n' + firstSeen.map(page => '- ' + page.pageName).join('\\n');\n}\nif (failed.length) {\n body += '\\n\\nCould not be checked today:\\n' + failed.map(page => '- ' + page.pageName + ': ' + page.reason).join('\\n');\n}\n\nreturn [{ json: { subject: 'Page watch: ' + changed.length + ' change' + (changed.length === 1 ? '' : 's') + ' today', body } }];"}},
{"name":"Email me the changes","type":"n8n-nodes-base.gmail","typeVersion":2.2,"position":[1960,420],"parameters":{"resource":"message","operation":"send","sendTo":"[email protected]","subject":"={{ $json.subject }}","emailType":"text","message":"={{ $json.body }}","options":{"appendAttribution":false}}}
],
"connections":{"Every morning at 7am":{"main":[[{"node":"List the pages to watch","type":"main","index":0}]]},"List the pages to watch":{"main":[[{"node":"Fetch each page","type":"main","index":0}]]},"Fetch each page":{"main":[[{"node":"Load saved copies","type":"main","index":0}]]},"Load saved copies":{"main":[[{"node":"Find the pages that changed","type":"main","index":0}]]},"Find the pages that changed":{"main":[[{"node":"Skip pages that failed","type":"main","index":0},{"node":"Keep only changed pages","type":"main","index":0}]]},"Skip pages that failed":{"main":[[{"node":"Save the latest copy","type":"main","index":0}]]},"Keep only changed pages":{"main":[[{"node":"Summarise each change with OpenAI","type":"main","index":0}]]},"Summarise each change with OpenAI":{"main":[[{"node":"Build the email","type":"main","index":0}]]},"OpenAI Chat Model":{"ai_languageModel":[[{"node":"Summarise each change with OpenAI","type":"ai_languageModel","index":0}]]},"Build the email":{"main":[[{"node":"Email me the changes","type":"main","index":0}]]}},
"settings":{"executionOrder":"v1"}}If I were setting this up tomorrow, the first change I'd make is to swap the sample list for your three most direct rivals' pricing pages and nothing else, then add more only once a fortnight of emails has shown you which pages are worth the attention

