Moving from Single Keywords to Intent Clusters#

Publishing one page per keyword variation worked in 2015. Today, search engines group semantically identical queries together and reward comprehensive, intent-matched hubs. If you publish separate pages for "best scraping proxies", "top proxies for web scraping", and "proxy providers for scraping", your own URLs compete against each other (keyword cannibalization) and split link equity.

AI makes it fast to process exports of 2,000 to 20,000 keywords from Google Search Console, Ahrefs, or Semrush, classify their search intent, and group them into clean topic clusters where one URL owns one distinct job.

The 4 Search Intent Buckets#

Intent Typical Modifiers Best Page Format Expected Conversion Behavior
Informational how to, what is, guide, examples In-depth tutorial, code walkthrough, or reference guide Low immediate signup (0.1%-0.5%), strong newsletter/top-of-funnel
Commercial Investigation best, vs, alternatives, review, pricing Honest comparison table, teardown, or benchmark High demo/trial intent (1.5%-4%)
Transactional / Tool calculator, tester, converter, template, free Interactive utility tool or downloadable template Highest self-serve conversion (3%-8%)
Navigational Brand name + feature, login, docs Clean product, docs, or hub page Retention and direct brand capture

Before targeting any cluster, inspect the live SERP for the primary query. If 8 of the top 10 results are interactive calculators, a 2,500-word blog post will struggle to rank regardless of how well it is written. Match the format search engines already reward.

Clustering Keywords with Embeddings & SERP Overlap#

String matching misses paraphrases like "curl to python converter" and "convert curl command to requests". Embedding keywords into dense vectors and clustering by cosine similarity groups them quickly, and combining embeddings with SERP overlap makes clustering near-deterministic.

The SERP overlap rule is straightforward: fetch the top 10 organic URLs for each keyword. Two keywords belong on the same target URL if their top-10 result sets share at least 3 or 4 identical URLs (Jaccard similarity >= 0.20 on a 10-URL set, or overlap count >= 3):

def serp_overlap_cluster(serp_map: dict[str, set[str]], min_shared_urls: int = 3) -> list[list[str]]:
    '''Group keywords that share >= min_shared_urls in their top-10 SERP results.'''
    clusters: list[list[str]] = []
    for kw, urls in serp_map.items():
        placed = False
        for cluster in clusters:
            anchor_urls = serp_map[cluster[0]]
            if len(urls & anchor_urls) >= min_shared_urls:
                cluster.append(kw)
                placed = True
                break
        if not placed:
            clusters.append([kw])
    return clusters

serps = {
    "curl to python": {"u1", "u2", "u3", "u4", "u5", "u6"},
    "convert curl to requests": {"u1", "u2", "u3", "u7", "u8", "u9"},
    "curl to python httpx": {"u1", "u2", "u10", "u11", "u12", "u13"},
    "subnet calculator cidr": {"u20", "u21", "u22", "u23", "u24", "u25"},
}

for idx, group in enumerate(serp_overlap_cluster(serps, min_shared_urls=3), 1):
    print(f"Target URL {idx}:", group)

Output:

Target URL 1: ['curl to python', 'convert curl to requests']
Target URL 2: ['curl to python httpx']
Target URL 3: ['subnet calculator cidr']

Notice why curl to python httpx split into its own URL when min_shared_urls=3: only 2 URLs overlapped (u1, u2), signaling that searchers looking specifically for httpx often expect a dedicated section or page if the SERP diverges. Tuning min_shared_urls between 3 and 4 lets you control how aggressively you consolidate vs. split pages.

Detecting Existing Keyword Cannibalization#

Before creating new pages, check Google Search Console exports to see if two URLs on your own domain already split impressions for the same query:

from collections import defaultdict

gsc_rows = [
    {"query": "robots txt tester", "url": "/tools/robots-txt-tester", "clicks": 140, "impr": 2100},
    {"query": "robots txt tester", "url": "/topics/web-scraping/robots-txt", "clicks": 12, "impr": 900},
    {"query": "curl to python", "url": "/tools/curl-to-python", "clicks": 320, "impr": 4000},
]

by_query = defaultdict(list)
for r in gsc_rows:
    by_query[r["query"]].append(r)

for query, pages in by_query.items():
    if len(pages) > 1:
        pages_sorted = sorted(pages, key=lambda x: x["impr"], reverse=True)
        print(f"Cannibalization on '{query}':")
        for p in pages_sorted:
            print(f"  {p['url']} -> {p['clicks']} clicks / {p['impr']} impr")

When two URLs compete for the same query, either differentiate their intent (make the tutorial purely conceptual and link prominently to the tool) or merge and 301-redirect the weaker page into the stronger one.

Building Content Briefs Around Information Gain#

