<!--
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)
-->

# Askr: a shopping assistant for your site

Askr puts a chat assistant on your store's site. It answers visitors from your own catalog and policies, shows product cards with prices taken from the catalog (never from the model), and hands off to the product page or your cart. It sells nothing itself and takes no payments.

Your catalog, policies and the assistant's settings live on Nostr, signed by keys you control. The Askr server runs the assistant: it reads what you published, answers visitors, and keeps the budget your plan allows.

## The keys

| Key                  | Who holds it                                                                      | What it signs                                                             |
| -------------------- | --------------------------------------------------------------------------------- | ------------------------------------------------------------------------- |
| Owner key            | You. It is the store's identity: the embed snippet names its npub.                | The store config and which catalog keys may write your products.          |
| Catalog key (server) | The Askr server, one per store.                                                   | Products and policies you edit in the admin, or that a connector imports. |
| Catalog key (yours)  | Your backend, CI or agent ([Catalog from an agent](/askr/catalog-from-an-agent)). | Products and policies you publish yourself.                               |
| Assistant key        | The Askr server, one per store.                                                   | The assistant's replies.                                                  |

A catalog key writes products only once the owner key authorizes it. The owner can revoke it at any time in the admin, and a leaked catalog key never touches payments: listings it signs can never carry payment terms.

## Product sources

A store reads its products from exactly one source, chosen in the admin:

* **Admin**: import a CSV or edit products in the admin, attributes, sizes, colors and other variants included; each change is live when saved. They are signed by the server's catalog key. In a CSV file, a column such as `attr:Material` is an attribute and `option:Size` an option; each variant is one row with the same `d`, with optional `variant_id`, `variant_price` and `variant_available` columns, and `*` in an option cell means any value of that option. The admin offers an example file.
* **Your catalog key**: publish from your own code with the SDK, or from an agent with the MCP tools.
* **Connector**: Shopify, WooCommerce or a Google product feed, imported on a schedule. Only public endpoints are read: no store token is needed. A shop behind a bot check (such as Cloudflare's) that refuses automated readers cannot be read; let the `AskrConnector` user agent through, or use a CSV file or a feed. Shopify tags that are the shop's own bookkeeping (`key: value` and the like) are not imported as topics. Shopify and WooCommerce also get native add-to-cart on the shop's own site.

## Onboarding

1. Open the admin at `https://app.askr.elisym.network/admin/` and let it make a secret key for your store, or paste the one you have (an `nsec`). Save it: it is your store, and it is shown only once. **Download key file** saves a small text file with the key, the Store ID and how to sign in; whoever has that file controls your Askr assistant, so keep it private. The admin keeps the key in the tab's memory, and on this device too unless you clear **Remember my key on this device** (below; on the new key screen it reads **Keep me signed in on this device**).

   **Remember my key on this device** (**Keep me signed in on this device** when the admin makes a new key) is ticked by default; clear it on a shared computer. The key is kept in the browser sealed with AES-GCM under a key the browser makes for the admin and never lets out (a non-extractable WebCrypto key in IndexedDB), never as the plain key, and nothing is sent anywhere. There is no password: anyone who can use that browser profile can sign in as your store, so remember the key only on your own device. Next time, **Continue** signs you in with one press, and a reload (or a tab the browser reopens or duplicates) signs you in again on its own until you sign out. Each Store ID is remembered once, so a device can hold the keys of several stores. If the browser's site data is cleared, sign in with your secret key again. **Forget**, on the sign-in page, or **Forget this device** under Advanced, removes it. When you replace your secret key, the old key is forgotten on this device and the new one is remembered unless you clear the box. Where the browser keeps nothing (some private windows), the option is not offered.

2. Create the store. Fill in its name, language, currency, the origins your site runs on, the product source, and the assistant's voice and instructions. One signing step stores the config and the catalog key authorization.

3. Choose a plan in the admin's Billing page. **Start on Free** puts the store live at once. A paid plan (Starter, Growth, Pro or Scale, billed monthly or yearly) is **Upgrade**: you pay on a Stripe Checkout page (prices include tax), and the store goes live as soon as the payment goes through. For Enterprise, message us with your Store ID ([find it](#find-your-store-id)). An AI agent setting up your store can start Free for you, or give you the checkout link for the paid plan you chose, when you tell it to ([Set up with an AI agent](/askr/agent-setup)). While a store is pending, or while its settings are being published, the admin shows your settings from what you signed, which the server holds; your browser checks every signature, as it does for the relay. Once active, the server publishes what you signed, the relay becomes the source, and the assistant starts answering.

4. [Embed the widget](/askr/embed) on your site, and add its `/llms.txt` for [AI agents](/askr/ai-agents). You can do it while the store is pending: the widget shows nothing until the store is active.

Every field and section of the admin is explained in [The admin, field by field](/askr/admin). From the admin you can later edit the settings (a connector is set up there, as your product source, then turned on or off in the Connector tab), import products, edit policies, and see usage against your plan; under Advanced, manage catalog keys, rotate the assistant key, and replace your secret key.

The overview counts **conversations**: a conversation is one visitor's chat, up to 24 hours from their first message, that got at least one answer. Each is counted once, on its first answer, however many questions follow or however often a turn is retried; a chat whose questions all failed is not counted. The count starts around the server upgrade that introduced it: chats still open then are included, older ones are not. A server operator should not run instances of the old and new version side by side during that upgrade, since an old instance answers without counting. Next to it are the open conversations (chats started in the last 24 hours) and the advisory **product clicks**: for each product, how often a visitor opened its page from a card in the chat and how often they pressed its add to cart button. Both are counted as the visitor's browser reports them. Presses are counted from the widget version that introduced them on: a page still running an older widget counts its presses as page opens.

## Find your Store ID

Your Store ID is your store's public `npub1...` key. It is not a secret: it is in the chat code on your site. You find it:

* in the admin, under the store name at the top of the sidebar;
* in the key file the admin downloads (**Download key file**) when it makes a new secret key;
* in the Embed tab's code, as `data-store="npub1..."`, and so in the chat code on your own site;
* from the CLI: `npx -y @elisym/cli@latest askr status` prints it as `storeId`;
* in the summary an AI agent gives you after it set up your store ([Set up with an AI agent](/askr/agent-setup)).

To move to a paid plan, choose **Upgrade** in the admin's Billing page, or start from a plan's **Choose** button on the [Askr page](https://askr.elisym.network/#pricing) (or have your agent run `askr plan <plan>`). For Enterprise, or if paying in the admin is not available, [message us](https://askr.elisym.network/contact) with your Store ID. Plans and prices are on the [Askr page](https://askr.elisym.network/#pricing).

## Paid plans and billing

Paid plans are billed by Stripe, which sells them as merchant of record ("Sold through Link"): it charges the tax due where you are, sends the receipts and handles payment questions. You pay on its checkout page; Askr never sees your card.

* **Change or cancel**: in the admin's Billing page. Moving to a larger plan on the same or a longer billing period (or from monthly to yearly) applies at once and is charged at once, prorated; a smaller plan or a shorter billing period (a larger plan too, when it is billed monthly while you pay yearly) starts at the end of the current period; a cancel takes effect at the end of the period. **Manage billing** opens the Stripe billing portal for the payment method, invoices and billing details. You can also manage the subscription at [link.com](https://link.com).
* **A failed payment**: Stripe retries it for about a week, and your store stays live on its plan meanwhile; Billing says the payment is being retried. If every retry fails, the subscription is canceled.
* **When a paid plan ends** (canceled, or not paid): it runs to the end of the period you paid for. Then the store moves to Free if Free has room, otherwise it waits as pending for a new plan. Your settings, products and policies are kept either way.

## Replacing a lost or leaked secret key

Lost your secret key, or think someone else has it? Choose **Lost your secret key?** on the sign-in page (or **Replace my secret key** under Advanced):

1. Enter your Store ID: the `npub1...` in the chat code on your site. The admin first checks that nothing stands in the way.
2. The admin makes a new secret key. Save it. If you come back later, tick "I already made and saved a new secret key" and paste it, instead of making another.
3. Prove the store is yours: add `<meta name="askr-verification" content="npub1...">` (your new Store ID) to your home page, or a file at `/.well-known/askr` with the new Store ID on a line of its own, on a site the store lists. Keep it there: a connector to your shop checks it too.
4. The server checks the site and moves the store to the new key. The admin then shows the settings the old key signed last: check them (if someone else had the old key, they may have changed them), and sign them with the new key.

Products, policies, the connector, your plan and usage stay as they were. The old key stops working for good. The chat on your site is unavailable until you have signed your settings with the new key; then the chat code on your site works again, as a widget embedded with the old Store ID follows the store to the new one. Still, replace it with the new code from the Embed tab, which no longer depends on the old key. Chats that were open start afresh. Catalog keys you authorized for your own backend or an agent are not carried over: authorize them again under Advanced (for an elisym agent, run `askr-key` again with `--store <new Store ID> --rotate`).

A site counts once the store has listed it for 72 hours, while the store is active and its settings list it, and for 30 days after that: someone holding a stolen key cannot add a site of their own and take the store at once, nor lock you out by removing yours. The sites the store has had longest are checked first, so sites added later never crowd yours out. Sites on shared hosting where anyone can claim a name (such as `vercel.app`, `netlify.app` or `github.io` subdomains) never count. If someone moved your store away, start again from your original Store ID: the store is found wherever it moved.
