=== AI Visibility for Easy Digital Downloads ===
Contributors: ranksnippet
Tags: easy-digital-downloads, ai catalog, llms.txt, ai, digital-downloads
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Make your Easy Digital Downloads store visible to AI assistants. llms.txt, agents.md, catalog.json — free, no download limit, no locked features.

== Description ==

When someone asks an AI assistant for a digital product — for example "best WordPress ebook" or "affordable Lightroom presets" — the assistant needs clear, machine-readable facts about your store: download names, prices, images and links.

AI Visibility for Easy Digital Downloads publishes those facts from your own site:

* **llms.txt, llms-full.txt and llms-shop.txt** — plain-text catalogs for AI assistants, updated when your products change.
* **agents.md** — instructions for AI agents on how to use your store, without inventing prices.
* **catalog.json** — a machine-readable download catalog, with price, currency, availability, image, category, SKU and a cart link per download.
* **Agent card, UCP and MCP files** — `/.well-known/agent-card.json`, `/.well-known/ucp` and `/mcp.json`, so agents can discover your catalog.
* **Readiness score 0–100** — see what is missing and what to fix, in plain words, with a 1-click Regenerate button.
* **Per-download GEO score** — a score for each download, shown as a column on the Downloads list, with a health check for missing description, image, price or file.
* **AI crawler log** — see when AI bots such as GPTBot, ClaudeBot and PerplexityBot visited your store and which pages they fetched.
* **AI referral tracker** — see visits from AI assistants, which analytics tools often show as Direct.
* **Bot control** — block AI training bots and allow AI search and shopping bots, with separate toggles.
* **Store policies** — shipping, return and payment info for the whole store, in llms.txt, agents.md, catalog.json and Organization schema.
* **AI order tracking** — orders that came from an AI assistant link are counted store-wide, with revenue, in the dashboard.
* **Store AI visibility check** — copy a prompt, ask an AI assistant about your store, and save its answer to watch it over time.
* **AI report** — 30- and 90-day crawler, referral and order totals, with a CSV download.
* **robots.txt and sitemap** — the AI files are listed in robots.txt and in the sitemap, so AI crawlers can find them.
* **Gap-only Product schema** — if Yoast SEO, Rank Math, All in One SEO or SEOPress already outputs Product schema, this plugin will not output it again.

The free plugin lists all your downloads — no download limit, and no feature is locked. There is no account to create, no API key to paste, and no data sent to any outside service. All files are generated and hosted on your own site.

This plugin helps AI assistants understand your store. It cannot promise a recommendation, a citation or a sale, because no plugin can control what an AI assistant says.

== Installation ==

1. In WordPress, go to Plugins > Add New > Upload Plugin.
2. Choose the plugin zip file and click Install Now, then Activate.
3. Go to Easy Digital Downloads > AI Catalog and run the setup wizard (about 2 minutes).
4. Check your readiness score, then open /llms.txt and /catalog.json on your site to see the files.

== Frequently Asked Questions ==

= Where does the catalog content come from? =

From your own site: your home page, your about page, and your Easy Digital Downloads downloads. You can edit any generated file by hand in Easy Digital Downloads > AI Catalog > Catalog Files, or delete it.


= Do I need an API key or an account? =

No. Everything in this plugin is made on your own site from your Easy Digital Downloads products. There is no account, no API key and no outside service.

= Will this make an AI assistant recommend my products? =

No plugin can promise that. This plugin helps AI assistants find and understand clear facts about your downloads — names, prices and links — which is what they use when they answer shopping questions.

= What if I already use Yoast SEO or Rank Math? =

That is fine. If Yoast SEO, Rank Math, All in One SEO or SEOPress is already outputting Product schema, this plugin will not output it again. Your catalog files, scores and logs still work.

= Where are the catalog files stored? =

They are served from your own site at /llms.txt, /llms-full.txt, /llms-shop.txt, /agents.md, /catalog.json, /.well-known/agent-card.json, /.well-known/ucp and /mcp.json. No file is sent to a CDN or another server.

= How do I report a bug or request a feature? =

Go to Easy Digital Downloads > AI Catalog > Report Bug / Request Feature, or use the Report Bug / Request Feature links on the Plugins page. Copy the bug report template and system info into your forum topic.

= What about variable pricing? =

The catalog lists the download with its lowest price option. The cart link points to the download page, because a download with variable pricing cannot be added to the cart without choosing a price option first.

= Does the plugin send my product data anywhere? =

No. The plugin makes no outside request. AI assistants can read the public catalog files on your site, in the same way a search engine reads your pages.

= What data does this plugin store? =

Only on your own site. It stores the settings you enter, the AI answer you paste into the manual check (only if you paste one), and three logs in your own database: an AI crawler log (bot name, page URL, time, and a one-way hash of the visitor IP — the IP itself is never stored), AI referral counts by day and source, and AI orders (order number, source and total, for orders that came from an AI assistant link). AI order tracking uses one first-party cookie, aved_ai_source, kept for 30 days, which only records that the shopper came from an AI assistant. Nothing is sent to any outside service.

== Screenshots ==

1. The dashboard — readiness score, AI orders and the 30/90-day AI report.
2. The settings page — instructions at the top, then store policies and announcement.
3. Catalog Files — llms.txt, agents.md, catalog.json and the other generated files.
4. Crawler Log & Referrals — AI bot visits, AI referrals and AI orders.

== Changelog ==

= 1.0.0 =
* First release. llms.txt, llms-full.txt and llms-shop.txt, agents.md, catalog.json, agent-card, UCP and MCP files for AI shopping assistants — built for Easy Digital Downloads stores.
* The free plugin is fully functional: it lists all downloads with no limit, and manual file editing is open to everyone.
* Readiness score, per-download GEO score, AI crawler log, AI referral tracker, bot control, store policies, AI order tracking, store AI visibility check, 30/90-day AI report with CSV download, robots.txt and sitemap links, gap-only Product schema and Organization schema.
* The catalog updates in the background (500 downloads per step, WP-Cron), so no admin page rebuilds it inline. The Dashboard shows a Catalog update card with a live progress bar, and the catalog files update as the build runs.
* Manual JSON edits are sanitized before they are stored, and JSON-LD output escapes closing script tags.
* Clear Cache and Regenerate catalog start a background rebuild. The live catalog keeps serving until the new one is ready.
