GigaCommerce

Product Taxonomy Design for AI Discovery

How category tree structure shapes agent reasoning: flat vs. deep taxonomies, category ambiguity, Google Product Taxonomy vs. custom, and safe restructuring.

The GigaCommerce TeamAgentic commerce operators14 min read
CATALOG FOR AIGigaCommerce · Insights

Most catalog work aimed at AI shopping starts with attributes — fill in material, size, compatibility, the fields an agent reads to answer a question. Taxonomy gets skipped because it feels like a solved problem: categories have existed since the first online store. But the category tree isn't just a filing system anymore. It's the path an agent walks to find your product, and a badly shaped path produces the same result as a missing attribute — the agent picks a competitor with a clearer route.

How should I structure my product categories?

Structure categories around the decision a shopper is making, not around how the business happens to organize inventory. Those two structures diverge more often than merchants expect. A hardware retailer's warehouse might group by supplier; a shopper deciding between drill types doesn't care who supplies them. An agent reasoning through "I need a drill for concrete anchors" needs a path that narrows by use case and material compatibility, not by vendor code.

The practical test: pick five real shopper questions for a category and see if your tree resolves them in three clicks or fewer. If a shopper — or an agent standing in for one — has to backtrack, guess, or search outside the tree to get from homepage to product, the taxonomy is doing the opposite of its job. This is the same instinct behind category attribute templates: categories exist to answer questions, and both the tree and the fields inside each category should be built from that same list of questions.

Product taxonomy
The hierarchical tree of categories and subcategories a catalog is organized into — e.g. Home > Kitchen > Cookware > Stockpots — used for both human navigation and machine-readable classification (via schema.org Category or a mapped GPT id).

Two structural failure modes account for most of the damage we see.

Flat taxonomies

A flat tree dumps hundreds of SKUs into a handful of top-level buckets — "Electronics," "Home," "Accessories" — with no subcategory narrowing. It looks clean in a nav bar but forces every disambiguation decision onto search, filters, or the agent itself. When there's no structural signal for "this is a subcategory of that," an agent reasoning about "wireless earbuds under $100 with noise cancellation" has to re-derive the entire category logic from attributes alone, product by product. It can do this, but it does it worse and slower than if the tree had already narrowed the candidate set to Electronics > Audio > Earbuds > Wireless.

Taxonomies that are too deep

The opposite failure is a tree with seven or eight levels before reaching a leaf category with actual products in it. Deep trees usually come from over-mirroring an ERP's internal classification or from years of incremental subcategory creation without pruning. Past four or five levels, both human shoppers and agents lose the thread — the marginal narrowing each level provides stops being worth the traversal cost. An agent crawling or querying a deeply nested tree either times out at a shallower level (missing your best-matched leaf category entirely) or has to make five sequential decisions to reach one product, multiplying the chance of a wrong turn at each step.

Flat vs. deep: two ways taxonomies fail agents
Flat tree3 top-level buckets, 400+ SKUs each, no narrowingsignalDeep tree7-8 levels to a leaf, agent loses the thread bylevel 4VS
Both extremes push disambiguation work onto the agent instead of the tree.

The workable middle is three to four levels for most mid-market catalogs: a top-level department, a category, a subcategory, and — where the catalog genuinely needs it — a leaf type. That's usually enough narrowing for an agent to land on a candidate set small enough that attributes can finish the job.

Yes, directly, in three ways. First, on-site AI search and Brand Agents use category structure as a filtering signal before they ever touch attributes — a well-scoped category narrows the candidate set the same way a WHERE clause narrows a database query, and a missing or wrong category means the agent is searching the whole catalog instead of the relevant slice. Second, off-site assistants like ChatGPT, Claude, Gemini, and Perplexity that crawl or ingest product feeds rely on category signals (structured data, feed taxonomy mappings, breadcrumb markup) to understand what kind of product they're looking at, especially for ambiguous product names. Third, Amazon's Rufus and Amazon's own browse structure lean on the marketplace's fixed category tree to constrain search and recommendations, so a product placed in the wrong Amazon category is often invisible to Rufus for queries that assume the correct one.

The practical failure looks like this: a merchant lists a product correctly by name and attributes, but files it under a category an agent wouldn't associate with the query. A shopper asks an assistant for "a durable phone case for outdoor use," the assistant reasons through rugged-case category signals, and a product correctly named and attributed but categorized under generic "Accessories" never surfaces — not because the data was wrong, but because the structural signal pointed the wrong direction.

Category placement is a ranking signal, not decoration

Treat category assignment with the same rigor as a title or a key attribute. A product in the wrong category can have perfect attribute data and still lose to a worse-attributed competitor sitting in the right one.

Should I use Google Product Taxonomy?

Start there, then extend it — don't discard it and don't adopt it verbatim without adjustment. Google Product Taxonomy (GPT) is a free, standardized, several-thousand-category tree that Google Merchant Center, most ad platforms, and a growing number of AI shopping surfaces already understand. Mapping your catalog to GPT categories gives every downstream system — Google Shopping, Merchant Center feeds, and increasingly the retrieval layers behind AI assistants — a shared vocabulary for what your product is, independent of what you call it in your own nav.