Once you have a cluster, do not ask an LLM to "write a 2,000-word SEO article." Instead, extract the outlines of the top 5 ranking pages and ask the model to identify two things:

  1. Table Stakes: The core subtopics every top result covers so your page is complete.
  2. Information Gain: What all 5 incumbents missed (outdated library versions, missing edge cases, lack of runnable code, no interactive tool, or no real failure postmortem).

That gap is why users and search engines choose a newer site over established domains. Also specify exact internal links in the brief so every new article connects to your course hubs, cheat sheets, and developer tools.

Prioritizing Clusters by Revenue Potential, Not Just Volume#

Search volume alone is a misleading prioritization metric. A query with 40,000 monthly searches and purely educational beginner intent often converts at 0.1%, while a 400-search/month tool or comparison query converts at 4% to 8%. Score each cluster using three signals: commercial/tool intent weight (1 to 3), ranking difficulty vs. your current domain authority, and product tie-in:

def cluster_opportunity(monthly_searches: int, intent_weight: float, difficulty: float) -> float:
    '''Higher score = better near-term ROI for a focused site.'''
    if difficulty <= 0:
        return 0.0
    return round((monthly_searches * intent_weight) / (difficulty ** 1.5), 1)

print("Tool query (500/mo, diff 15):", cluster_opportunity(500, 3.0, 15))
print("Broad term (20000/mo, diff 85):", cluster_opportunity(20000, 1.0, 85))

Output:

Tool query (500/mo, diff 15): 25.8
Broad term (20000/mo, diff 85): 25.5

Even with 40x less search volume, the focused tool query offers higher near-term upside because a newer domain can actually reach page one for it and convert visitors at 10x the rate.

Even a well-written cluster page stalls on page 2 if no other pages on your site link to it. After publishing a new guide or tool, search your existing lessons for the top 3 phrases in that cluster and add natural, descriptive anchor links pointing to the new URL. Descriptive anchors ("test your robots.txt rules" rather than "click here") tell search engines what the target page covers. Keep anchor text varied and natural rather than repeating one exact-match keyword 50 times.

In a healthy hub-and-spoke site, every target URL should be reachable in at most 3 clicks from the homepage and receive incoming links from both its category hub and 2 to 3 topically related sibling pages. You can audit orphan pages and link distribution in Python from a simple crawl export:

from collections import Counter

internal_links = [
    ("/", "/topics/ai-marketing"),
    ("/topics/ai-marketing", "/topics/ai-marketing/ai-seo-and-keyword-clustering"),
    ("/topics/ai-marketing", "/topics/ai-marketing/geo-and-ai-search-optimization"),
    ("/topics/ai-marketing/ai-seo-and-keyword-clustering", "/tools/url-parser"),
]

in_degree = Counter(dst for _, dst in internal_links)
all_urls = {u for pair in internal_links for u in pair}
for url in sorted(all_urls):
    if url != "/" and in_degree[url] == 0:
        print("Orphan URL:", url)
print("Top linked targets:", in_degree.most_common(3))

Refreshing Decaying Pages Before Writing New Ones#

Search rankings decay when competitors publish fresher code examples or search intent shifts. Every 30 days, filter Google Search Console for URLs whose 28-day impressions stayed flat or grew while CTR or average position dropped by >= 2 spots. Inspect the current top-3 SERP results for that query: if incumbents added an interactive table, updated library syntax, or a comparison matrix, update the existing URL rather than launching a competing post.

Debugging in Production: How Keyword Clustering Fails#

  • Clustering by root word instead of intent. "Python web scraping" (tutorial intent) and "Python web scraping jobs" (career board intent) share 3 words but require completely different pages. Fix: Classify intent before or alongside SERP-overlap clustering.
  • Chasing high-volume head terms on a new domain. Targeting "cybersecurity" or "Python" with zero referring domains wastes months. Fix: Target specific error codes, tool converters, and concrete workflows where incumbents have thin or outdated pages.
  • Ignoring Striking-Distance Queries (Positions 8 to 20). Teams often write brand-new posts while ignoring pages already getting thousands of impressions on page 2. Fix: Export positions 8 to 20 from Search Console first, inspect why the top 3 beat you, and expand the existing URL.
  • Orphaned cluster pages. Publishing a new guide with zero incoming internal links leaves crawlers discovering it slowly via the sitemap alone. Fix: Link every new page from its parent topic hub and at least 2 sibling lessons on day one.

Practice#

  1. Export 50 queries from Google Search Console (or pick 20 related queries in your niche).
  2. Label each query with its intent (informational, commercial, transactional, navigational) and check the top-5 live SERP URLs for the top 6 queries.
  3. Group synonyms onto single target URLs using the 3-shared-URL rule, check for any existing cannibalization, and write a 5-bullet information-gain brief for the top-priority URL.