AI-powered SEO content optimization with SERP analysis & Slack approval workflow
Needs changesNeeds changes. This template uses 1 thing(s) that n8n 3.0 removes: SerpApi (Google Search). 1 breaking item(s) found. Static check, last run 2026-10-19.
What to replace before upgrading
| Removed in 3.0 | Replace with |
|---|---|
| SerpApi (Google Search) SerpAPI Competitor Analysis | No direct replacement: call the SerpApi REST API with an HTTP Request tool, or use a verified community node |
Nodes used (13)
- Simple Memory
@n8n/n8n-nodes-langchain.memoryBufferWindow - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Google Sheets Tool
n8n-nodes-base.googleSheetsTool - Google Sheets
n8n-nodes-base.googleSheets - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - AI Agent
@n8n/n8n-nodes-langchain.agent - Edit Fields (Set)
n8n-nodes-base.set - SerpApi (Google Search)
@n8n/n8n-nodes-langchain.toolSerpApi - Chat Trigger
@n8n/n8n-nodes-langchain.chatTrigger - If
n8n-nodes-base.if - Slack
n8n-nodes-base.slack - Pinecone Vector Store
@n8n/n8n-nodes-langchain.vectorStorePinecone - Embeddings OpenAI
@n8n/n8n-nodes-langchain.embeddingsOpenAi
What it does
π Description Enhance content quality, SEO performance, and editorial consistency using an AI-powered optimization engine that blends OpenAI, Google Sheets history, Pinecone knowledge, and real-time SERP intelligence. This workflow transforms rough drafts into polished, SEO-optimized content while preserving original meaning β and includes human review before final publication. πβοΈ What This Template Does - Step 1: Trigger the optimization from Chat or manual run: Starts the optimization process using the Chat Trigger node, passing topic, content ID, and customization parameters. π¬ - Step 2: Retrieve contextual knowledge: Pulls historical versions from Google Sheets and relevant company information from Pinecone vector storage to guide consistent optimization. π - Step 3: Fetch SERP competitor data: Uses SerpAPI to gather ranking competitors, headings, snippets, PAA questions, and search intent to strengthen the optimized draft. π - Step 4: Run AI content optimization: AI Agent (GPT-4o-mini) rewrites the draft without starting from scratch, improving structure, SEO, tone, clarity, and keyword coverage. π€ - Step 5: Enforce structured JSON output: Ensures the optimized draft follows a strict JSON schema containing title, meta description, sections, keywords, and metadata. π§© - Step 6: Request human review in Slack: Sends the optimized draft to Slack and waits for approval (approve/reject). Team members can refine or confirm before finalization. π¬π§βπΌ - Step 7: Save approved version back to Google Sheets: Updates or appends a new version in the contentversions sheet with metadata, SEO fields, and version history. π - Step 8: Send success confirmation to Slack: Posts a notification confirming that the approved draft has been published. π Key Benefits β Eliminates manual editing and SEO refinement β Produces consistent, high-quality, conversion-focused content β Ensures factual accuracy and tone preservation β Enhances content using SERP-based competitor insights β Maintains version history for auditability β Introduces structured human approval workflow β Fully automated publishing pipeline Features - AI-assisted rewrite using GPT-4o-mini - Google Sheets version retrieval + updating - Pinecone knowledge base retrieval - SERP competitor and keyword intelligence - Slack approval workflow (sendAndWait) - Structured JSON output enforcement - Version incrementing & metadata tracking - Secure credentials management Requirements - OpenAI API Key (GPT-4o-mini or higher) - Google Sheets OAuth2 credentials - SerpAPI Key - Slack Bot Token with chat:write - Pinecone API and vector index - Pre-created Google Sheet for versioning - Optional: Existing company knowledge stored in Pinecone Target Audience 1. SEO content teams optimizing blog drafts 2. Marketing teams refining landing pages 3. Agencies managing editorial workflows 4. Enterprises maintaining knowledge-based content 5. Writers/editorial teams that need AI assistance + human QA 6. Teams that require version-controlled SEO content Step-by-Step Setup Instructions - Connect these credentials in n8n: OpenAI, Slack, Google Sheets, Pinecone, SerpAPI. π - Replace Google Sheet ID in the Sheets nodes with your own. - Ensure your Pinecone index exists and contains embeddings. - Configure Slack channel ID for approvals and notifications. - Update test topic/content ID in the Set Input Parameters node. - Run a manual test to confirm SERP retrieval, data context, and AI output. - Deploy and use Chat Trigger to start generating optimized content on demand.