Keyword clustering is the process of grouping search terms that share the same search intent, so that one well-built page can serve all of them instead of several thin pages competing with each other. AI models are good at the first pass: reading a few hundred keywords, proposing intent-based groups and explaining each grouping. They cannot see search volumes or results pages, so the numbers must come from your own tools and the final grouping should be checked against what Google actually shows for each query.
For a deeper look at how topic clusters fit into overall SEO structure, see Search Engine Land’s guide to topic clusters and pillar pages. Photo: Dev Jadiya, Wikimedia Commons, CC BY 4.0. Once your clusters are mapped, connecting them is the next step โ see our guide on AI prompts for internal linking, and for turning a cluster into an actual writing plan, our guide to AI prompts for SEO content briefs.
Search intent is the goal behind a query: learning something (informational), comparing options before buying (commercial), completing a purchase or sign-up (transactional), or reaching a specific site (navigational). Two keywords belong in the same cluster when a single page could fully satisfy both searchers. Shared words are not enough: “kubernetes backup” and “kubernetes backup service” look alike but one searcher wants a how-to and the other wants a vendor.
Why cluster instead of writing one page per keyword
One page per keyword was a common tactic when search engines matched queries closely to words on the page, and it still produces sites full of near-duplicates. Google’s SEO starter guide says you do not need every keyword variation on a page, because Google’s language matching can connect a page to queries that use different wording. Its helpful-content guidance asks whether a page fully answers the reader’s need, and its spam policies describe doorway pages, sets of near-identical pages built to rank for similar queries, as a violation.
Clustering puts that into practice in three ways:
- Fewer, stronger pages. Each cluster maps to one URL that covers the intent fully.
- Less self-competition. Two of your own pages targeting one intent split clicks and links between them.
- A plan for site structure. Clusters that share a broader theme become a hub with supporting pages, the structure described in the guide to topical authority and content clusters.
What to collect before you prompt
A clustering prompt is only as good as its inputs, and three of them come from you, not the model. Gather them in one sheet first:
| Input | Where it comes from | Why the model needs it |
|---|---|---|
| Keyword list | Your keyword research tool, Google Ads Keyword Planner, or Search Console Queries | The material to group. Clean out duplicates and irrelevant terms first |
| Volume or impressions per keyword | The same tools; Search Console gives impressions and clicks for queries you already appear for | Decides which keyword names the cluster and which page to prioritize. The model cannot estimate this |
| Your existing URLs and titles | Sitemap or CMS export | Lets the model map clusters to pages you already have instead of proposing duplicates |
| Your intent definitions | You | Removes ambiguity about what “same intent” means for your business |
| Notes from the results page (optional, for close calls) | Manual searches | The model cannot see search results; you can |
If you skip volumes, the model will still produce clusters, but it may name each cluster after the most generic-sounding term instead of the one people search most, and you lose the basis for prioritizing.
Prompt 1: First-pass clustering with reasons
This prompt produces the initial groups. It asks for a one-sentence reason per cluster, because the reasons are what let you spot bad groupings quickly. For lists over a few hundred keywords, run it in batches that share a theme, then merge.
Cluster the keywords below by search intent.
Definition: two keywords belong in the same cluster only if one page
could fully satisfy a person searching either of them. Shared words
are not enough.
Intent labels:
- INFO: wants to learn or do something themselves
- COMMERCIAL: comparing products, tools or providers
- TRANSACTIONAL: ready to buy, sign up or hire
- NAVIGATIONAL: looking for a specific brand or site
<keywords>
keyword | monthly_volume_or_impressions
[paste rows]
</keywords>
Output a table with columns:
cluster_id | primary_keyword | intent | keywords_in_cluster |
total_volume | reason (one sentence)
Rules:
- primary_keyword = the keyword with the highest volume in the
cluster.
- Never put two intent labels in one cluster.
- Keep branded keywords (containing a brand name) in separate
clusters from non-branded ones.
- A keyword that fits no cluster stays alone; do not force it.
- After the table, list up to 10 keywords you were least sure about
and why.
Why each part is there. The one-page definition is the core of clustering and stops grouping by shared words. The fixed intent labels make the model commit, which makes mixed-intent groups visible. Choosing the primary keyword by volume prevents the model from picking the term that merely sounds most representative. Separating branded terms follows the common practice of handling brand searches on their own pages. The “least sure” list is your review queue: those are the keywords to check by hand.
A worked example
The input below is illustrative: a small keyword set for an infrastructure blog, with made-up volumes. A good first pass should produce something like this:
| Cluster | Intent | Keywords | Reason |
|---|---|---|---|
| terraform state file | INFO | terraform state file, what is terraform state, terraform state explained | All want to understand what the state file is and does |
| terraform remote state s3 | INFO | terraform remote state s3, terraform s3 backend, store terraform state in s3 | All want setup steps for an S3 backend |
| terraform state lock error | INFO | error acquiring the state lock, terraform force-unlock | All have a lock error and want to clear it |
| terraform cloud vs spacelift | COMMERCIAL | terraform cloud vs spacelift, spacelift alternatives | All are comparing managed Terraform platforms |
Notice what was kept apart. “Terraform state file” and “terraform remote state s3” share three words, but one searcher wants a concept and the other wants a configuration walkthrough; a single page could cover both, but it would serve neither well. The lock error is a troubleshooting intent with a specific error message, which usually deserves its own focused page. And the comparison cluster has commercial intent, so it should not be folded into a tutorial.
A weaker grouping, typical of a prompt with no intent definition, puts all nine Terraform state keywords in one cluster because they share “terraform state”. That single page would end up as a long, unfocused article that answers each query halfway.
Prompt 2: Checking close calls against search results
Close calls are best settled by looking at what Google already ranks, because the results page shows how Google interprets each query. A common method among SEO practitioners is to compare the top results for two keywords: if many of the same URLs rank for both, one page can usually serve both; if the results are mostly different, or are different types of pages (tutorials versus vendor pages), keep them apart. The model cannot run those searches, but it can reason over what you record.
I searched each keyword below and recorded the top results.
<serp_notes>
keyword: [kw A]
results: [domain/path - page type (tutorial, product, forum, video,
comparison)], ... (top 10)
keyword: [kw B]
results: ...
</serp_notes>
For each pair:
1. Count URLs that appear in both lists.
2. Compare the dominant page types.
3. Recommend SAME_CLUSTER or SEPARATE, with one sentence of
reasoning based only on these notes.
If the evidence is mixed, say MIXED and explain what a single page
would have to include to serve both.
Results differ by location, device and time, so treat this as evidence, not proof. Run it only on the uncertain list from Prompt 1; checking every pair by hand would defeat the purpose of using AI.
Prompt 3: Turning clusters into a content plan
A cluster list becomes useful when each cluster is mapped to a page and an action. This prompt compares clusters with your existing content:
<clusters>[paste final cluster table]</clusters>
<existing_pages>url | title | main topic</existing_pages>
For each cluster, choose one:
- EXISTING: an existing page already targets this intent (name it);
list keywords from the cluster it does not yet cover.
- MERGE: two or more existing pages target this intent (name them);
recommend which URL to keep.
- NEW: no page covers it; propose a working title and the
questions the page must answer.
Then group clusters into hubs: which clusters are subtopics of a
broader cluster, and which page should be the hub.
For each page, list 2-4 other pages it should link to, with the
reason.
Do not invent pages that are not in existing_pages for EXISTING
or MERGE.
The MERGE option is where clustering pays off on an older site: it surfaces pages that already compete with each other. The questions-to-answer list for NEW pages feeds straight into a brief, and the prompts for SEO content briefs and outlines pick up from there. The linking suggestions are a starting point for an internal linking plan; check each link makes sense for a reader before adding it.
Common mistakes
Most bad clusters trace back to one of these mistakes, and each one is avoidable with a line in the prompt or a quick manual check:
- Grouping by shared words. Fixed by the one-page intent definition and the reason column.
- Letting the model estimate volumes. Models do not have reliable search volume data. Any number in the output should be one you supplied.
- Mixing intents. “Best X” and “how to use X” in one cluster forces one page to be both a review and a tutorial.
- Forcing every keyword into a cluster. Orphan keywords are fine; some are not worth a page at all.
- Ignoring existing pages. Clustering without your URL list tends to produce a plan to write content you already have.
- Treating the output as final. Results pages change; revisit clusters when a page underperforms or a new competitor format appears.
- Packing every variation into the page. A cluster tells you what the page must answer, not a list of phrases to repeat. Google’s starter guide treats excessive repetition as keyword stuffing.
Questions not covered above
How many keywords should a cluster have?
There is no correct number. A cluster is as large as the number of distinct ways people phrase one need, which can be two keywords or forty. A very large cluster is often a sign that two intents were merged.
Can AI replace a keyword research tool?
No. It can suggest related phrasings to research, but volumes, difficulty and actual rankings come from tools such as Keyword Planner or a third-party SEO tool, and from Search Console for queries you already appear for. Use the model for grouping and reasoning, not for data.
How is this different from a content gap analysis?
Clustering organizes keywords you already have into page-sized groups. A gap analysis looks for topics competitors cover that you do not; its output is new keywords, which you then cluster. The content gap analysis prompts cover that earlier step.



