Skip to main content

Generate SEO meta tags with Gemini AI & competitor analysis using Google Sheets

Workflow preview

Workflow preview
100%
Generate SEO meta tags with Gemini AI & competitor analysis using 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

This workflow automates the entire process of creating SEO optimized meta titles and descriptions. It analyzes your webpage, spies on top ranking competitors for the same keywords, and then uses a ...

Best for

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

Tools used

n8n-nodes-base.googlesheets, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.splitinbatches, n8n-nodes-base.html, n8n-nodes-base.googlesheetstrigger, n8n-nodes-base.set

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate SEO meta tags with Gemini AI & competitor analysis using Google Sheets
Workflow name
Generate SEO meta tags with Gemini AI & competitor analysis using Google Sheets

This workflow automates the entire process of creating SEO-optimized meta titles and descriptions. It analyzes your webpage, spies on top-ranking competitors for the same keywords, and then uses a multi-step AI process to generate compelling, length-constrained meta tags.

🤖 How It Works This workflow operates in a three-phase process for each URL you provide:

Phase 1: Self-Analysis

When you add a URL to a Google Sheet with the status "New", the workflow scrapes your page's content.

The first AI then performs a deep analysis to identify the page's primary keyword, semantic keyword cluster, search intent, and target audience.

Phase 2: Competitor Intelligence

The workflow takes your primary keyword and performs a live Google search.

A custom code block intelligently filters the search results to identify true competitors.

A second AI analyzes their meta titles and descriptions to find common patterns and successful strategies.

Phase 3: Master Generation & Update

The final AI synthesizes all gathered intelligence—your page's data and the competitor's winning patterns—to generate a new, optimized meta title and description.

It then writes this new data back to your Google Sheet and updates the status to "Generated".

⚙️ Setup Instructions You should be able to set up this workflow in about 10-15 minutes ⏱️.

🔑 Prerequisites You will need the following accounts and API keys:

A Google Account with access to Google Sheets.

A Google AI / Gemini API key.

A SerpApi key for Google search data.

A ScrapingDog API key for reliable website scraping.

🛠️ Configuration Google Sheet Setup: Create a new Google Sheet. The workflow requires the following columns: URL, Status, Current Meta Title, Current Meta Description, Generated Meta Title, Generated Meta Description, and Ranking Factor.

Add Credentials:

Google Sheets Nodes: Connect your Google account credentials to the Google Sheets Trigger & Google Sheets nodes.

Google Gemini Nodes: Add your Google Gemini API key to the credentials for all three Google Gemini Chat Model nodes.

Scrape Website Node: In this HTTP Request node, go to Query Parameters and replace <your-api-key> with your ScrapingDog API key.

Googl SERP Node: In this HTTP Request node, go to Query Parameters and replace <your-api-key> with your SerpApi API key.

Configure Google Sheets Nodes:

Copy the Document ID from your Google Sheet's URL.

Paste this ID into the "Document ID" field in the following nodes: Google Sheets Trigger, Get row(s) in sheet1, and Update row in sheet.

In each of those nodes, select the correct sheet name from the "Sheet Name" dropdown.

âś… Activate Workflow Save and activate the workflow. To run it, simply add a new row to your Google Sheet containing the URL you want to process and set the "Status" column to New.

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 - Get row(s) in sheet1

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

Block 2 - Structured Output Parser

Type / Role
@n8n/n8n-nodes-langchain.outputParserStructured - outputParserStructured
Config choices
Version 1.3

Block 3 - Googl SERP

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

Block 4 - Code1

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

Block 5 - Update row in sheet

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

Block 6 - Loop Over Items

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

Block 7 - Update row in sheet1

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

Block 8 - HTML

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

Block 9 - Google Sheets Trigger

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

Block 10 - Edit Fields

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

Block 11 - Google Gemini Chat Model

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

Block 12 - Google Gemini Chat Model1

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

Block 13 - Google Gemini Chat Model2

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

Block 14 - Code

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

Block 15 - Code2

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

Block 16 - Sticky Note

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

Block 17 - Sticky Note1

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

Block 18 - Sticky Note2

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

Block 19 - AI Analyzer

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

Block 20 - Scrape Website

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

Block 21 - Sticky Note3

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

Block 22 - Competitor Analysis

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

Block 23 - Sticky Note4

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

Block 24 - Master Generator

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

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

3. Summary Table

Workflow Generate SEO meta tags with Gemini AI & competitor analysis using Google Sheets
Complexity advanced
Nodes 27
Categories Market Research, Multimodal AI
Author Saeculum Solutions
Published 16 Oct 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/9750/9750.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 Generate SEO meta tags with Gemini AI & competitor analysis using Google Sheets do?

This workflow automates the entire process of creating SEO optimized meta titles and descriptions. It analyzes your webpage, spies on top ranking competitors for the same keywords, and then uses a ...

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, Multimodal AI use case.