Blog

AI in an Online Store, Beyond the Chatbot in the Corner

Four places where AI improves an online store without being a floating chat: searching by asking, pages that compose from what you ask, customers that are agents and answers inside the product page. With demos.

Published on


Views

0 views

Reading time:7 min

When a store says it "has AI", it almost always means the same thing: a bubble in the bottom right corner that says hello when you arrive. It covers the buy button on mobile, gives generic answers, and most people close it without reading.

Useful AI in a store rarely looks like a chat. It lives in the search box, in how the results page is put together and in how the store's data is prepared for others. Here are four places where I have seen it work, with demos.

The previous post covered the store's microinteractions. This one is about the other half.

Searching by asking

A classic store search compares words. If you type "a gift for my dad who runs, under €50", it looks for products whose title contains "gift", "dad" or "runs". It finds nothing, or it finds the wrong thing.

A language model can read that sentence for what it is: an intent with filters. Gift, running, under €50. The store applies those filters to its own catalogue, just as if the person had ticked them by hand.

keywords
a gift for my dad who runs, under €50
0 results

No product title contains those words.

intent → filters
a gift for my dad who runs, under €50
GiftRunningUnder €50
  • Air running tee
  • Hydro vest
Pick a request. Keyword search matches words in titles; reading the intent turns the sentence into filters. Fixed results over a 14-product catalogue.

What matters is in the right pane: the AI does not invent products or write results. It turns the sentence into filters the store already understands, and shows them as chips you can remove. If the model gets "small" wrong, the person sees it and fixes it with one click.

search.ts
import { generateText, Output } from "ai";
import { z } from "zod";

const Intent = z.object({
  category: z.enum(["shoes", "apparel", "gear"]).optional(),
  maxPrice: z.number().optional(),
  occasion: z.enum(["gift", "self"]).optional(),
  tags: z.array(z.string()).max(4),
});

const { output } = await generateText({
  model: "anthropic/claude-haiku-5-5",
  output: Output.object({ schema: Intent }),
  prompt: `Turn this search into filters: ${query}`,
});

const products = await catalog.search(output);

The model returns an object with a fixed shape, validated with Zod, and the catalogue does the rest. A small, fast model is enough for this.

Pages that compose from what you ask

The next step is a results page that adapts to the request. If you ask for "a coffee corner at home", you do not get a flat list: you get the brewer, the grinder and the cups grouped together, with the filters that make sense for that request.

I built it as a prototype in the lab: you type what you have in mind and the store composes the page from a skeleton.

One request in the bar and the page composes: a title with the intent, filters with counts and products with their fit score.

This is called generative UI, and it has one rule I never break: the model picks from components that already exist; it does not write the interface. It decides which blocks to show and in what order, with which title and which filters. The cards, prices and buttons are the usual ones, with their states and their accessibility.

The model decides the layout; the data and the components are always the store's.

When is it not worth it? When people already know what they want. Someone searching "Soft Trail 2 size 42" needs the product page, not a composed page. Generative UI helps with open searches: gifts, problems to solve, "something for…".

When the customer is an agent

There is a change already under way: more and more purchases start in an AI assistant instead of on the store's site. Someone asks ChatGPT or Gemini for trail shoes, and the agent searches, compares and suggests.

Three protocols came out in 2025 and 2026 so that this purchase can be completed without the agent touching card details:

  • Agentic Commerce Protocol (ACP), from OpenAI and Stripe, announced on September 29, 2025 together with Instant Checkout in ChatGPT (Stripe).
  • Agent Payments Protocol (AP2), from Google, announced on September 16, 2025. It is built on mandates: signed records of what the person authorized (Google Cloud).
  • Universal Commerce Protocol (UCP), from Google with Shopify, Etsy, Wayfair, Target and Walmart, announced in January 2026 and compatible with AP2 (Google Developers).

In all three, the store is still the seller: it accepts or declines the order and keeps the customer relationship.

The agent searches and prepares the order; the person confirms and the store charges.

For someone who designs stores, this changes who part of the work is for. An agent does not see your product photo or your typeface: it reads data. If the size, the stock or the returns policy only live in an image or a loose paragraph, for the agent they do not exist.

The first step needs no new protocol: schema.org structured data on every product page, complete and true.

product.tpl
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Product",
  "name": "Soft Trail 2 shoes",
  "sku": "ST2-42",
  "size": "42",
  "offers": {
    "@type": "Offer",
    "price": "74.90",
    "priceCurrency": "EUR",
    "availability": "https://schema.org/InStock",
    "hasMerchantReturnPolicy": {
      "@type": "MerchantReturnPolicy",
      "merchantReturnDays": 30
    }
  }
}
</script>

An assistant that does not get in the way

None of this means there is no room for questions in a store. There is, but not in a bubble that covers the buy button. The questions on a product page are almost always the same: the size, the use, the return. And the answers are already in the store, spread across the size guide, the product details and the returns policy.

floating chat
Soft Trail 2€74.90
Size 42 selectedAdd to cart
Hi! How can I help you today?
questions on the page
Soft Trail 2€74.90
Add to cart
Tap the questions on the right. The answer comes from the store's own pages, says where, and never covers the buy button.

It works better like this:

  1. Questions sit next to what they are about, under the size and not in a separate window.
  2. Suggestions come from real questions: the most common ones in reviews, in customer support or in internal searches.
  3. Every answer says where it comes from. "From: Size guide" lets people check it, and forces the model to answer with what the store has written rather than with what sounds right.
  4. If it does not know, it says so and links to customer support. A made-up answer about returns is worse than none.

The AI you do not see

The four ideas have one thing in common: the AI works with what the store already has (the catalogue, the filters, the components, the policies) and makes it easier to use. It does not replace the interface or sit on top of it.

Where each idea shows up in the store.

If a store wants to start somewhere, I would start from the end of the list: complete structured data and answers on the product page. They are the cheapest, they help both people and agents, and they need no change of platform.