This n8n workflow automates the process of monitoring website performance by regularly retrieving Google PageSpeed Insights reports, analyzing Core Web Vitals (CWV), and sending real-time notifications if scores fall below a set threshold. The workflow is triggered on a scheduled basis and seamlessly integrates with Google APIs, Chat Models, and messaging platforms to provide ongoing performance insights for web developers, SEO specialists, and digital teams.
The process begins with a schedule trigger that initiates the workflow at specified intervals. It then makes an HTTP request to Google’s PageSpeed Insights API, fetching performance data for a specified URL using a mobile strategy. The API response includes various Lighthouse audits, which are processed by a code node that filters out core web vital metrics like First Contentful Paint, Speed Index, Largest Contentful Paint, Total Blocking Time, Interactive, and Cumulative Layout Shift.
Additional sticky notes provide guidance on how to use the PageSpeed Insights API and process the audit data. The workflow uses a language model node to summarize the audit reports into actionable items, acting as an insightful performance report.
A key conditional node checks whether any CWV score drops below 0.95, triggering a Telegram notification to alert team members of potential issues. If desired, the workflow can log these details into Google Sheets for historical tracking. This automation helps teams maintain optimal site performance, quickly identify issues, and improve user experience through proactive monitoring.
Reviews
There are no reviews yet.