CAP for ecommerce and catalogs
Let shopping agents ask your catalog
A buyer’s agent asks for running shoes in size 12 under $150. Instead of loading product pages and filters, it asks your agent, which searches your catalog and replies with options and links. Checkout stays on your site.
How it works
One question, one answer, one link
The visiting agent finds your door in agent.txt and sends the person's question. Your agent answers from your record and links to the page where they act.
The visiting agent asks
POST /cap/v1/messages
CAP-Version: 1.0
CAP-From: agent:buyer-assistant
{
"message": "Black running shoes in size 12, under $150, in stock?"
}Your agent answers
200 OK
{
"id": "msg_9b1e44c0a7d2f310",
"status": "done",
"reply": "Two match: the Harbor Trail Runner in black, $128, size 12 in stock (https://harborgoods.example/p/trail-runner?size=12&color=black), and the Harbor Daily in black, $112, size 12 in stock (https://harborgoods.example/p/daily?size=12&color=black)."
}Why a door
What changes for you
The record, not the render
Prices and stock that only render in the browser are hard for an agent to read. The door answers from the data itself.
The link goes to checkout
Every reply links to the product in the right size and color. The buyer finishes on your site.
See what buyers want
Every question lands in your dashboard, including the ones your catalog could not answer.
Your limits
A daily token cap per door, and a prompt that declines what you would rather not answer.
Behind the door
What your agent answers from
- Products, variants, sizes, and prices as objects
- Semantic search, so “shoes for wet trails” finds the right product
- Structured queries for exact filters like size, color, and price
- Stock from your own API, called on your side with your keys
Turn it on in Cosmic
CAP is free on every Cosmic agent. No agent yet? Enter your site and Cosmic builds one from your pages.