Skip to main content

Compare website SEO gaps using Google Sheets, HTML and Gemini AI

Workflow preview

Workflow preview
100%
Compare website SEO gaps using Google Sheets, HTML and Gemini AI preview
Open on n8n.io

1. Workflow Overview

How it works This workflow automates SEO analysis by comparing your website with a competitor’s site. It reads input URLs from Google Sheets, scrapes structured SEO data from both sites, and expand...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.googlesheets, n8n-nodes-base.if, n8n-nodes-base.set, n8n-nodes-base.html, n8n-nodes-base.code, n8n-nodes-base.splitinbatches, n8n-nodes-base.httprequest

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Compare website SEO gaps using Google Sheets, HTML and Gemini AI
Workflow name
Compare website SEO gaps using Google Sheets, HTML and Gemini AI

How it works

This workflow automates SEO analysis by comparing your website with a competitor’s site. It reads input URLs from Google Sheets, scrapes structured SEO data from both sites, and expands into important internal pages for deeper insights. The collected data is processed and merged before being analyzed using Google Gemini AI. Finally, it generates a structured SEO gap report and saves it back into Google Sheets while updating the workflow status.

Step-by-step

  • Trigger and filter input data

  • Manual Trigger – Starts the workflow execution manually.

  • Google Sheets (Get row(s)) – Fetches website data from the input sheet.

  • If – Filters only rows where status is NEW.

  • Prepare and fetch website data

  • Set (Edit Fields) – Maps your website and competitor URLs.

  • HTTP Request (My Website HTTP) – Fetches your website HTML.

  • HTTP Request (Competitor) – Fetches competitor website HTML.

  • HTML (Extract Data) – Extracts SEO elements like title, H1, H2, links, and content.

  • Extract and process internal pages

  • Code (All Links) – Filters important internal URLs from both websites.

  • Google Sheets (Insert Links) – Stores extracted links.

  • Split In Batches – Iterates through each page URL.

  • HTTP Request + HTML + Code – Scrapes and formats SEO data for each page.

  • Store and update structured SEO data

  • Google Sheets (Append & Update) – Saves page-level SEO data.

  • Wait nodes – Controls execution timing and prevents rate limits.

  • Analyze SEO gaps using AI

  • Merge – Combines your site and competitor data.

  • Code – Structures merged dataset.

  • Google Gemini (Message a model) – Generates SEO gap analysis.

  • Code (Parse JSON) – Cleans and validates AI output.

  • Save report and finalize workflow

  • Google Sheets (Append Report) – Stores SEO gap report.

  • Google Sheets (Update Row) – Marks input row as DONE.

Why use this?

  • Automates complete SEO competitor analysis without manual effort
  • Identifies keyword, content, and technical SEO gaps instantly
  • Scales across multiple websites and competitors efficiently
  • Provides AI-driven insights and actionable SEO improvement plans
  • Centralizes all SEO data and reports inside Google Sheets

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 - When clicking ‘Execute workflow’

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

Block 2 - Get row(s) in sheet

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

Block 3 - If

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

Block 4 - Edit Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 5 - HTML (for My website)

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

Block 6 - All Links (My Website)

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

Block 7 - Loop Over Items

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Block 8 - HTTP Request2

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

Block 9 - My Website HTTP

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

Block 10 - HTTP (for Competitor)

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

Block 11 - HTML (for Competitor Website)

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

Block 12 - Competitor Data

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

Block 13 - Append in Competitor Sheet

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

Block 14 - My Website Data

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

Block 15 - Wait

Type / Role
n8n-nodes-base.wait - wait
Config choices
Version 1.1

Block 16 - Append First Row of My website

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

Block 17 - All Links (Competitor Website)

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

Block 18 - HTML (All Links My Web)

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

Block 19 - All Links Data (My Website)

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

Block 20 - Inserted All Links in sheets

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

Block 21 - Inserted all Links (Competitor Website)

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

Block 22 - Get row(s) in sheet2

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

Block 23 - Get Rows from All links

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

Block 24 - Loop Over Items1

Type / Role
n8n-nodes-base.splitInBatches - splitInBatches
Config choices
Version 3

Showing the first 24 of 47 workflow blocks. Download the JSON for the full node graph.

3. Summary Table

Workflow Compare website SEO gaps using Google Sheets, HTML and Gemini AI
Complexity advanced
Nodes 47
Categories Market Research, AI Summarization
Author Avkash Kakdiya
Published 18 Mar 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/14151/14151.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 Compare website SEO gaps using Google Sheets, HTML and Gemini AI do?

How it works This workflow automates SEO analysis by comparing your website with a competitor’s site. It reads input URLs from Google Sheets, scrapes structured SEO data from both sites, and expand...

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 Market Research, AI Summarization use case.