Template

Site-wide Blogs Topic Clustering

Implement site-wide topic clustering for your blogs using semantic clustering.

Loading

Loading

Workflow

Workflow

Loading

Loading

Workflow

Workflow

Loading

Loading

Workflow

Workflow

Topic clusters are the backbone of modern SEO. Instead of chasing isolated keywords, you group related posts under clear themes (“pillar” + “cluster content”). This signals topical authority to Google, improves internal linking, and keeps readers clicking. The catch? Manually auditing a mature blog and mapping hundreds of URLs into clusters can chew up days of spreadsheet work. Our “Cluster Blog into Topics” app automates that audit in minutes.

How the App Works in Moonlit

Step 1 – Pull the right URLs

The Extract Sitemap Urls function reads your sitemap.xml. A segment filter (the “Blog Prefix” input) means you can skip product pages, docs, or anything outside the blog folder. We cap the pull at 25 URLs by default so you can preview results quickly—raise the limit or remove it entirely once you’re happy.

Step 2 – Semantic clustering with AI

The cleaned URL list flows straight into the Semantic Clustering node. With “Text Clustering” enabled, the model digests each post title & meta description to understand meaning, not just matching words. You tell it how many clusters to create (“Number of Topics”), and it returns:

  • the original URL, title, description

  • a concise two-to-four-word label for its cluster

Behind the scenes it’s performing vector embedding + K-means, then generating human-readable labels with an LLM—zero code or ML background needed.

Customization Ideas

Feature

Description

Scale beyond 25 URLs

Remove the limit or loop through multiple sitemaps to cover an entire content archive.

Auto-suggest pillar pages

Add a Python Function after clustering that picks the highest-traffic post in each cluster as the pillar candidate.

Scrape on-page H1s or full text

Feed a Web Scraper node before clustering for deeper semantic signals—useful if titles are vague.

Identify content gaps

Compare clusters against a curated “ideal topics” list stored in Moonlit Knowledge Base; flag themes with no existing content.

Generate internal-link maps

Chain a Chat Model node that outputs linking recommendations between posts inside the same cluster.

Start Engineering your
Content Growth Engine

Start Engineering your
Content Growth Engine

Start Engineering your
Content Growth Engine

Title Title Title Title Title Title Title Title Title Title Title