Skip to main content

Monitor core web vitals with Lighthouse, Gemini AI, Telegram alerts & Google Sheets

Workflow preview

Workflow preview
100%
Monitor core web vitals with Lighthouse, Gemini AI, Telegram alerts & Google Sheets preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Automate Lighthouse report alerts to messenger and Google Sheets Who’s it for This workflow is ideal for developers, SEO specialists, performance engineers, and digital agencies who want to continu...

Best for

  • DevOps automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.scheduletrigger, @n8n/n8n-nodes-langchain.lmchatgooglegemini, n8n-nodes-base.if, n8n-nodes-base.telegram, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.stickynote, @n8n/n8n-nodes-langchain.chainsummarization

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Rully Saputra.

Original n8n.io source

1.1 Workflow description

Title
Monitor core web vitals with Lighthouse, Gemini AI, Telegram alerts & Google Sheets
Workflow name
Monitor core web vitals with Lighthouse, Gemini AI, Telegram alerts & Google Sheets

Automate Lighthouse report alerts to messenger and Google Sheets

Who’s it for

This workflow is ideal for developers, SEO specialists, performance engineers, and digital agencies who want to continuously monitor website performance using Core Web Vitals. It’s also perfect for product or infrastructure teams that need real-time alerts when a site underperforms and want a historical log of reports in Google Sheets.

What it does

This automation periodically fetches a Lighthouse report from the PageSpeed Insights API, checks whether any of the Core Web Vitals (CWV) scores fall below a defined threshold, and sends a notification to Telegram (or any other preferred messenger). It also logs the summarized report in a specific row within a Google Spreadsheet for long-term tracking and reporting.

The CWV audit results are processed using JavaScript and passed through a summarization step using Gemini Chat, making the audit descriptions concise and actionable.

How to set up

  1. Configure the Schedule Trigger node to run at your preferred frequency.

  2. Set your target URLs and API Key, then connect the HTTP Request node to Google PageSpeed Insights.

  3. Update the JavaScript Code node to filter and parse only CWV metrics.

  4. Define thresholds in the IF Node to trigger Telegram messages only when needed.

  5. Connect your Telegram (or other messenger) credentials.

  6. Set up the Google Sheets node by linking your account and choosing the sheet and range to log data.

Requirements

  • Google account with access to Google Sheets

  • Telegram bot token or any preferred messenger

  • API key for PageSpeed Insights

  • Gemini Chat integration (optional for summarization, can be replaced or removed)

How to customize the workflow

Swap Telegram for Slack, Discord, or email by replacing the Send Notification node.

Adjust the CWV thresholds or include other Lighthouse metrics by modifying the IF Node and JavaScript logic.

Add multiple URLs to monitor by introducing a loop or extending the schedule with different endpoints.

Replace the Gemini Chat model with OpenAI, Claude, or your custom summarizer if needed.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Schedule Trigger

Type / Role
n8n-nodes-base.scheduleTrigger - scheduleTrigger
Config choices
Version 1.2

Block 2 - Google Gemini Chat Model

Type / Role
@n8n/n8n-nodes-langchain.lmChatGoogleGemini - lmChatGoogleGemini
Config choices
Version 1

Block 3 - If

Type / Role
n8n-nodes-base.if - if
Config choices
Version 2.2

Block 4 - Send Notification

Type / Role
n8n-nodes-base.telegram - telegram
Config choices
Version 1.2

Block 5 - call page speed insights

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 6 - processing data cwv and audits

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 7 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - Sticky Note1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 9 - Sticky Note2

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 10 - summarize audit description

Type / Role
@n8n/n8n-nodes-langchain.chainSummarization - chainSummarization
Config choices
Version 2.1

Block 11 - Sticky Note3

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 12 - Sticky Note4

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 13 - Append row in specific sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.6

3. Summary Table

Workflow Monitor core web vitals with Lighthouse, Gemini AI, Telegram alerts & Google Sheets
Complexity intermediate
Nodes 13
Categories DevOps, AI Summarization
Author Rully Saputra
Published 26 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6490/6490.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Monitor core web vitals with Lighthouse, Gemini AI, Telegram alerts & Google Sheets do?

Automate Lighthouse report alerts to messenger and Google Sheets Who’s it for This workflow is ideal for developers, SEO specialists, performance engineers, and digital agencies who want to continu...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your DevOps, AI Summarization use case.