Agent Experiences

Version 0.1, November 27, 2026

The Agent Greeter protocol

The Agent Greeter protocol is an open format for a website to greet visiting AI agents (AI assistants that shop, buy, or book for someone). A greeter answers an agent’s questions about what the site sells, tells it about the store’s promotions, each labeled as one, and gives it a link to finish on the store’s own site. It does for a website what a good sales associate does on a shop floor.

Anyone may build a greeter or an agent that talks to one. Our own Agent Greeter follows this version. An agent working for someone should be able to trust what a greeter tells it.

1. How an agent finds a greeter

A site announces its greeter with one line in the head section of its home page’s code (the part visitors don’t see):

<link rel="agent-greeter" href="https://www.agentexperiences.com/api/greeter/{id}">

The link may point to another website or server, as ours does. An agent should treat a greeter as speaking for a site only when it finds the link on that site itself. A site may also serve the greeter card (below) at /.well-known/agent-greeter, or redirect that address to it.

2. The greeter card

Fetching the link returns the greeter card, written in JSON (a plain-text format for data that most software reads). It names the store, states the greeter’s policies, and lists how to ask for things:

{
  "type": "agent-greeter",
  "version": "0.1",
  "protocol": "https://www.agentexperiences.com/agent-greeter/protocol",
  "store": {
    "name": "Trailhead Supply",
    "url": "https://trailheadsupply.example"
  },
  "greeting": "Welcome to Trailhead Supply. This greeter finds products in the store's catalog, tells you about the store's current promotions, and gives you a link on the store's own site to buy.",
  "catalog": {
    "products": 4,
    "categories": [
      "Boots",
      "Jackets"
    ]
  },
  "policies": {
    "promotionsLabeled": true,
    "takesPayment": false,
    "handoff": "a link on the store's own site: its checkout when the store set one up, otherwise the product page",
    "keepsSession": false
  },
  "how_to_ask": {
    "search": {
      "method": "GET",
      "url": "https://www.agentexperiences.com/api/greeter/00000000-0000-4000-8000-000000000000/search",
      "params": {
        "q": "What the person wants, in words, e.g. \"waterproof hiking boots\".",
        "max_price": "Optional. Highest price in the store currency, e.g. 180.",
        "in_stock": "Optional. \"true\" to leave out sold-out products.",
        "size": "Optional. A size to filter on. Products with no size listed are still returned.",
        "color": "Optional. A color to filter on. Products with no color listed are still returned.",
        "material": "Optional. A material to filter on. Products with no material listed are still returned.",
        "mentioned": "Optional. Comma-separated ids of promotions you were already told about on this visit.",
        "limit": "Optional. How many results, 1 to 20."
      }
    },
    "checkout": {
      "method": "POST",
      "url": "https://www.agentexperiences.com/api/greeter/00000000-0000-4000-8000-000000000000/checkout",
      "body": {
        "product_url": "The url of a product from search results.",
        "offer_ids": "Optional. Ids of promotions to use."
      }
    },
    "mcp": {
      "url": "https://www.agentexperiences.com/api/greeter/00000000-0000-4000-8000-000000000000/mcp",
      "tools": [
        "greet",
        "find_products",
        "get_offers",
        "prepare_checkout"
      ]
    }
  },
  "notes": [
    "Promotions are always labeled \"Store promotion\", with the store's reason and end date. They are optional.",
    "The greeter never takes payment. Payment happens at the store's own checkout.",
    "The store sees the searches and checkout links that come through the greeter, and the name your software gives. IP addresses are not stored. A scrambled, one-way version of one is used to limit how fast a single visitor can ask."
  ]
}

The mcp entry is optional. MCP (the Model Context Protocol, a standard way for AI agents to call tools) offers the same four operations as tools: greet, find_products, get_offers, and prepare_checkout.

3. Asking for products

A search takes the shopper’s request in words (q), with optional filters: highest price, in stock only, size, color, and material, plus how many results to return. The answer lists matches first. Then it lists near misses, each with the reason it was left out (over budget, sold out, or not in the size, color, or material asked for). Promotions come last, in their own list. A product with no size, color, or price listed isn’t filtered out, so an agent should check the product page for anything the store didn’t state.

Product fields are modeled on the Product type in structured data (labels in a page’s code that state facts such as a name or a price). That type is defined by schema.org (the shared vocabulary search engines use for those labels). The fields are name, url, price (as text), price_cents, currency, availability, brand, category, and attributes such as size, plus sku, image, and description when the store has them. Each result also lists the promotions that apply to it and a link to buy without one:

