Block 1 - Submit Content Rewriting Request
- Type / Role
- n8n-nodes-base.formTrigger - formTrigger
- Config choices
- Version 2.3
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,...
n8n-nodes-base.formtrigger, n8n-nodes-base.httprequest, n8n-nodes-base.markdown, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.outputparserstructured, n8n-nodes-base.splitout, n8n-nodes-base.googlesheets
This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by isaWOW.
Original n8n.io sourceAn 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 agencies rewriting competitor content while maintaining design consistency.
This workflow solves a unique SEO challenge: rewriting web content while preserving exact character counts on every single line. When you need to rewrite a competitor's page or update your own content without breaking the layout, this automation fetches the reference URL, converts it to Markdown, and uses GPT-4.1 to rewrite marketing text, headings, and CTAs while maintaining the exact same character count as the original—down to the letter. The AI intelligently decides what to keep unchanged (form labels), what to skip entirely (URLs, footers), and what to rewrite (marketing content). A second AI agent then compares the original and rewritten versions line-by-line, verifying character counts and logging everything to Google Sheets for quality control.
Perfect for SEO agencies, content teams, and web developers who need to rewrite content without disturbing page layouts, CSS styling, or design templates that depend on specific text lengths.
Exact character count preservation: Every rewritten line matches the original's character count precisely—no approximations, no +/- 1 character deviations. If the original has 47 characters, the rewrite will have exactly 47 characters.
Smart content classification: The AI automatically categorizes each line into three actions: KEEP (form labels like Name, Email, Phone remain unchanged), SKIP (URLs and footers excluded entirely from output), or REWRITE (marketing content, headings, CTAs rewritten with exact length).
Line-by-line comparison analysis: A second AI agent compares original vs. rewritten content, creates structured JSON showing each change, verifies character and word counts match, and flags any discrepancies.
Google Sheets quality tracking: All comparisons logged to Google Sheets with columns for Old Text, AI Suggested Text, Old Text Length, and AI Suggested Text Length—enabling manual review and quality control.
Layout-safe rewriting: Preserves Markdown structure, maintains spacing, keeps technical elements intact—ensures the rewritten content fits perfectly into existing page designs and CSS frameworks.
Form-based workflow: Simple form interface with Client ID, Service Page Keyword, Instructions, and Reference URL—no coding needed to submit rewrite requests.
Dual GPT-4.1 agents: Uses two independent AI agents (rewriter and comparator) with GPT-4.1 for maximum accuracy and quality verification at every step.
User fills a simple form with:
The workflow sends an HTTP POST request to the provided URL and retrieves the complete HTML source code of the page.
The HTML is converted to clean Markdown format, removing unnecessary tags while preserving structure, headings, lists, and text content. This makes it easier for the AI to process line-by-line.
The first AI Agent (powered by GPT-4.1) receives the Markdown content and processes it with ULTRA-STRICT rules:
Character counting rules:
Decision logic for each line:
Character-matching techniques:
Verification checklist:
If even 1 line has mismatched characters, the AI retries until it's perfect.
A second AI Agent (also GPT-4.1) compares the original Markdown input with the rewritten output:
The Structured Output Parser ensures the comparison JSON is valid and properly formatted:
{
"comparisons": [
{
"old_text": "exact sentence from original",
"ai_suggested_text": "corresponding sentence from rewritten version",
"Old_text_count": "47",
"ai_suggested_text_Count": "47"
}
]
}
The Split Out node takes the comparisons array and creates a separate item for each comparison, preparing it for Google Sheets insertion.
Each comparison is written to Google Sheets as a new row with columns:
This creates a complete audit trail for manual review and quality verification.
Tools you'll need:
Estimated setup time: 20–25 minutes
Open "Rewrite Content with Exact Character Count" node and edit the system message to:
SEO agencies rewriting competitor content: Analyze top-ranking competitor pages and rewrite them for your clients while preserving the exact layout that works. Character-count matching ensures the rewritten content fits perfectly into the same design templates.
Web designers updating legacy sites: Modernize old website copy without breaking existing CSS layouts that depend on specific text lengths. Maintain pixel-perfect designs while refreshing the message.
Content teams A/B testing variations: Create multiple versions of the same page with different wording but identical character counts. Test messaging changes without layout shifts affecting results.
Translation agencies adapting content: When translating from one language to another requires matching specific character limits (billboards, app interfaces, fixed-width layouts), this workflow helps maintain constraints.
E-commerce product descriptions: Rewrite product copy for different brands or markets while keeping descriptions at exact character counts required by platform templates or PIM systems.
Landing page optimization: Test different headlines, CTAs, and value propositions while ensuring each variation maintains the original's character count—preventing layout breaks on mobile or desktop.
If your use case allows minor variations (+/- 2-3 characters), edit the rewriting agent's system message:
In the rewriting agent system message, expand the "KEEP AS-IS" list:
Instead of Google Sheets, route comparison data to:
Modify the form to accept multiple URLs at once:
Add human review before finalizing rewrites:
Need help or custom development?
📧 Email: [email protected] 🌐 Website: https://isawow.com/
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.
| Workflow | Rewrite web content with exact character counts using GPT-4.1 and Google Sheets |
|---|---|
| Complexity | advanced |
| Nodes | 16 |
| Categories | Content Creation, AI Summarization |
| Author | isaWOW |
| Published | 09 Feb 2026 |
Use the JSON export at /data/workflows/13268/13268.json as the source template for this automation.
Open n8n, import the downloaded JSON, and review each node before activating the workflow.
Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.
Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.
Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.
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.
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,...
Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.
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, AI Summarization use case.