Loading...

AI & Agentic Commerce Conversion Rate Optimization

Cluster Search Intents With an LLM in 10 Minutes

Paste a month of search queries into an LLM and ask it to cluster intents: merchandising gaps and content ideas in 10 minutes. Prompt included.
← All 100 tips  ·  Tip 83 of 100  ·  18 days to Cyber Monday

Search query clustering with an LLM turns a month of your store’s search logs into a merchandising to-do list in about ten minutes. Tip 17 told you to read your search logs monthly, and if you have been doing it, you know the problem: the raw log is a thousand lines of “hoodie”, “hodie”, “black hoodie mens”, “warm jacket”, “gift for dad”, and staring at it long enough to see the patterns is real work. This is exactly the kind of work language models are unreasonably good at: taking a pile of messy human phrasings and sorting them into named piles of intent.

Export your last 30 days of search queries, with counts if your search tool provides them. Paste them into ChatGPT, Claude, or Gemini with the prompt below. What comes back is the thing the raw log was hiding: what your shoppers are asking for in their own words, how often, and where your catalog and their vocabulary disagree.

The prompt

Copy, fill the two placeholders, paste into your LLM of choice.

You are a senior ecommerce merchandiser analyzing site search data for my Shopify store. Store context: [ONE SENTENCE: WHAT YOU SELL, WHO BUYS IT, e.g. “mid-price merino basics, mostly women 30-55”]. Below are my site search queries from the last 30 days, one per line, with counts where available. Do the following, in order: 1. CLUSTER every query into intent groups (what the shopper is trying to accomplish, not just shared words). Name each cluster in plain English and rank clusters by total search volume. 2. For each cluster, list: total volume, 3 example queries verbatim, and what the shopper most likely expects to land on. 3. VOCABULARY GAPS: flag every cluster where shoppers’ words likely differ from my product titles and descriptions (e.g. they search “jumper”, I sell “sweaters”). These break search matching and I need the exact word pairs. 4. MERCHANDISING GAPS: flag clusters with meaningful volume where my store probably has no strong answer: no matching product, no matching collection, or gift/bundle intent with no gift page. Mark each as PRODUCT GAP, COLLECTION GAP, or CONTENT GAP. 5. MISSPELLINGS: list recurring misspellings of my product names worth adding as synonyms, with their correct forms. 6. Finish with a TOP 5 ACTIONS list for the 18 days before Black Friday: highest search volume x easiest fix first. Be specific (“create a Gifts Under $50 collection”, not “improve gifting”). Do not invent queries that are not in the data. If counts are missing, treat each line as one search. QUERIES: [PASTE YOUR SEARCH QUERIES HERE, ONE PER LINE, “query, count” IF YOU HAVE COUNTS]

Where to get the data: Shopify’s search analytics, your search app’s query report, or GA4’s view_search_results event. Any of them beats nothing; counts make the clustering sharper.

What to do with the output

  • Vocabulary gaps become synonyms and copy edits. If shoppers say “jumper” and your titles say “sweater”, add the synonym in your search tool or work the word into descriptions. Their language wins. It always wins.
  • Collection gaps become pages. High-volume gift intent with no gift collection is free money in November. Build the page the queries are begging for.
  • Product gaps become your December roadmap. You cannot stock a new product in 18 days, but a cluster of demand you cannot serve is the cheapest product research you will ever get.

One caution: the model will cheerfully cluster ten queries as confidently as ten thousand. Volume is your reality check. Act on the clusters with real counts behind them, and treat single-digit curiosities as trivia until they repeat next month.

← All 100 tips  ·  Tomorrow, tip 84: the data that proves your top row is prime real estate, and how to see it on your own store.