Guides · November 10, 2022
Agentic Commerce: When AI Assistants Start Shopping and Building
Agentic commerce means AI assistants that browse, compare, and complete purchases on a shopper's behalf, and AI coding agents that scaffold storefronts from a prompt. Both trends reward the same underlying discipline: clean, machine-readable structure, not just a good-looking UI.
By Polo Themes
Agentic commerce is the shift from humans clicking through storefronts to AI agents acting on a shopper's or a builder's behalf: shopping assistants that compare products and check out, and coding agents that scaffold or modify a storefront from a plain-language prompt. Neither is science fiction anymore — both are already reshaping how commerce sites get discovered, built, and bought from. The stores and toolchains that win this transition will be the ones whose structure an agent can actually parse, not just the ones that look best to a human eye.
This is a genuinely new axis of competition, and it is easy to misjudge because it arrives wearing two different costumes. On the shopping side, it looks like a chat interface that recommends products. On the build side, it looks like a developer typing a prompt into an editor and watching a storefront appear. Underneath, they are the same story: software that used to require a human in the loop at every step now increasingly acts autonomously, within guardrails, toward a goal. Understanding both halves — and where they intersect — matters for anyone building or running a commerce site in 2026.
Two Meanings of "Agentic Commerce," and Why Both Matter
The term gets used loosely, so it is worth separating the two threads cleanly before going further.
- Agentic shopping — an AI assistant (a general-purpose model with browsing and tool-use, or a purpose-built shopping agent) searches, compares, and in some flows completes a purchase for a person, sometimes with the person confirming the final step and sometimes with standing authorization to buy within limits.
- Agentic building — an AI coding agent (in an IDE, a CLI, or a hosted tool) generates, modifies, or maintains a commerce storefront's actual code, from a natural-language brief rather than hand-written components.
Most public discussion focuses on the first thread because it is more visible: a chatbot that finds you a pair of running shoes and buys them. But the second thread is arguably the bigger near-term shift for anyone who builds commerce sites for a living, because it changes the unit of labor from "write a component" to "review and steer what an agent wrote." Both threads share a requirement that is easy to ignore until it costs you traffic or conversions: your storefront needs to be legible to machines, not only to people.
What Shopping Agents Actually Do Today
Strip away the marketing language and a shopping agent's job breaks down into a small number of concrete steps: understand what the shopper wants (often from an underspecified prompt), find candidate products across one or more sites, extract comparable attributes (price, size, material, availability, shipping window), rank or filter against the shopper's stated or inferred preferences, and — in the more advanced flows — execute or assist a checkout. Every one of those steps depends on the agent being able to read your site reliably. An agent that cannot confidently tell whether an item is in stock, or what size options exist, will either give up on your product or, worse, present a shopper with wrong information that damages trust in your brand rather than the agent's.
This is why the practical groundwork for agentic shopping looks almost identical to good old-fashioned technical SEO, just aimed at a different reader. Structured data (Product, Offer, AggregateRating schema), clean semantic HTML instead of div soup, accurate and current availability and pricing in machine-readable form, and predictable URL and navigation patterns all make a storefront easier for an agent to parse correctly. None of this is exotic. It is the same discipline that has always separated a well-built storefront from a sloppy one — agentic shopping just raises the cost of skipping it, because now an entire channel of demand depends on a machine getting your product data right on the first try, with no human around to notice the page "looks fine" and correct for a parsing error by eye.
The parts of agentic shopping that are still genuinely unsettled
It is worth being honest about what is not yet standardized. Checkout delegation — an agent completing a payment on a shopper's behalf — raises real questions around authentication, fraud liability, and consent that different platforms and payment networks are still working through, and conventions differ by provider. Agents themselves vary widely in how they browse: some render JavaScript-heavy pages fully, others fetch and parse HTML more literally and miss content injected client-side after load. Building for "the agent" as if it were one consistent actor is a mistake; building for a range of crawler sophistication, the same way good engineers have always built for a range of browser capability, is the more durable posture.
What Coding Agents Change About Building a Storefront
The second thread — AI agents that build commerce sites — has moved faster in practice than most public commentary acknowledges. A developer today can describe a product listing page, a cart drawer, or an entire checkout flow in natural language and get a working first draft from a coding agent in minutes, then iterate by describing what is wrong rather than hand-editing every line. This does not eliminate the need for engineering judgment; if anything it concentrates the judgment into fewer, higher-leverage moments: deciding on architecture, reviewing generated code for correctness and security, and maintaining a design system disciplined enough that an agent's output actually looks like it belongs on your site.
That last point is the one teams underrate. An AI coding agent is only as good as the constraints it is given. Dropped into a codebase with no conventions, it will happily invent a new button style, a new spacing scale, and a new way of fetching data every time it touches a file — because nothing tells it not to. Dropped into a codebase with a clear token system, documented component patterns, and a style guide it can read before writing code, the same agent produces output that is consistent with everything around it. The practical implication is blunt: a well-documented, well-tokenized design system is no longer just a nice-to-have for human contributor onboarding. It is now also the thing that determines whether your AI coding agent's output is usable or a liability. Teams evaluating Figma-based design systems for this reason should look specifically for kits built with clear component and token structure that a human designer — and increasingly an AI agent translating a design into code — can follow without guessing; our Figma UI kits are built with exactly that kind of explicit structure in mind.
Design-to-code is the connective tissue
A related and fast-maturing capability is AI that goes directly from a design file or a screenshot to working code — reading a Figma frame's layer structure, auto-layout rules, and component variants, then generating markup and styles that approximate it. This works best when the source design is itself clean: consistently named layers, real auto-layout instead of manually nudged pixels, and components used as components rather than duplicated and modified group by group. A beautifully designed but structurally messy Figma file will produce messy generated code, no matter how capable the model is — garbage structure in, garbage structure out. This is a good reason to treat "structurally clean" as a real acceptance criterion for any design system you buy or build going forward, not just "looks good in the preview."
Where Headless Architecture Fits This Story
Agentic building and agentic shopping both push toward the same architectural preference: headless commerce, where the storefront's presentation layer is decoupled from the commerce backend via APIs. A Next.js storefront talking to a commerce engine like Medusa over a clean API surface is easier for a coding agent to extend safely, because the agent can reason about a well-typed API contract instead of untangling backend and frontend concerns that are welded together in a monolithic theme. It is also easier for a shopping agent to consume reliably, because product, price, and inventory data live behind a predictable, queryable interface rather than being scraped out of server-rendered markup that might change shape at any redesign.
None of this makes traditional platform themes obsolete — a well-built Shopify theme with clean semantic markup and accurate structured data is entirely capable of being both agent-legible and pleasant for human shoppers, and for many merchants it remains the faster, lower-maintenance path to a storefront that a shopping agent can parse correctly. Our own Shopify themes are built around that same discipline of clean markup and predictable structure. The distinction to keep in mind is between "headless" as an architecture decision — worth making deliberately, for the control and API-cleanliness it buys you — and "headless" as a buzzword to chase without a concrete reason. Choose it because your team needs the flexibility of a custom frontend and the API-first data model, not because it sounds more future-proof in the abstract.
MCP and the Emerging Plumbing of Agent-to-Commerce Communication
The Model Context Protocol (MCP) is worth understanding here even though it is still early. MCP defines a standard way for an AI assistant to discover and call tools — a structured, typed interface rather than the assistant scraping a webpage and guessing at meaning. Applied to commerce, an MCP-style tool interface could let a shopping agent query a store's actual product catalog, real-time inventory, and shipping options through a well-defined contract, instead of reconstructing that information from rendered HTML. That is a meaningfully more reliable path than screen-scraping, and it is the direction serious commerce platforms are experimenting toward, even though standardized, widely adopted commerce-specific MCP servers are not yet a mature, universal expectation the way, say, a sitemap or an RSS feed is.
The practical takeaway for builders today is not "go build an MCP server this week" — for most storefronts that would be solving a problem you do not have yet. It is to keep your product and inventory data structured, typed, and centrally accessible behind clean APIs now, so that when agent-facing interfaces around commerce do standardize, you are exposing an interface you already have rather than reverse-engineering one from a tangle of legacy templates and ad hoc scraping-friendly markup bolted on as an afterthought.
A Practical Checklist for Getting Agent-Ready Without Overbuilding
It is easy to either ignore agentic commerce entirely or overcorrect into building speculative infrastructure for a future that has not arrived yet. A more measured approach focuses on fundamentals that pay off regardless of how fast either trend moves.
- Fix your structured data first. Accurate Product, Offer, and review schema is the single highest-leverage thing you can do for agentic shopping discovery, and it also helps traditional search — there is no downside case here.
- Keep availability and pricing data current and machine-readable. An agent that gets stale stock or price information will either recommend against you or embarrass you in front of a shopper — both outcomes cost more than fixing a sync job would.
- Invest in a real design system, tokens and all, before leaning on AI coding agents. The system is what keeps an agent's output consistent; skipping it means every agent-generated feature looks like it came from a different site.
- Treat headless architecture as a deliberate choice, not a trend to chase. Adopt it when you need the frontend flexibility and clean API surface it buys you, not because "headless" sounds more agent-ready in a blog post.
- Watch MCP and agent-facing commerce standards without racing to implement them. Keep your data clean and API-accessible now; add a formal agent interface when the standards around it actually stabilize.
- Review AI-generated code the way you would review a junior engineer's pull request. Speed of generation is not the same as correctness, security, or accessibility — an agent will happily ship a plausible-looking bug.
Where This Leaves Commerce Teams and Builders
The honest summary is that agentic commerce is real and already changing behavior on both ends of the stack, but it rewards the same fundamentals that have always mattered — clean structure, accurate data, and disciplined design systems — rather than replacing them with something entirely new. A storefront that is well-built for a careful human shopper and a careful human developer is most of the way to being well-built for an AI agent acting on either one's behalf. The gap between "good practice" and "agent-ready" is smaller than the hype suggests; it mostly comes down to whether your structure is explicit enough for a machine to parse with confidence, not just pretty enough for a person to enjoy.
For teams building out a storefront today, that means the safest investment is in the boring-sounding basics: a genuinely clean, token-based design system for anything design-adjacent, and a clean, well-typed data layer for anything commerce-adjacent. Both compound in value as agentic tooling on either side of the transaction gets more capable, and neither becomes wasted effort if any particular agentic trend moves slower than expected. If you want to explore what a well-structured, component-driven design system looks like in practice, our Figma UI kits and the rest of our theme catalog are built with exactly that discipline in mind, and our blog covers more of these headless and design-system topics as the space develops.
Frequently Asked Questions
Is agentic commerce actually happening now, or is it still mostly hype?
Both are true depending on which half you mean. AI coding agents building and modifying storefront code is already routine practice for many development teams today. Fully autonomous AI shopping agents that browse, compare, and check out without any human step are further along in some narrow flows than in others, and conventions around checkout delegation and liability are still being worked out across the industry.
Do I need to rebuild my storefront as headless to be ready for shopping agents?
No. A well-built platform theme with clean semantic markup and accurate structured data is entirely capable of being agent-legible. Headless architecture is worth choosing for the frontend flexibility and API-first data model it provides, not as a prerequisite for agents to parse your product pages correctly.
What is the single highest-leverage thing to fix for agentic shopping right now?
Accurate, current structured data — Product, Offer, and review schema, plus reliable availability and pricing feeds. It is the one investment that clearly helps both AI shopping agents and traditional search, with essentially no downside.
Does a Figma design system actually matter for AI coding agents, or is that a stretch?
It matters directly. Coding agents produce more consistent, on-brand output when they can read a documented token system and component structure before generating code. A design file with clean, consistently named layers and real components — rather than manually duplicated groups — also produces meaningfully cleaner generated code when using design-to-code tooling.