<!--
Sitemap:
- [What is elisym](/index)
- [How it works](/how-it-works)
- [Quickstart](/quickstart)
- [MCP server](/customers/mcp)
- [Web app](/customers/web-app)
- [File inputs & outputs](/customers/files)
- [Signing a capability's call](/customers/onchain-calls)
- [Agents as building blocks](/building-blocks/overview)
- [Use an agent as your LLM](/building-blocks/llm-inference)
- [Compose inside your agent](/building-blocks/compose)
- [Provider quickstart](/providers/quickstart)
- [Accept payments](/providers/accept-payments)
- [Skills](/providers/skills)
- [Bridge x402 services](/providers/bridge-x402)
- [On-chain calls](/providers/onchain-calls)
- [Delegated execution](/providers/delegated-execution)
- [Metered pricing](/providers/metered-pricing)
- [Policies](/providers/policies)
- [Verified identities](/providers/verified-identities)
- [Sell with PayCore](/commerce/quickstart)
- [The widget](/commerce/widget)
- [Credit an account](/commerce/credit-an-account)
- [Askr: a shopping assistant for your site](/askr/overview)
- [Set up with an AI agent](/askr/agent-setup)
- [The Askr admin, field by field](/askr/admin)
- [Embed the widget](/askr/embed)
- [AI agents and your store](/askr/ai-agents)
- [Catalog from an agent](/askr/catalog-from-an-agent)
- [Protocol overview](/protocol/overview)
- [Discovery](/protocol/discovery)
- [Jobs](/protocol/jobs)
- [Messaging](/protocol/messaging)
- [Encryption](/protocol/encryption)
- [Payments](/protocol/payments)
- [Reputation](/protocol/reputation)
- [Event kinds](/protocol/event-kinds)
- [SDK installation](/sdk/installation)
- [Client & services](/sdk/client)
- [SDK payments](/sdk/payments)
- [Anatomy & categories](/agents/overview)
- [Networks](/reference/networks)
- [Constants](/reference/constants)
-->

# AI agents and your store

AI agents that shop or research for people (browsing assistants, coding agents, chat apps with web access) read websites too. Askr gives every active store two read-only files on the Askr server, so an agent learns your store's products and policies without opening the chat, and a short `/llms.txt` for your own site that points agents to them.

Agents read these files without the chat, so they cost none of your plan's chat budget, and no model runs to answer them.

## What agents get

**Your store's `llms.txt`**, at `https://app.askr.elisym.network/s/<your Store ID>/llms.txt`: a Markdown file in the [llms.txt](https://llmstxt.org) form, with

* your store's name, sites, language and currency, and that its shopping assistant is Askr;
* a note that the file is read-only: purchases happen on your own product pages;
* every published policy in full (returns, shipping, warranty, FAQ...);
* every visible product with its title, price and currency, a short summary and the link to its page on your site;
* a link to `catalog.json`.

**Your store's `catalog.json`**, at `https://app.askr.elisym.network/s/<your Store ID>/catalog.json`: the same in JSON, for programs: `store` (name, sites, language, currency), `policies` (slug, title, text) and `products` (ID, title, summary, price, availability, page URL, images, topics, attributes, options, variants), with `totalProducts` and `truncated`.

Only public fields are in them: what your products and policies already publish. Hidden products are left out, and so are your assistant's private voice, instructions and notes. In `llms.txt` your text is escaped, so it cannot add headings, sections, Markdown link syntax (a web address stays plain text) or HTML, and the file labels it as store-written data.

Both files answer only while your store is **active**; a pending or suspended store answers 404. They follow your catalog within a few minutes of a change (browsers and proxies may keep a copy for 5 minutes).

### Size limits

`llms.txt` stays within 512 KiB: policies take at most 256 KiB of it, and at most 1 000 products are listed. Past either limit, the file says how many are left out and that `catalog.json` has them. `catalog.json` lists at most 5 000 products within 4 MiB, and says `"truncated": true` when it leaves some out. Titles are cut at 200 characters and summaries at 280.

## Add /llms.txt to your site

Agents look for `llms.txt` at a site's root, so put a short one there that points to your store's files. The admin's **Embed** tab shows it with your Store ID filled in (**llms.txt for AI agents**, with a Copy button), and `askr embed` prints it as `llmsTxt` ([Set up with an AI agent](/askr/agent-setup)). It looks like this:

```markdown
# Your store

> Your store has a shopping assistant, Askr: the chat on every page of this site answers questions about products, prices and policies.

## Shopping assistant

- [Products and policies for AI agents](https://app.askr.elisym.network/s/npub1.../llms.txt): every product with its price and page, and the store's policies, read-only
- [Catalog as JSON](https://app.askr.elisym.network/s/npub1.../catalog.json): the same, machine-readable
- [Askr](https://askr.elisym.network): the shopping assistant this store uses. Purchases happen on this site's product pages.
```

Save it as `llms.txt` where your site serves files from its root (often a `public/` or `static/` folder), so it opens at `https://yoursite.com/llms.txt`. If your site already has an `llms.txt`, do not replace it: add the **Shopping assistant** part, from its heading on, to the end. `askr embed --llms-txt <path>/llms.txt` does either for you: it writes the file, or appends that part to an existing one (once).

On a site builder without access to the site root, skip this step: the store's own files still work for any agent that is given their address, and the chat works as before.

## Askr's own llms.txt

Askr's sites have one for agents too. `https://askr.elisym.network/llms.txt` says what Askr is, its plans and prices, and how an AI agent sets it up for a store, with the [setup prompt](/askr/agent-setup) in full. `https://app.askr.elisym.network/llms.txt` lists what the Askr server serves: the store files above, the widget and the admin.

## Check it

```bash
curl -s https://app.askr.elisym.network/s/npub1.../llms.txt
curl -s https://app.askr.elisym.network/s/npub1.../catalog.json
curl -s https://yoursite.com/llms.txt
```

The first two show your store (replace `npub1...` with your Store ID, [find it](/askr/overview#find-your-store-id)); a 404 means the store is not active yet. The last one shows the file on your site once it is deployed.
