Skip to main content

Generate SEO blog posts from web searches with Mistral AI and Google Drive

Workflow preview

Workflow preview
100%
Generate SEO blog posts from web searches with Mistral AI and Google Drive preview
Open on n8n.io

Important notice

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

1. Workflow Overview

Overview This template automates the process of researching a keyword, scraping top ranking articles, cleaning their content, and generating a high quality SEO optimized blog post. It uses Googl...

Best for

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

Tools used

@n8n/n8n-nodes-langchain.chattrigger, n8n-nodes-base.code, n8n-nodes-base.splitinbatches, n8n-nodes-base.httprequest, n8n-nodes-base.stickynote, n8n-nodes-base.googledrive, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatollama

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Generate SEO blog posts from web searches with Mistral AI and Google Drive
Workflow name
Generate SEO blog posts from web searches with Mistral AI and Google Drive

πŸ“– Overview

This template automates the process of researching a keyword, scraping top-ranking articles, cleaning their content, and generating a high-quality SEO-optimized blog post. It uses Google Search via RapidAPI, Ollama with Mistral AI, and Google Drive to deliver an end-to-end automated content workflow.

Ideal for content creators, SEO specialists, bloggers, and marketers who need to quickly gather and summarize insights from multiple sources to create superior content.

βš™οΈ Prerequisites

Before using this workflow, make sure you have:

n8n installed (Desktop, Docker, or Cloud).

Ollama installed with the mistral:7b model:

ollama pull mistral:7b

RapidAPI account (for Google Search API).

Google Drive account (with a target folder where articles will be saved).

πŸ”‘ Credentials Required

RapidAPI (Google Search API)

Header authentication with your API key.

Example headers:

x-rapidapi-key: YOUR_API_KEY x-rapidapi-host: google-search74.p.rapidapi.com

Google Drive OAuth2

Allow read/write permissions.

Update the folderId with your Drive folder where articles should be stored.

Ollama API

Base URL:

http://localhost:11434 (local n8n)

http://host.docker.internal:11434 (inside Docker)

Ensure the mistral:7b model is available.

πŸš€ Setup Instructions

Configure RapidAPI

Sign up at RapidAPI .

Subscribe to the Google Search API.

Create an HTTP Header Auth credential in n8n with your API key.

Configure Google Drive

In n8n, add a Google Drive OAuth2 credential.

Select the Drive folder ID where output files should be saved.

Configure Ollama

Install Ollama locally.

Pull the required model (mistral:7b).

Create an Ollama API credential in n8n.

Run the Workflow

Trigger by sending a chat message with your target keyword.

The workflow searches Google, extracts the top 3 results, scrapes the articles, cleans the content, and generates a structured blog post.

Final output is stored in Google Drive as a .docx file.

🎨 Customization Options

Search Engine β†’ Swap out RapidAPI with Bing or SerpAPI.

Number of Articles β†’ Change limit: 3 in the Google Search node.

Content Cleaning β†’ Modify the regex in the β€œClean Body Text” node to capture

or tags.

AI Model β†’ Replace mistral:7b with llama3, mixtral, or any other Ollama-supported model.

Storage β†’ Save output to a different Google Drive folder or export to Notion/Slack.

πŸ“Œ Workflow Highlights

Google Search (RapidAPI) β†’ Fetch top 3 results for your keyword.

HTTP Request + Code Nodes β†’ Extract and clean article body text.

Mistral AI via Ollama β†’ Summarize, optimize, and refine the content.

Google Drive β†’ Save the final blog-ready article automatically.

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 chat message received

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

Block 2 - Code

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

Block 3 - Loop Over Items

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

Block 4 - Get content from URL

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

Block 5 - Loop Over Items1

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

Block 6 - Sticky Note

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

Block 7 - Sticky Note1

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

Block 8 - Sticky Note2

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

Block 9 - Create Body Text Code

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

Block 10 - Clean body text

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

Block 11 - Google Drive

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

Block 12 - Data extractor and summarizer1

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

Block 13 - Seo Content1

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

Block 14 - Refine Content1

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

Block 15 - Ollama Chat Model

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

Block 16 - Google Search (rapid api)

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

3. Summary Table

Workflow Generate SEO blog posts from web searches with Mistral AI and Google Drive
Complexity advanced
Nodes 16
Categories Content Creation, Multimodal AI
Author Zakwan
Published 02 Sept 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/8192/8192.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 blog posts from web searches with Mistral AI and Google Drive do?

Overview This template automates the process of researching a keyword, scraping top ranking articles, cleaning their content, and generating a high quality SEO optimized blog post. It uses Googl...

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