Skip to main content

Generate SEO-optimized blog content with Gemini, Scrapeless and Pinecone RAG

Workflow preview

Workflow preview
100%
Generate SEO-optimized blog content with Gemini, Scrapeless and Pinecone RAG 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 contains community nodes that are only compatible with the self hosted version of n8n. How it works This advanced automation builds a fully autonomous SEO blog writer using n8n , Scra...

Best for

  • Content Creation automation workflows
  • AI RAG automation workflows
  • advanced n8n builders looking for reusable templates

Tools used

n8n-nodes-base.manualtrigger, @n8n/n8n-nodes-langchain.vectorstorepinecone, @n8n/n8n-nodes-langchain.documentdefaultdataloader, @n8n/n8n-nodes-langchain.textsplitterrecursivecharactertextsplitter, @n8n/n8n-nodes-langchain.chattrigger, @n8n/n8n-nodes-langchain.memorybufferwindow, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.embeddingsgooglegemini

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate SEO-optimized blog content with Gemini, Scrapeless and Pinecone RAG
Workflow name
Generate SEO-optimized blog content with Gemini, Scrapeless and Pinecone RAG

This workflow contains community nodes that are only compatible with the self-hosted version of n8n.

How it works

This advanced automation builds a fully autonomous SEO blog writer using n8n, Scrapeless, LLMs, and Pinecone vector database. It’s powered by a Retrieval-Augmented Generation (RAG) system that collects high-performing blog content, stores it in a vector store, and then generates new blog posts based on that knowledge—endlessly.

Part 1: Build a Knowledge Base from Popular Blogs

  • Scrape existing articles from a well-established writer (in this case, Mark Manson) using the Scrapeless node.
  • Extract content from blog pages and store it in Pinecone, a powerful vector database that supports similarity search.
  • Use Gemini Embedding 001 or any other supported embedding model to encode blog content into vectors.
  • Result: You’ll have a searchable vector store of expert-level content, ready to be used for content generation and intelligent search.

Part 2: SERP Analysis & AI Blog Generation

  • Use Scrapeless' SERP node to fetch search results based on your keyword and search intent.
  • Send the results to an LLM (like Gemini, OpenRouter, or OpenAI) to generate a keyword analysis report in Markdown → then converted to HTML.
  • Extract long-tail keywords, search intent insights, and content angles from this report.
  • Feed everything into another LLM with access to your Pinecone-stored knowledge base, and generate a fully SEO-optimized blog post.

Set up steps

Prerequisites

Credential Configuration

  • Add your Scrapeless and Pinecone credentials in n8n under the "Credentials" tab
  • Choose embedding dimensions according to the model you use (e.g., 768 for Gemini Embedding 001)

Key Highlights

  • Clones a real content creator: Replicates knowledge and writing style from top-performing blog authors.
  • Auto-scrapes hundreds of blog posts without being blocked.
  • Stores expert content in a vector DB to build a reusable knowledge base.
  • Performs real-time SERP analysis using Scrapeless to fetch and analyze search data.
  • Generates SEO blog drafts using RAG with detailed keyword intelligence.
  • Output includes: blog title, HTML summary report, long-tail keywords, and AI-written article body.

RAG + SEO: The Future of Content Creation

This template combines:

  • AI reasoning from large language models
  • Reliable data scraping from Scrapeless
  • Scalable storage via Pinecone vector DB
  • Flexible orchestration using n8n nodes

This is not just an automation—it’s a full-stack SEO content machine that enables you to:

  • Build a domain-specific knowledge base
  • Run intelligent keyword research
  • Generate traffic-ready content on autopilot

💡 Use Cases

  • SaaS content teams cloning competitor success
  • Affiliate marketers scaling high-traffic blog production
  • Agencies offering automated SEO content services
  • AI researchers building personal knowledge bots
  • Writers automating first-draft generation with real-world tone

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 - Pinecone Vector Store

Type / Role
@n8n/n8n-nodes-langchain.vectorStorePinecone - vectorStorePinecone
Config choices
Version 1.2

Block 3 - Default Data Loader

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

Block 4 - Recursive Character Text Splitter

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

Block 5 - When chat message received

Type / Role
@n8n/n8n-nodes-langchain.chatTrigger - chatTrigger
Config choices
Version 1.1

Block 6 - Window Buffer Memory

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

Block 7 - AI Agent1

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

Block 8 - Pinecone Vector Store3

Type / Role
@n8n/n8n-nodes-langchain.vectorStorePinecone - vectorStorePinecone
Config choices
Version 1.2

Block 9 - Embeddings Google Gemini3

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

Block 10 - Google Gemini Chat Model3

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

Block 11 - Aggregate

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

Block 12 - Convert to File

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

Block 13 - Edit Fields1

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

Block 14 - Basic LLM Chain1

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

Block 15 - Google Gemini Chat Model1

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

Block 16 - Markdown

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

Block 17 - HTML

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

Block 18 - Loop Over Items

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

Block 19 - Sticky Note

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

Block 20 - Sticky Note1

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

Block 21 - Sticky Note2

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

Block 22 - Sticky Note3

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

Block 23 - Embeddings Google Gemini

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

Block 24 - Crawl all Blogs

Type / Role
n8n-nodes-scrapeless.scrapeless - scrapeless
Config choices
Version 1

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

3. Summary Table

Workflow Generate SEO-optimized blog content with Gemini, Scrapeless and Pinecone RAG
Complexity advanced
Nodes 28
Categories Content Creation, AI RAG
Author scrapeless official
Published 16 Jul 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/6057/6057.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-optimized blog content with Gemini, Scrapeless and Pinecone RAG do?

This workflow contains community nodes that are only compatible with the self hosted version of n8n. How it works This advanced automation builds a fully autonomous SEO blog writer using n8n , Scra...

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 Content Creation, AI RAG use case.