Skip to main content

Automate website performance analysis and comparison using Gemini and PageSpeed Insights

Workflow preview

Workflow preview
100%
Automate website performance analysis and comparison using Gemini and PageSpeed Insights preview
Open on n8n.io

Important notice

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

1. Workflow Overview

The Page Speed Insight workflow automates website performance analysis by integrating Google PageSpeed Insights API with Discord messaging and Gemini. This n8n workflow provides expert level perfor...

Best for

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

Tools used

n8n-nodes-google-pagespeed.googlepagespeed, n8n-nodes-base.stickynote, n8n-nodes-base.discord, n8n-nodes-base.scheduletrigger, n8n-nodes-base.switch, n8n-nodes-base.code, @n8n/n8n-nodes-langchain.lmchatgooglegemini, @n8n/n8n-nodes-langchain.chainllm

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Automate website performance analysis and comparison using Gemini and PageSpeed Insights
Workflow name
Automate website performance analysis and comparison using Gemini and PageSpeed Insights

The Page Speed Insight workflow automates website performance analysis by integrating Google PageSpeed Insights API with Discord messaging and Gemini. This n8n workflow provides expert-level performance audits and comparisons, delivering actionable insights for website owners, SEO professionals, and developers.

Disclaimer: this workflow using community nodes Google PageSpeed Insights Community Node

πŸ’‘ Why Use Page Speed Insight?

  • Save Time: Instantly analyze and compare website speeds without manual tool usage
  • Eliminate Guesswork: Receive expert audit reports that translate technical data into clear, actionable insights
  • Improve Website Outcomes: Identify critical bottlenecks and enhancements prioritized by AI-driven analysis
  • Seamless Integration: Pull URLs and deliver reports directly via Discord for team collaboration and immediate response

⚑ Who Is This For?

  • Webmasters and website owners seeking fast, automated performance checks
  • SEO analysts who need consistent, data-backed website comparisons
  • Developers requiring clear, prioritized action points from performance audits
  • Digital agencies managing multiple client sites with ongoing monitoring needs

πŸ”§ What This Workflow Does

  • ⏱ Trigger: Discord message containing URLs or scheduled execution
  • πŸ“Ž Parse: Extracts URLs and determines analysis type (single/comparison)
  • πŸ” Analyze: Calls Google PageSpeed API for performance data
  • πŸ€– Process: AI generates user-friendly reports from raw Lighthouse JSON
  • πŸ’Œ Deliver: Sends chunked reports to Discord channels
  • πŸ—‚ Log: Stores execution data for review and improvement

πŸ” Setup Instructions

  1. Import the provided JSON workflow into your n8n instance

  2. Set up credentials for:

    • Google PageSpeed API (ensure you have a valid API key β€” get yours here)
    • Discord Bot API with permissions to read messages and send messages in your chosen guild/channel
  3. Customize the workflow by adjusting:

    • Discord guild and channel IDs where messages are monitored and results posted
    • Scheduled trigger interval if needed
    • Any prompt text or AI model parameters to tailor report tone and detail level
  4. Test thoroughly with real URLs and Discord interaction to confirm smooth data flow and output quality

🧩 Pre-Requirements

  • Active n8n instance (Cloud or self-hosted)
  • n8n Google PageSpeed community node
  • Google PageSpeed Insights API key
  • Discord Bot credentials with channel access
  • Google Gemini AI credentials (recommended)

πŸ› οΈ Customize It Further

  • Extend to analyze desktop performance or other device types easily by modifying the PageSpeed API call
  • Integrate with Slack, email, or other team tools alongside Discord for broader notification
  • Enhance report depth by adding more AI-driven insights like competitor site recommendations or historical trend tracking

🧠 Nodes Used

  • Google PageSpeed Insights Community Node
  • Discord (getAllMessages, sendMessage)
  • Code (URL parsing, message chunking)
  • AI Language Model (Google Gemini)
  • Schedule Trigger
  • Switch (message type handling)
  • Sticky Notes (workflow guidance)

πŸ“ž Support

Made by: khaisa Studio
Tag: automation, performance, SEO, google-pagespeed, discord
Category: Monitoring & Reporting

Need a custom solution? Contact Me

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 - Analyze Single url

Type / Role
n8n-nodes-google-pagespeed.googlePageSpeed - googlePageSpeed
Config choices
Version 2

Block 2 - Sticky Note

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

Block 3 - Analyze from sitemap

Type / Role
n8n-nodes-google-pagespeed.googlePageSpeed - googlePageSpeed
Config choices
Version 2

Block 4 - Get many messages

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

Block 5 - Schedule Trigger

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

Block 6 - Analyze multiple url in batch

Type / Role
n8n-nodes-google-pagespeed.googlePageSpeed - googlePageSpeed
Config choices
Version 2

Block 7 - Sticky Note1

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

Block 8 - Send a message

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

Block 9 - Switch

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.2

Block 10 - Parse Into Sections

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

Block 11 - Gemini

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

Block 12 - AI Agent

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 13 - Compare Website

Type / Role
@n8n/n8n-nodes-langchain.chainLlm - chainLlm
Config choices
Version 1.7

Block 14 - Parse Comparison

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

Block 15 - Sticky Note2

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

Block 16 - Compare Mobile Performance

Type / Role
n8n-nodes-google-pagespeed.googlePageSpeed - googlePageSpeed
Config choices
Version 2

Block 17 - Parse Url

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

3. Summary Table

Workflow Automate website performance analysis and comparison using Gemini and PageSpeed Insights
Complexity advanced
Nodes 17
Categories DevOps, AI Summarization
Author Khairul Muhtadin
Published 19 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6166/6166.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 Automate website performance analysis and comparison using Gemini and PageSpeed Insights do?

The Page Speed Insight workflow automates website performance analysis by integrating Google PageSpeed Insights API with Discord messaging and Gemini. This n8n workflow provides expert level perfor...

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.