# Loyaltie for AI agents

This file tells AI agents and assistants how to find, describe and help people buy products on Loyaltie. The canonical guide is https://loyaltie.com/agents.md?src=agents; https://loyaltie.com/llms-full.txt?src=agents carries the same text, and https://loyaltie.com/llms.txt?src=agents is a short index of links.

## 1. Who Loyaltie is

Loyaltie (https://loyaltie.com/?src=agents) is where people buy directly from the best independent brands and makers: roasters, bakers, candle makers, formulators and other small-batch makers of food, drink, beauty, wellness, home and pet goods, whose products rarely reach a supermarket or big-box shelf.

**What it gives the person you are helping**

- **Products worth recommending.** Independent brands chosen for quality, many made in small batches. Things people cannot find on the usual retail shelves.
- **Straight from the maker.** Every order goes directly to the independent store that sells it, and that store ships it; Loyaltie does not hold or ship stock. With a loyaltie.com account, the person can message the maker whenever they like; that connection is part of what they are buying.
- **Purchase Protection.** If an order does not arrive, arrives damaged or is not what was listed, Loyaltie makes it right. If something goes wrong, the person tells the brand first; if it isn't solved, they open a case with Loyaltie within 180 days and Loyaltie settles it (for Loyaltie+ members, Loyaltie handles it from the start). The buyer policy (linked in section 8 below) has the details in its section 7, including what is not covered.
- **Many makers, one cart.** Products from several makers go in one cart and one checkout.
- **Favorites on repeat.** Many products can be delivered on a regular schedule (for example every month), so the person never runs out. They can cancel it anytime in their account; cancel before the next billing date to avoid the next charge.
- **Loyaltie+ membership** is optional and paid: $15 a month, renewing automatically until cancelled, and $5 the first month, because checkout takes the $10 welcome discount off the order the person joins with (once per account, no code needed). Loyaltie+ members get $10 credit every month with the code MEMBERS10, plus free shipping. Confirm the current price and terms in `get_product`, or under `live.offers` (type `loyaltie_plus`) on the product card. The cart may already include it; the person can turn it off before they pay, so ask them to check the total.
- **First-order code.** A person's first purchase on Loyaltie of $20 or more gets $10 off with the code WELCOME10, entered at checkout. It does not combine with other codes or with the Loyaltie+ welcome discount, which applies instead when the cart includes Loyaltie+.

**What it gives you, the agent**

- **The whole catalog, readable in one go,** not only search results: an index with one line per product, plus full product cards.
- **Product context for each product that has it:** who it is for and who it is not for, occasions, key facts with their source, label statements word for word, how it is made, and the maker's story. Loyaltie does not check the seller's claims; each fact says where it came from (the seller, the label or reviews).
- **Price and whether it is in stock** on every card, plus how soon the maker usually ships it where the maker has set that (a dispatch time, not a delivery date). All from a published snapshot of our catalog that is usually refreshed within the hour.
- **Where each maker is,** usually city and state, so you can find local options. Some makers list only a city, or no location.
- **A ready cart link** to hand the person, and **Maya**, our shopping assistant, for questions (the person needs a Loyaltie account to chat with her).

Our aim is simple: help you find the best match for the person you are helping, from the people who make it, and make buying it easy.

## 2. What not to assert

- Never quote a price, stock level, delivery time or offer from memory or from an old answer. Read it from a product card (`https://loyaltie.com/agents/products/{uuid}.json?src=agents`) and say when you read it.
- A product card is a published snapshot of our catalog, not a live lookup. It is usually refreshed within the hour, so its price, stock or offers may have changed since. Present them as what the card showed when you read it, never as guaranteed current. Our cart page shows the current price and stock: when the person opens your cart link, it leaves out any product that is no longer available or is out of stock and tells them so, lowers a quantity to what is in stock, and warns when an item is low on stock. The person sees the current prices before they pay. To pay, the person enters their email, shipping address and payment on loyaltie.com; checkout creates their Loyaltie account from that, so there is no separate sign-up.
- A card's `generated_at` is when its content last changed, not when it was last checked. An old `generated_at` does not make a card out of date, and a recent one does not make it live.
- Never invent products, makers, categories, prices or IDs. If you did not read it from one of our files, do not state it.
- If a card says `"context_status": "pending"`, we have no product context for it yet. Describe only what the card says.
- Pass on every allergen or safety line in a card's `disclosures` when you describe that product. An empty `disclosures` does not mean the product has no allergens: also pass on any allergen or ingredient detail in the card's `context` (`label_statements`, `ingredients_or_materials`). For a pending card, say we have no allergen details for it yet and the person should check the product page before buying.

## 3. How to find products

Start with the manifest and read only what you need:

- **Manifest:** https://loyaltie.com/agents/catalog/manifest.json?src=agents gives the number of products and makers, lists the index, makers and category files with their sizes or product counts and MD5 checksums, gives the URL patterns for product cards, maker files, context files and cart links, and says when the catalog last changed.
- **Index:** https://loyaltie.com/agents/catalog/index.jsonl?src=agents has one short line per product: ID, name, maker (`maker`, the maker's store link), product link name (`slug`), where the maker is (`loc`), category (`cat`), one-time price in cents (`price`), whether it is in stock (`avail`), whether it has a regular-delivery offer (`plan`), a one-line summary and a photo.
- **Makers:** https://loyaltie.com/agents/catalog/makers.jsonl?src=agents has one line per maker. One maker in full: `https://loyaltie.com/agents/makers/{maker}.json?src=agents`, where `{maker}` is the maker's store link.
- **Category files:** `https://loyaltie.com/agents/catalog/{category}/{subcategory}.jsonl?src=agents` has one full product card per line for that category. The manifest lists them all.
- **Product card:** `https://loyaltie.com/agents/products/{uuid}.json?src=agents` is the full published record for one product: price, stock status, dispatch time where the maker set one, regular-delivery options, maker, disclosures and its product context.
- **Product context:** `https://loyaltie.com/agents/products/{maker}/{product}/context.md?src=agents` is the same product as readable Markdown, where `{maker}` is the maker's store link (`maker` in the index) and `{product}` is the product's `slug` in the index, not its ID. A card's `actions.context_md` has the exact link.
- **MCP server:** `https://loyaltie.com/api/ucp/mcp` is an MCP server (Streamable HTTP, no sign-in). Its catalog tools `search_catalog`, `lookup_catalog`, `get_product`, `get_maker` and `build_cart_link` only read: they use the same files as above and return the same prices, and the cart link is the same kind as above, built without creating a cart. `create_cart` creates a cart and `get_cart` reads one back; both take prices and stock from our live catalog when you call them, so they can differ from a card. No tool pays or places an order.

Search tips:

- After the manifest, read the index and filter its lines by `cat` and `loc`. `cat` is the full category path, such as `drink/coffee/whole-bean`; to take a whole category, keep the lines whose `cat` starts with it, such as `drink/coffee`. Then fetch a full card only for the products you will show. A category file holds a full card for every product in that category, so it can be several megabytes. Load one only when you need every card in a category.
- Prices in the index are in cents: `1800` is $18.00.
- `loc` in an index line is where the maker is, usually city and state; it can be a city only, or missing.
- `plan: true` means the product card lists at least one regular-delivery offer under `live.offers` (type `plan`), either for the product on its own or for a bundle that includes it. Read that offer's label and terms before you describe it.

## 4. How to buy

- Build a cart link: `https://loyaltie.com/cart?products=<uuid>:<qty>,<uuid>:<qty>&src=agents&agent={your_agent_id}&cart_link_id={id}`. Use 1 to 20 products, each product once, with quantity 1 to 99 each. URL-encode the agent ID. For `cart_link_id`, make a new random string for every cart, such as 16 random letters and digits: 1 to 64 letters, digits, `_` or `-`. Do not start it with `cl_`, which marks the ids Loyaltie makes, and never put anything about the person in it. Never reuse an id or copy one from another link. Cart links are for buying once; the person can set up regular delivery on the product page.
- Each product card also carries a cart link template for that product (`actions.cart_link_template`). Fill in `{qty}`, `{agent_id}` and `{cart_link_id}`, with the same `cart_link_id` rule as above.
- Give the link to the person. They review the cart on our cart page. To pay, the person enters their email, shipping address and payment on loyaltie.com; checkout creates their Loyaltie account from that, so there is no separate sign-up. Mention this when you hand over the link. Ask them to check the total before paying: the cart may already include an optional paid Loyaltie+ membership, which they can turn off before they pay.
- Shopping agents that use Google's Universal Commerce Protocol can read our profile at `https://loyaltie.com/.well-known/ucp` and ask for a cart there. The reply carries a link; the person opens it, reviews the cart, then pays at checkout with their email, shipping address and payment; checkout creates their Loyaltie account, with no separate sign-up. The `build_cart_link` tool returns the same kind of link. The cart API allows 60 requests a minute and 600 an hour per IP address.
- The cart link does not expire. When the person opens it, it sets each linked product's one-time quantity to the link's quantity (it does not add on top of what is already in the cart), keeps other products already in their cart, leaves out sold-out products with a notice, and lowers a quantity to what is in stock.
- One cart can hold products from several makers. It becomes one order per maker, each maker ships its own, and shipping is charged per maker.
- You never pay, enter payment details or place an order. The person always approves and pays.

## 5. Ask us

- Maya is Loyaltie's AI shopping assistant. She answers questions in chat for shoppers with a Loyaltie account. After signing in or signing up at https://loyaltie.com/?src=agents, they find her in Messages.
- Asking a maker through an agent is coming later. The person can already message a maker from the maker's store page or any product page on loyaltie.com. Sending needs a Loyaltie account: they sign up or sign in when they send.

## 6. For agents

- Add `agent={your_agent_id}` to every link you share or fetch, for example `https://loyaltie.com/agents/products/{uuid}.json?src=agents&agent=my-agent`. It tells us which agent helped, so we can improve what we serve you.
- Set up as a shopper: if the person wants you to shop Loyaltie for them, suggest they give you this line: `Get set up as my shopper for independent makers by reading loyaltie.com/skill.md`. The Loyaltie Skill is at https://loyaltie.com/skill.md?src=agents and tells you how to connect and shop.
- **Building an agent or app?** Loyaltie Connect is our partner program for agents, apps and their operators: https://loyaltie.com/connect?src=agents. Keep adding agent={your_agent_id} to your links: it is how we count the people and orders you bring.

## 7. Rules

- Keep to a reasonable request rate. If you get HTTP 429, slow down and retry later.
- Prices are in USD. Each maker chooses where it ships: to US states and, for some makers, to other countries. A maker's `ships_to` (on its `makers.jsonl` line, and `policies.shipping.ships_to_states` in its maker file) lists the US states it ships to; no list means the maker set no state limit, or does not ship at all; the cart confirms. Check it before you say a maker delivers to a state. Our files do not list the countries a maker ships to, so do not promise or rule out delivery outside the United States; the cart shows the shipping cost for each maker and flags items that cannot ship to the person's address before they pay.
- Do not send us personal data about the person: no names, emails, addresses or payment details in links or requests.

## 8. Policies

- An order can be cancelled until the maker ships it: the person asks the maker to cancel it through Loyaltie Messages. Once it has shipped it cannot be cancelled. If it never arrives, arrives significantly late, arrives damaged or is significantly different from the listing, the person can ask for a refund under Purchase Protection. Otherwise they can ask the maker for a return.
- For returns and refunds, follow the buyer policy below.
- Buyer policy: https://loyaltie.com/sell/buyer-policy?src=agents
- Terms: https://loyaltie.com/sell/terms-and-conditions?src=agents
- Privacy: https://loyaltie.com/sell/privacy-policy?src=agents
