Rewrite web content with exact character counts using GPT-4.1 and Google Sheets
Ready for 3.0What this workflow does
This AI workflow has 11 nodes and runs when someone submits an n8n form (“Service Page Content Creation”). Along the way it connects OpenAI Chat Model and Google Sheets.
How it runs
Trigger: When someone submits an n8n form (“Service Page Content Creation”).
- Fetch Reference URL Content (HTTP Request): calls an HTTP API (POST)
- Convert HTML to Markdown (Markdown): converts between Markdown and HTML
- Rewrite Content with Exact Character Count (AI Agent): runs an AI agent, with model: OpenAI GPT-4.1 Rewriting Model
- Compare Original vs Rewritten Content (AI Agent): runs an AI agent, with model: OpenAI GPT-4.1 Comparison Model; output parser: Parse Comparison to Structured Format
- Split Comparison into Individual Rows (Split Out): splits a list into separate items
- Log Comparison to Google Sheets (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 (8)
- n8n Form Trigger
n8n-nodes-base.formTrigger - HTTP Request
n8n-nodes-base.httpRequest - Markdown
n8n-nodes-base.markdown - AI Agent
@n8n/n8n-nodes-langchain.agent - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Split Out
n8n-nodes-base.splitOut - Google Sheets
n8n-nodes-base.googleSheets
From the author
Description An AI-powered content rewriter that maintains exact character counts line-by-line while rewriting web pages for SEO. Fetches reference URL content, preserves layout-critical formatting, and logs detailed comparisons to Google Sheets—perfect for…