The case for GPT as your skeleton: it's already the reference taxonomy most feed-based AI shopping surfaces expect, it saves you from inventing category logic from scratch, and it makes cross-platform listing (Google, Shopify, marketplaces) far less error-prone because you're mapping once instead of maintaining parallel category systems that drift apart.

The case against using it as your only taxonomy: GPT is built for breadth across every kind of product sold online, so it's often too coarse for a specialized catalog. A manufacturer selling forty variants of industrial fasteners doesn't get useful narrowing from GPT's "Hardware > Fasteners" leaf — every one of their products lands in the same bucket. That's where a custom taxonomy extension earns its place: map to the closest GPT category for feed and interoperability purposes, then layer your own deeper subcategories on top for on-site navigation and internal search.

DimensionGoogle Product TaxonomyCustom taxonomy
Cross-platform compatibilityNative — feeds, ads, many AI surfaces already map to itRequires a mapping layer to stay compatible
Precision for specialized catalogsOften too coarse at the leaf levelCan go as deep as the catalog needs
Setup effortLow — adopt the published treeHigh — must be designed and maintained in-house
Maintenance burdenLow — Google updates the standard treeOngoing — every new product type needs a taxonomy decision
Best useThe default skeleton and feed mappingLeaf-level extension where GPT under-differentiates
Google Product Taxonomy vs. a fully custom taxonomy.

Our default recommendation: map every product to its nearest Google Product Taxonomy category as a required attribute — this is cheap, mechanical, and pays off across every feed-driven channel — and reserve custom taxonomy depth for the categories where your catalog's differentiation genuinely exceeds what GPT resolves. Most merchants need custom depth in only two or three departments, not the whole tree.

Category ambiguity: when a product belongs in two places

Every non-trivial catalog has products that legitimately fit more than one category. A cast-iron skillet is cookware and a housewarming gift. A weighted blanket is bedding and a wellness product. This is normal, not a data-quality failure — but how you handle it determines whether an agent reasons about the product correctly or gets confused by conflicting signals.

The failure mode we see most is duplicating the SKU into two separate product listings, one per category. This looks like a fix but creates a worse problem: split reviews, split sales history, two conflicting sources of truth for the same product, and — for AI agents specifically — two different pages that might disagree on price, stock, or attributes if one gets updated and the other doesn't. An agent that surfaces both, or that cites one while a shopper is looking at the other, produces the kind of inconsistency that erodes trust fast.

The reliable pattern is one product record with a primary category and one or more secondary cross-listings:

  1. 1

    Assign one primary category

    Pick the category that matches the product's dominant use case and reflects how most shoppers would search for it. This is the category used for breadcrumbs, canonical URL structure, and the GPT mapping.

  2. 2

    Cross-list into secondary categories

    Let the same product appear in the gift category, the seasonal category, or the wellness category as a listing reference — without a second canonical URL or a second product record.

  3. 3

    Keep attributes and inventory in one place

    Every cross-listing reads from the same underlying record, so price, stock, and attribute changes propagate everywhere at once. Nothing goes stale in a forgotten duplicate.

  4. 4

    Let structured data reflect both

    Where your platform supports multiple category or tag fields in structured data, populate them — this gives agents the full context ("this is cookware, and it's also commonly bought as a gift") without splitting the product identity.

Handled this way, an agent reasoning about "a housewarming gift under $80" and an agent reasoning about "cast iron skillets" both land on the same accurate, up-to-date product — which is the outcome you want.

How taxonomy mistakes silently cap enrichment

Taxonomy problems are easy to miss because they don't look like missing data — the attributes can be fully populated and the product still underperforms. That's because attribute schemas are usually defined per category, an approach we cover in depth in product attribute schema design. If a product sits in the wrong category, or in an orphaned category nobody maintains a schema for, it inherits the wrong required-attribute set — or none at all. Enrichment work then gets applied inconsistently: two functionally identical products in different (mis)categorized locations end up with different attribute completeness, and an agent comparing them sees one as more trustworthy than the other for no real reason.

This is why we treat taxonomy as the first step in any catalog enrichment engagement, ahead of attribute work — see the full sequence in the catalog enrichment playbook. Fixing categories after enrichment means redoing the schema mapping for every product that moves. Fixing categories first means every enrichment pass that follows lands in the right place the first time.

Why taxonomy comes before attribute enrichment
01Audit treeMap current categoriesagainst real shopper quest…02Fix structureMerge flat buckets, prunedeep dead ends, resolve am…03Assign schemasEach corrected categorygets its required-attribut…04Enrich fieldsFill attributes once,against the right schema,…
3-4

Category levels that resolve most mid-market shopper questions without losing the agent's traversal — deeper trees see sharp drop-off in agent and shopper follow-through past this point.

GigaCommerce field framework

How to restructure a messy taxonomy without breaking SEO

