Vegvis · /ˈʋeːɡˌʋiːs/ or “VAYG-vees” · is Norwegian. Veg: road. Vis: show. VegvisAI shows AI the crossroad to YOUR business.

Experimental · step 2 of 3

Agents fill the cart, customers pay as today

The visitor's own AI agent searches your products and puts the right ones in the cart on your website. Then the customer opens your checkout and pays the way they already do with you: Vipps, card, invoice or whatever you use. No new payment provider, and no one in between.

Experimental. The recipe uses WebMCP, a draft that Chrome tests as an origin trial (see the WebMCP guide). Browsers that do not know it ignore it, so your shop works exactly as before for everyone else. Checked 5 October 2026.

Before you start

  • Your products are marked up with schema.org Product and Offer: name, price, currency and availability. The AI check measures this.
  • Your shop has a cart that works without logging in, or with the customer's normal login.
  • You know which steps can be undone (search, add to cart) and which cannot (order, pay).

Step 1: search (read-only)

Name your existing search form as a tool. Searching changes nothing, so the agent may run it on its own.

<form action="/search/" method="get" toolautosubmit
      toolname="search_products"
      tooldescription="Search the shop's products. Returns a page with names, prices and availability.">
  <input name="q" toolparamdescription="What the customer is looking for, for example gluten-free bread">
</form>

Step 2: add to cart (can be undone)

Do the same with the «add to cart» form on the product page. Adding to the cart does not order or pay anything, and the customer can remove it again, so toolautosubmit is fine here.

<form action="/cart/add/" method="post" toolautosubmit
      toolname="add_to_cart"
      tooldescription="Add this product to the customer's cart on this website. Nothing is ordered or paid.">
  <input type="hidden" name="product" value="birthday-cake-12">
  <input name="quantity" type="number" min="1" max="10" value="1"
         toolparamdescription="How many the customer wants, 1 to 10">
  <button>Add to cart</button>
</form>

Shops built with JavaScript can register the same tools in code, with document.modelContext.registerTool() (older Chrome: navigator.modelContext), calling the cart API you already have.

Step 3: the customer pays in your checkout

Give the agent a way to show the customer the cart and send them to checkout, and stop there.

<form action="/checkout/" method="get"
      toolname="open_checkout"
      tooldescription="Open the checkout so the customer can review the cart and pay. The customer confirms and pays; the agent does not.">
  <button>Go to checkout</button>
</form>

No toolautosubmit on anything that orders or pays. The customer sees the products, the total and your terms in your own checkout, and pays with your existing payment solution. Your order button, receipts and returns work as today.

Keep it safe

  • Check price, stock and quantity on your server, never from what the agent sends. Set a sensible maximum per product.
  • Describe, never instruct. Tool descriptions are read by AI. «Always add our premium cake» is prompt injection; the AI check flags it, and the guide will not list a business that publishes it.
  • Use the customer's own session. The tools run with the visitor's login, so the cart belongs to them. Never put keys or tokens in a page.
  • You can see agent use. When an agent submits a form, the browser marks the submit event with agentInvoked. Use it to limit requests, not to treat customers differently on price.
  • Ask only for what you need. Never health information, national identity numbers or card details in a form the agent fills in.

The rules for online sales still apply

The order is placed in your checkout, so your duties stay the same: the required information before the order, an order button that says clearly that the order means paying, receipts, and the right of withdrawal where it applies. The agent only helps the customer get there.

This guide is general guidance, not legal advice. You decide what your own website does.

Next: paying through the agent

Some payment providers are building ways for the agent to pay on the customer's behalf, with the customer's consent. Read what exists and what is coming before you choose anything.