Generate SEO-audited blog posts with internal links from forms using OpenAI
Ready for 3.0What this workflow does
This AI workflow has 12 nodes and runs when someone submits an n8n form (“SEO Blog Post Generator”). Along the way it connects OpenAI Chat Model and Google Sheets.
How it runs
Trigger: When someone submits an n8n form (“SEO Blog Post Generator”).
- Fetch Sitemap (HTTP Request): calls an HTTP API
- Extract Internal Links (Code): runs custom JavaScript code
- Generate Outline (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
- Write Draft (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
- Prepare Draft (Code): runs custom JavaScript code
- Audit And Improve (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model
- Parse Audit Result (Code): runs custom JavaScript code
- Passed Or Max Attempts? (If): checks a condition and branches into true / false
- Final Post (Code): runs custom JavaScript code
- Log To Sheet (Google Sheets): append
Services it uses
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (7)
- n8n Form Trigger
n8n-nodes-base.formTrigger - HTTP Request
n8n-nodes-base.httpRequest - Code
n8n-nodes-base.code - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - If
n8n-nodes-base.if - Google Sheets
n8n-nodes-base.googleSheets
From the author
Quick Overview This workflow uses an n8n form trigger and OpenAI to generate an SEO-ready blog post in Markdown from a submitted topic and optional target keyword, first creating a structured outline and then expanding it into a complete draft with an SEO…