Restructuring a live taxonomy is genuinely risky if done carelessly — category pages carry backlinks, ranking history, and indexed URLs, and a careless rebuild can tank organic traffic for months. It's also entirely avoidable with a disciplined migration process. The rule that matters most: every old category URL needs a mapped destination before it's retired, not after.

  1. 1

    Audit the current tree against real queries

    Pull your actual site search terms, support tickets, and (if available) the queries agents or AI search have been resolving against your catalog. Build the target taxonomy from that demand, not from a redesign brief.

  2. 2

    Draft the new tree alongside the old one

    Don't edit the live tree in place. Design the target structure as a separate map, then build a one-to-one (or one-to-many, for split categories) mapping from every existing category URL to its new destination.

  3. 3

    Migrate products in batches, not all at once

    Move products into the new structure by category, verifying each batch's page still renders, still carries its schema markup, and still resolves correctly before moving to the next. This limits the blast radius of any mapping error.

  4. 4

    301 redirect every changed URL

    Every retired category URL gets a permanent redirect to its closest new-tree equivalent — never a blanket redirect to the homepage or a generic category. Search engines and AI crawlers both treat a mapped 301 as continuity; an unmapped one reads as a broken or abandoned page.

  5. 5

    Update internal links and structured data together

    Breadcrumbs, canonical tags, and any Category or CollectionPage structured data need to reflect the new tree at the same time the redirects go live — a lag here creates a window where signals contradict each other.

  6. 6

    Watch indexation and agent behavior post-cutover

    Monitor crawl stats and, where you can, AI citation behavior for two to four weeks after cutover. A spike in 404s or a drop in category-page indexation means a mapping gap that needs a fast follow-up redirect.

Never delete before you redirect

The single most common SEO casualty in a taxonomy rebuild is a category getting removed or renamed before its redirect is live. Sequence redirects and structural changes to go out together, not the old tree first and cleanup later.

This same discipline applies whether the rebuild is driven by Commerce GEO goals, a Shopify replatform, or ordinary catalog growth. The taxonomy is infrastructure other systems depend on — structured data for AI shopping, your feed mappings, and your internal search all inherit whatever shape the category tree has. Get the shape right once and everything built on top of it gets easier, including the Catalog Enrichment for AI work that typically follows a taxonomy fix.

Common taxonomy mistakes

  • Mirroring the ERP instead of shopper logic. Internal classification (supplier, warehouse zone, cost center) makes sense for operations and nothing for a shopper or an agent trying to find a product.
  • Solving ambiguity with duplicate SKUs. Creates conflicting sources of truth. Use a primary category plus cross-listings instead.
  • Going deep everywhere. Depth should track catalog complexity per department, not apply uniformly. Most departments need three to four levels; a handful might need more.
  • Treating GPT mapping as optional. Skipping it costs you compatibility with every feed-driven channel and a growing share of AI shopping surfaces, for very little enrichment effort saved.
  • Rebuilding the tree before mapping redirects. The fastest way to lose months of organic traffic and AI citation history in one deploy.

Find out if your taxonomy is holding your catalog back.

The Agentic Commerce Readiness Score checks category structure alongside attribute coverage and structured data — with the specific gaps to fix first.

Frequently asked questions

How should I structure my product categories for AI shopping agents?
Build the tree around the decisions shoppers actually make, not internal inventory logic, and keep most departments to three or four levels deep. Test it by picking five real shopper questions per category and confirming the tree resolves each in three clicks or fewer — if an agent would have to guess or backtrack, the structure needs work before the attributes do.
Does taxonomy actually affect whether AI assistants recommend my products?
Yes. On-site AI search and Brand Agents use category structure to narrow candidates before touching attributes, off-site assistants use category and feed signals to disambiguate product types, and Amazon's Rufus leans on the marketplace's fixed category tree. A product in the wrong category can have perfect attribute data and still lose to a worse-attributed competitor in the right one.
Should I use Google Product Taxonomy or build my own?
Use Google Product Taxonomy as the default skeleton — map every product to its nearest GPT category, since most feed-driven channels and a growing share of AI shopping surfaces already expect it. Extend it with a custom taxonomy only in the departments where your catalog is more specialized than GPT's leaf categories resolve; most merchants need that depth in just two or three departments, not the whole tree.
What do I do when a product genuinely fits two categories?
Give it one primary category for breadcrumbs, canonical URLs, and GPT mapping, then cross-list it into secondary categories without creating a second product record. Duplicating the SKU across categories creates split reviews, split sales history, and conflicting data that erodes trust when an agent surfaces inconsistent details.
Can I restructure my taxonomy without hurting my SEO rankings?
Yes, if you map every existing category URL to a destination in the new tree and put 301 redirects live at the same moment the structural change ships — never delete or rename a category before its redirect exists. Migrate in batches, verify each batch's structured data and rendering before moving on, and monitor indexation and crawl behavior for two to four weeks after cutover.
TG

The GigaCommerce Team

Agentic commerce operators

Operators who install Shopify Brand Agents, Copilot Checkout, and AI-ready catalogs for mid-market merchants. We publish the frameworks we actually use with clients.

Get the weekly DTC + Agentic Commerce brief.

One email a week on what shipped in agentic commerce and the move to make. No fluff.