
Curated by n8n Markets team
Last updated: March 8, 2026
## 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 agencies rewriting competitor content while maintaining design consistency. --- ## What this workflow does 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. --- ## Key features 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. --- ## How it works ### 1. Submit rewriting request via form User fills a simple form with: - Client ID: Project identifier for tracking - Service Page Keyword: Target SEO keyword (optional) - Instruction: Specific rewriting guidance (e.g., "make it more professional") - Reference URL: The webpage to fetch and rewrite ### 2. Fetch reference webpage content The workflow sends an HTTP POST request to the provided URL and retrieves the complete HTML source code of the page. ### 3. Convert HTML to Markdown 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. ### 4. AI rewrites content with exact character matching The first AI Agent (powered by GPT-4.1) receives the Markdown content and processes it with ULTRA-STRICT rules: Character counting rules: - Counts everything: letters, spaces, numbers, symbols, punctuation - Spaces are characters - Line breaks don't count - Case doesn't affect count Decision logic for each line: - KEEP AS-IS: Simple form labels (Name, Email, Phone, Message), generic system messages, technical single words - SKIP COMPLETELY: All URLs (https://, http://, www.), all footers (copyright, legal links, disclaimers), navigation URLs, image paths - MUST REWRITE: Headings, marketing text, CTAs, service descriptions, menu items Character-matching techniques: - Too short → Add words, expand contractions - Too long → Use shorter synonyms, use contractions - Exact match → Swap equal-length words Verification checklist: - Every rewritten line matches original character count - All simple labels kept exactly - All URLs skipped - All footers skipped (no rewrite or modification) - Markdown structure preserved If even 1 line has mismatched characters, the AI retries until it's perfect. ### 5. Compare original vs. rewritten content A second AI Agent (also GPT-4.1) compares the original Markdown input with the rewritten output: - Breaks down both texts into individual sentences or meaningful phrases - Matches each line from original with its corresponding rewritten version - Verifies character and word counts
n8n instance (self-hosted or cloud). credentials.
1. Download the workflow JSON 2. Import into your n8n instance 3. Configure credentials for 4. Activate and enjoy automation
Included in Builder Pro — $19/mo, 4,177 premium workflows
Templates are reviewed before they are listed. Test with your own credentials and data before running it in production.
100% Secure Checkout
Refund requests within 7 days of a new subscription
⚠️ 1 service require credentials. Make sure you have accounts set up before importing.
0 reviews
No reviews yet.
Log in to ask a question.
No questions yet. Be the first to ask!