Blog · Commerce

Make your store alive for shopping agents

· AGEN team

In the AI era a chatbot can be your best salesperson — but only if your catalog, prices and checkout are legible to a machine.

A shopper no longer has to open ten tabs to compare a product. They ask ChatGPT, Perplexity or Claude for “the best noise-cancelling headphones under $200 with USB-C”, and the answer comes back with links, prices and a verdict. The question for a store is no longer only “do humans find us on Google?” but “does an agent read my catalog well enough to recommend it?”

Most stores fail that test without knowing it. The product page renders the price from JavaScript after the first paint, so the agent reads an empty shell. The “Add to cart” button is a div with an onClick handler and no accessible name, so a machine cannot tell what it does. The size selector is a styled span, the reviews live in an iframe, and the inventory status is a colour dot with no text. To a human it looks like a polished storefront; to an agent it reads like a blank document with a few buttons it cannot press.

The fix is not a redesign. It is legibility. Put the product name, price, currency, availability, SKU and brand in the initial HTML as real text, not only inside a hydration payload. Give every interactive element an accessible name that states its action and its target: “Add the QuietPro X headphones in black to cart”, not “Add”. Mark up the product with Product, Offer and Review structured data so an agent does not have to guess which number is the price and which is the rating. Keep the cart count, the subtotal and the total as text, and announce checkout errors in the DOM with a message an agent can read.

Catalog pages matter as much as product pages. Filters and sort controls should be real form controls with labels, not click handlers on spans. Pagination should be links with hrefs so an agent can walk the whole catalog instead of stopping at page one. Breadcrumbs, category names and variant names should be text, because those are the words an agent quotes when it recommends you. If your search returns results only after JavaScript runs, ship a server-rendered first page and hydrate the rest.

Rendering is the quiet killer. A store built as a single-page app sends an empty div#app and a bundle; some agents execute it, many do not, and none of them wait long. Server-render the shell, stream the primary content, or prerender the pages that drive revenue. AGEN now compares the raw HTML with the rendered DOM on every audit, so a product page that only exists after hydration is flagged with the actual gap — “raw HTML carries 0 characters of text, 0% of the 139 a browser sees” — instead of a polite warning about script tags.

Performance is agent-readiness too. An agent that has to download four megabytes of JavaScript to read a price will time out, and a slow page is a page that never gets recommended. Trim the bundle, lazy-load below the fold, and keep the critical path small. The same work that helps Core Web Vitals helps agents, because both are about how much of the page is usable before scripts finish.

Once the markup is legible, make it actionable. Expose a cart and checkout an agent can drive: labelled inputs with autofill hints, clear totals, and errors that say what went wrong. If you run promotions, put the code and its rules in text rather than a banner image. If stock is low, say “Only 3 left” as words. Agents are literal readers — they act on what is written, not on what is implied by colour or layout.

The payoff is not only defensive. A store that an agent can read becomes a store an agent can sell. When a shopper asks for a recommendation, the agent quotes your headline, your price and your availability, and links straight to the product. You stop competing for a click and start being the answer. AGEN is built for exactly this: point it at a product page, a category page and the checkout, read the score and the fix list, and hand the markup to your team — or to an agent over MCP — to ship the changes.

Markdown version