Quick overview
This workflow runs every Monday, checks Core Web Vitals field data for a list of URLs using an Apify actor, appends weekly results to a Google Sheets History tab, and posts a consolidated Slack alert when any page’s metrics regress versus the previous week.
How it works
- Runs every Monday at 7:00 on a schedule.
- Sends the configured URLs, devices, and sync key to an Apify Core Web Vitals monitoring actor and retrieves the results dataset.
- Keeps only pages with available CrUX field data (status "ok") and drops pages without sufficient real-user traffic.
- Appends the date, URL, device, assessment, LCP, INP, CLS, and change type for each page to the History sheet in Google Sheets.
- Filters to results that got worse compared to the previous week and builds a single, aggregated Slack message listing affected pages and reasons.
- Posts the regression alert to the selected Slack channel, or posts an error message to Slack if the Apify run fails.
Setup
- Install the Apify community node (@apify/n8n-nodes-apify) and add an Apify credential (token or OAuth).
- Add Google Sheets OAuth credentials, create a spreadsheet with a "History" tab, and paste the spreadsheet URL into the Google Sheets append step.
- Add Slack credentials and set the target channel name in the workflow settings (slackChannel).
- Update the workflow settings for urls, devices, and a unique syncKey per page list/device set so week-over-week comparisons stay consistent.
Requirements
- n8n with the verified Apify community node (@apify/n8n-nodes-apify), tested with version 0.9.1 on n8n Cloud
- An Apify account (the free plan's monthly credit covers small page lists)
- A Google account with Google Sheets and a Slack workspace
Customization
- Monitor whole sites: replace urls with domains and fromSitemap: true in the Apify input
- Add desktop to devices, or mode: audit for Lighthouse lab scores and recommendations
- Change the schedule, the history columns in Select Vital Metrics, or the Slack message in Build Slack Alert
Additional info
Unlike PageSpeed-score monitors, this workflow uses Google's real-user field data (Chrome UX Report, 28-day p75), so alerts don't fire on Lighthouse lab-score noise. Pages with too little Chrome traffic have no field data and are skipped, and regressions appear gradually because CrUX is a rolling 28-day window. The first run records a baseline; alerts start the following week. Cost: about $0.025 per weekly run for 10 pages (Apify pay-per-result), capped at $0.20 per run in the Apify node.