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.
Related Templates
USDT And TRC20 Wallet Tracker API Workflow for n8n
Overview This n8n workflow is specifically designed to monitor USDT TRC20 transactions within a specified wallet. It u...
Automate Daily Keyword Research with Google Sheets, Suggest API & Custom Search
Who's it for This workflow is perfect for SEO specialists, marketers, bloggers, and content creators who want to automa...
Bulk Automated Google Drive Files Sharing and Direct Download Link Generation
This N8N workflow automates the process of sharing files from Google Drive. It includes OAuth2 authentication, batch pro...
π Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments