Automate Website Performance Monitoring with Lighthouse & Gemini
detail.loadingPreview
Automatically monitor your website's Core Web Vitals using the PageSpeed Insights API and receive intelligent performance insights via Google Gemini and instant Telegram alerts. Optimize your site's SEO and user experience effortlessly.
About This Workflow
Take control of your website's performance with this automated workflow. It leverages the power of the Google PageSpeed Insights API to fetch detailed Lighthouse reports, focusing on crucial Core Web Vitals like First Contentful Paint, Largest Contentful Paint, and Cumulative Layout Shift. The workflow intelligently processes this data, flagging any metrics below a performance threshold. For deeper analysis, it utilizes Google Gemini to summarize audit descriptions, providing actionable insights. Receive immediate notifications of performance issues directly via Telegram, ensuring you can react swiftly to maintain an optimal user experience and boost your SEO rankings.
Key Features
- Automated Core Web Vitals Monitoring: Regularly fetches and analyzes key performance metrics.
- Intelligent Performance Alerts: Notifies you instantly via Telegram when any Core Web Vital score drops.
- AI-Powered Audit Summaries: Uses Google Gemini to condense complex audit descriptions into understandable insights.
- Customizable Scheduling: Set your preferred intervals for performance checks.
- Developer-Friendly: Designed for easy integration and customization.
How To Use
- Set up Schedule Trigger: Configure the "Schedule Trigger" node to define how often you want to run the performance checks (e.g., every few minutes or hours).
- Configure PageSpeed Insights API: In the "call page speed insights" node, ensure you provide your target website URL and your Google API Key. You can obtain an API key from the Google Cloud Console. The
strategyis set tomobileby default, but you can change it todesktopif needed. - Process API Response: The "processing data cwv and audits" node automatically extracts and organizes Core Web Vitals data and concatenates audit descriptions from the PageSpeed Insights API response.
- AI-Powered Summarization (Optional but Recommended): Connect the "processing data cwv and audits" node to the "Google Gemini Chat Model" node. Configure the Gemini node with your desired prompt to summarize the extracted audit descriptions.
- Conditional Notification: The "If" node checks if any Core Web Vital score is below 0.95. If a score is lower, it triggers the notification.
- Send Telegram Alert: Configure the "Send Notification" node with your Telegram Bot Token and Chat ID. The node will send a detailed message including the affected Core Web Vitals, their values, scores, and any summarized audit descriptions.
- Connect Credentials: Ensure you have correctly set up and connected your Google API account and Telegram account credentials within n8n.
Apps Used
Workflow JSON
{
"id": "07e9e7cc-62c8-4926-a48c-24c5b9d9e5a2",
"name": "Automate Website Performance Monitoring with Lighthouse & Gemini",
"nodes": 18,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: 07e9e7cc-62c8...
About the Author
Crypto_Watcher
Web3 Developer
Automated trading bots and blockchain monitoring workflows.
Statistics
Related Workflows
Discover more workflows you might like
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.
Visualize Your n8n Workflows: Interactive Dashboard with Mermaid.js
Gain unparalleled visibility into your n8n automation landscape. This workflow transforms your n8n instance into a dynamic, interactive dashboard, leveraging Mermaid.js to visualize all your workflows in one accessible place.