workflows.fit
Back to n8n workflows
n8n templateFreeBy Rahul Joshi

Cluster webpage topics from Google Sheets to Google Sheets for AI discovery

šŸ“Š Description Streamline AI-focused SEO research by automatically analyzing URLs stored in Google Sheets, extracting semantic signals from each webpage, and generating high-quality topic clusters for AI discovery. šŸ¤–...

Data & StorageProductivityDevelopmentCore NodesAILangchainSticky NoteGoogle Sheets
Loading interactive preview...

Template notes

šŸ“Š Description Streamline AI-focused SEO research by automatically analyzing URLs stored in Google Sheets, extracting semantic signals from each webpage, and generating high-quality topic clusters for AI discovery. šŸ¤–šŸ” This automation fetches URLs weekly, scrapes headings (H1–H6), extracts entities, keywords, topics, and summaries using GPT-4o-mini, and classifies each page into clusters and subclusters optimized for LLM search visibility. It also generates internal linking suggestions for better topical authority and writes all results back into Google Sheets. Perfect for content strategists, SEO teams, and AI-search optimization workflows. šŸ“ˆšŸ§©

šŸ” What This Template Does 1ļøāƒ£ Triggers weekly to process URLs stored in Google Sheets. šŸ“… 2ļøāƒ£ Fetches all URL records from the configured sheet. šŸ“„ 3ļøāƒ£ Processes URLs in batches to avoid API overload. šŸ” 4ļøāƒ£ Extracts webpage HTML and pulls semantic headings (H1–H6). šŸ“° 5ļøāƒ£ Sends headings + URL context to GPT-4o-mini for structured extraction of: — title — entities — keywords — topics — summary 6ļøāƒ£ Generates high-level cluster + subcluster labels for each page. 🧠 7ļøāƒ£ Recommends 3–5 internal linking URLs to strengthen topical authority. šŸ”— 8ļøāƒ£ Updates Google Sheets with all extracted fields + status flags. šŸ“Š 9ļøāƒ£ Repeats the process until all URLs are analyzed. šŸ”„

⭐ Key Benefits āœ… Automates topical clustering for AI search optimization āœ… Extracts entities, keywords, and topics with high semantic accuracy āœ… Strengthens internal linking strategies using AI suggestions āœ… Eliminates manual scraping and analysis work āœ… Enables scalable content audits for large URL datasets āœ… Enhances visibility in AI-driven search systems and answer engines

🧩 Features - Google Sheets integration for input + output - HTML parsing for H1–H6 extraction - GPT-4o-mini structured JSON extraction - Topic clustering engine (cluster & subcluster classification) - Internal linking recommendation generator - Batch processing for large URL datasets - Status-based updating in Google Sheets

šŸ” Requirements - Google Sheets OAuth2 credentials - OpenAI API key (GPT-4o-mini) - Publicly accessible URLs (or authenticated HTML if applicable) - n8n with LangChain nodes enabled

šŸŽÆ Target Audience - SEO teams performing semantic clustering at scale - Content strategists creating AI-ready topic maps - Agencies optimizing large client URL collections - AI-search consultants building structured content libraries - Technical marketers needing automated content analysis