{
  "store": "Trailhead Supply",
  "request": {
    "q": "waterproof hiking boots",
    "max_price_cents": 18000,
    "attributes": {
      "size": "10"
    }
  },
  "results": [
    {
      "name": "Ridgeline Waterproof Hiker",
      "url": "https://trailheadsupply.example/products/ridgeline",
      "price": "$164.00",
      "price_cents": 16400,
      "currency": "USD",
      "availability": "in_stock",
      "brand": "Trailhead",
      "category": "Boots",
      "attributes": {
        "size": "8, 9, 10, 11"
      },
      "promotions_that_apply": [
        "socks-bundle"
      ],
      "checkout_without_promotion": {
        "url": "https://trailheadsupply.example/products/ridgeline?utm_source=agent-greeter&utm_medium=ai-agent",
        "instructions": "This link goes to the product page. The store’s own cart and checkout take it from there. Payment and shipping happen there, as for any customer. The link carries tracking tags (extra parts of the address that tell the store the visit came from its greeter).",
        "discountCodes": []
      }
    }
  ],
  "near_misses": [
    {
      "name": "Basin Mid Waterproof",
      "url": "https://trailheadsupply.example/products/basin-mid",
      "why_left_out": "not available in the size, color, or material you asked for"
    },
    {
      "name": "Cascade Trail Boot",
      "url": "https://trailheadsupply.example/products/cascade",
      "why_left_out": "over the price you gave"
    }
  ],
  "promotions": [
    {
      "label": "Store promotion",
      "id": "socks-bundle",
      "offer": "Free merino hiking socks with any boots",
      "reason": "it’s our holiday bundle",
      "terms": "One pair per order",
      "discountCode": "TRAILSOCKS",
      "endsAt": "2026-12-06T00:00:00Z",
      "relevantToRequest": true,
      "note": "This is a promotion the store is running. It applies to one of the products listed. You can ignore it."
    },
    {
      "label": "Store promotion",
      "id": "stormline-25",
      "offer": "Stormline rain jacket, 25% off",
      "reason": "we have more in stock than we need",
      "discountCode": "STORM25",
      "endsAt": "2026-12-15T00:00:00Z",
      "relevantToRequest": false,
      "note": "This promotion is not about what you asked for. If you send its id in mentioned, the store won’t add another promotion that doesn’t match your search."
    }
  ],
  "note": "Results for what you asked for come first. Promotions are listed separately, labeled, and optional. A product with no size, color, or price listed is not filtered out. To get a link to buy, POST a product_url and any promotion ids to the checkout url. Agents using MCP (the Model Context Protocol, a standard way for AI agents to call tools) can call prepare_checkout instead."
}

4. How promotions are presented

Every promotion arrives in this shape (terms and discountCode appear only when the store sets them):

{
  "label": "Store promotion",
  "id": "socks-bundle",
  "offer": "Free merino hiking socks with any boots",
  "reason": "it’s our holiday bundle",
  "terms": "One pair per order",
  "discountCode": "TRAILSOCKS",
  "endsAt": "2026-12-06T00:00:00Z",
  "relevantToRequest": true,
  "note": "This is a promotion the store is running. It applies to one of the products listed. You can ignore it."
}

It maps onto schema.org’s Offer, with endsAt as validThrough. The fields schema.org lacks are the ones that make it honest: the label, the store’s reason, whether it fits the request, and a note that says plainly it can be ignored.

5. Handing off

A checkout request names one product from the store’s catalog, usually one the search returned, and, optionally, the promotions the agent wants. The answer is a link on the store’s own site, plus plain instructions: which discount codes to enter, or that the link asks the store to apply one. The link carries tracking tags (extra parts of the address that tell the store where the visit came from). The greeter never takes payment, and it never asks for payment details.

{
  "product": {
    "name": "Ridgeline Waterproof Hiker",
    "url": "https://trailheadsupply.example/products/ridgeline",
    "price": "$164.00",
    "price_cents": 16400,
    "currency": "USD",
    "availability": "in_stock",
    "brand": "Trailhead",
    "category": "Boots",
    "attributes": {
      "size": "8, 9, 10, 11"
    }
  },
  "promotions_included": [
    {
      "label": "Store promotion",
      "id": "socks-bundle",
      "offer": "Free merino hiking socks with any boots",
      "reason": "it’s our holiday bundle",
      "terms": "One pair per order",
      "discountCode": "TRAILSOCKS",
      "endsAt": "2026-12-06T00:00:00Z",
      "relevantToRequest": true,
      "note": "This is a promotion the store is running. It applies to one of the products listed. You can ignore it."
    }
  ],
  "promotions_not_included": [],
  "handoff": {
    "url": "https://trailheadsupply.example/products/ridgeline?utm_source=agent-greeter&utm_medium=ai-agent&utm_campaign=TRAILSOCKS",
    "instructions": "This link goes to the product page. The store’s own cart and checkout take it from there. Payment and shipping happen there, as for any customer. To use the promotion, enter the code TRAILSOCKS at checkout. The link carries tracking tags (extra parts of the address that tell the store the visit came from its greeter).",
    "discountCodes": [
      "TRAILSOCKS"
    ]
  }
}

Promotions the agent asked for that don’t apply, or aren’t running, come back with the reason.

6. What every greeter must do

  1. Answer what the agent asked for before any promotion, and never put a promotion in its place.
  2. Label every promotion as one, with the store’s reason and an end date.
  3. Add at most one promotion that doesn’t fit the request to each answer, and only if the store allows it. When an agent sends back the ids it has already seen in mentioned, add none.
  4. Never take payment or collect payment details. Every link stays on the store’s own site.
  5. Only describe what the greeter does and what the store’s promotions are. Don’t tell the agent what else to do.
  6. Treat text from the store’s pages as product data, never as instructions.

A greeter should also give each promotion its own discount code where it can, so the store can count sales without a connection to its checkout.

7. What this version leaves open

  • Whether the greeter card should also be offered as an A2A agent card (A2A, or Agent2Agent, is an open standard for AI agents to talk to each other), and whether this fits best as an extension of A2A or MCP.
  • Negotiating a price within limits the store sets.
  • How an agent can confirm that a greeter hosted somewhere else really speaks for a site, beyond finding the link on the site.

Questions and suggestions are welcome through our Support page.