=== Parleon AI Layer ===
Contributors: parleon
Tags: ai, llms-txt, mcp, ai-seo, structured-data
Requires at least: 5.9
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Connects your site to Parleon so ChatGPT, Claude, Gemini, Perplexity and AI agents can read, cite and act on it. Requires an active Parleon plan.

== Description ==

**Make your site the answer AI gives.**

**Requires an active Parleon plan (from Beacon).** This plugin is the WordPress connector for Parleon, a paid service. Without a connected plan it adds nothing to your site.

People now ask ChatGPT, Claude, Gemini and Perplexity before they search. Those assistants, and the AI agents built on them, prefer sites they can read cleanly, search directly and cite with confidence. Most WordPress sites give them a theme full of menus, scripts and pop-ups instead.

Parleon AI Layer keeps Parleon in step with the content you already publish. Parleon builds a clean, machine-readable layer from it, and the plugin serves that layer from your own domain. Your visitors see exactly the same site as before.

In our own test, a standard WordPress site running WooCommerce and Yoast SEO went from 7 to 93 out of 100 on isitagentready.com (Level 5) with this layer in place. The remaining check is a DNS record at your domain provider, which no plugin can set.

= What your site gets =

* **llms.txt and llms-full.txt.** An index of your site for language models, following llmstxt.org, with a one-line summary of every page and a full-text version in one file.
* **A markdown version of every page.** Add `.md` to any page address, add `?format=md`, or ask with `Accept: text/markdown`. Clean text with headings, links, lists and tables, without scripts, styles or shortcodes.
* **An MCP server AI agents can search.** A read-only Model Context Protocol endpoint at `/mcp` with tools to search your site, read a page, list what is new and describe the site. WooCommerce stores also get product search and product details.
* **Agent discovery cards.** An MCP server card, an A2A agent card, an AI catalog, an API catalog (RFC 9727), agent skills, `agents.md` and `auth.md`, so agents find all of the above on their own.
* **Link headers and discovery tags** on every page, pointing agents at the right documents.
* **AI crawler rules and Content Signals.** Named rules for the AI crawlers in your robots.txt, and a Content-Signal line that states whether your content may be used for search, AI answers and AI training. Your own robots rules stay first and are never loosened. Optionally block crawlers that only collect training data.
* **Structured data (JSON-LD)** for your pages and articles, only when no SEO plugin already provides it.
* **WebMCP**, so AI agents working inside a browser can use the same tools on your pages.
* **Optional agent sign-in.** A small, standards-based OAuth 2.1 server on your site (PKCE, dynamic client registration) lets an agent sign in with a WordPress account for a higher rate limit. It never opens private content.
* **AI agent visit counts** in your WordPress dashboard: which AI agents read your site and how often.

= How it works =

1. Choose a Parleon plan for your site and connect your key on the **AI Layer** screen.
2. The plugin sends Parleon your published, public content (posts, pages, other public content types and WooCommerce products) and keeps it current as you publish, edit and delete.
3. Parleon builds the documents and answers agent questions from that content. Your site answers each agent request at its own address and fetches the answer from Parleon, with a short cache.

= Why site owners use it =

* **Be cited, not skipped.** When an assistant can read your pages cleanly it can quote your prices, hours, services and articles accurately, and link back to you.
* **Let agents act on your site.** Agents can search your content and your products through MCP instead of guessing from a crawled copy.
* **Stay in control.** You choose what is covered, whether your content may be used for AI training, and you can pause everything with one checkbox.
* **No theme changes.** Nothing visible changes for people. Every addition is a separate address, a header or a tag in the page head.
* **Private by design.** No cookies, no visitor tracking, no IP addresses stored. Only published, public content is ever sent to Parleon or shown to agents. Drafts, private posts and password-protected posts never are.

= Works with your stack =

* **SEO plugins:** Yoast SEO, Rank Math, All in One SEO, SEOPress, The SEO Framework and Slim SEO keep their structured data and sitemaps. No JSON-LD is added when one of them is active.
* **Existing llms.txt:** a real llms.txt file, or one another plugin serves, always wins. This plugin only fills the gap.
* **robots.txt:** a physical robots.txt file is never touched. The settings screen shows the lines to add yourself.
* **WooCommerce:** products, prices and stock in markdown and through the MCP tools, honouring catalog visibility.
* **Page caches:** answers for agents are marked uncacheable, and WP Super Cache is configured so markdown requests are never served cached HTML.

== Installation ==

1. Install the plugin from **Plugins, Add New** (search for "Parleon AI Layer"), or upload the zip, then activate it.
2. Open **AI Layer** in the admin menu.
3. Press **Get my key** and follow the steps on parleon.ai to choose a plan for this site. The key is sent back to your site and connected for you. Or paste a key you already have and press **Connect**.
4. The first content sync starts at once; its progress is shown on the AI Layer screen. Press **Check my score** to see your site on isitagentready.com.

Pretty permalinks (Settings, Permalinks) are recommended so `/llms.txt`, `/mcp` and the `.md` addresses work on every server.

== Frequently Asked Questions ==

= Do I need a paid plan? =

Yes. The plugin requires an active Parleon plan (from Beacon). Without a key and an active plan it does nothing: no addresses, headers, tags or scripts are added to your site, and no content is sent anywhere. Plans are listed on parleon.ai.

= What happens if my plan ends? =

The AI layer turns off at once and the plugin stops adding anything to your site. The AI Layer screen shows a **Choose a plan** button. When the plan is active again, press **Check again** and the layer goes live with your current content.

= Does it change how my site looks? =

No. Visitors get exactly the same pages. The plugin adds separate addresses for agents (such as `/llms.txt` and `/mcp`), a `Link` response header, a few tags in the page head and a small script that registers WebMCP tools. Nothing is rendered on the page.

= What does it send to Parleon? =

Your published, public content (title, address, summary, the text as markdown, dates and, for products, price, currency, SKU and stock), your site name, tagline and addresses, the plugin, WordPress and PHP versions, and daily totals of AI agent visits per agent name. Never visitor data, IP addresses, drafts, private or password-protected content, or user accounts. See "External services" below.

= Can AI agents change my site? =

No. Every MCP tool is read-only and only reads published, public content. Agents that sign in with OAuth get a higher rate limit, nothing more.

= Can I stop my content being used to train AI models? =

Yes. The Content-Signal line in robots.txt says `ai-train=no` by default, and one checkbox blocks the crawlers that only collect training data while still letting AI search and assistants read your site. Signals state your preference; each crawler decides whether to honour it.

= I already use Yoast SEO or Rank Math. Will I get duplicate structured data? =

No. When a supported SEO plugin is active, no JSON-LD is added and the sitemap is left to it.

= I already have an llms.txt. =

Yours wins. A real file is served by your web server before WordPress runs, and when another plugin serves llms.txt this plugin steps aside.

= Will it slow my site down? =

Ordinary page views read only local settings. Agent addresses are answered from a short cache; on a miss the plugin fetches the answer from Parleon. Content is sent to Parleon in the background through WP-Cron, never while a visitor waits.

= What if Parleon cannot be reached? =

Agent addresses keep answering from the last good copy for up to 14 days, then stop until Parleon is reachable again.

= What is MCP? =

The Model Context Protocol is the open standard AI assistants use to connect to tools and data. Your site's MCP endpoint lets an agent search and read your content directly. Its address is shown on the AI Layer screen.

= What score will I get on isitagentready.com? =

It depends on your site and host. The layer covers every check a WordPress plugin can serve. DNS records (DNS-AID) cannot be set by a plugin; your DNS provider handles those. Use **Check my score** to see your result.

= Does it work on multisite? =

Yes. Activate it per site or network-wide; each site has its own settings, key and plan.

= My site is in a subfolder. =

Everything works except the `/.well-known/` discovery files, which belong at the root of the domain.

== External services ==

This plugin is an interface to Parleon (https://parleon.ai), a paid service run by Parleon. It requires an active Parleon plan, and it connects to Parleon **only after you connect a key**. With no key it makes no outside requests. Terms of service: https://parleon.ai/terms. Privacy policy: https://parleon.ai/privacy.

* **Get my key** (`https://parleon.ai/wordpress/get-key`). Opened in your browser when you press "Get my key". The page receives your site address, the address of your site's connect handler and a single-use value that ties the reply to your session. You choose a plan and enter your email there. The key is posted back to your site's `wp-admin/admin-post.php`.
* **Activation** (`POST https://app.parleon.ai/api/lite/wp/v1/license/activate`). When you connect a key, and when you press "Check again". Sends: the license key, your site address, and the plugin, WordPress and PHP versions. Parleon then requests `/wp-json/parleon-ai-layer/v1/verify` on your site with a random value; your site answers with a code computed from that value and your key, which proves the key is installed on this site. Returns a signed configuration, or a notice that the site has no active plan.
* **Configuration refresh** (`GET https://app.parleon.ai/api/lite/wp/v1/license/config.json`). Once a day, when you open the AI Layer screen (at most every five minutes), and when you press "Refresh now". Sends: the license key (as a bearer token) and your site's host name. Returns a signed configuration (whether the plan is active, enabled features, Content-Signal defaults).
* **Content sync** (`POST https://app.parleon.ai/api/lite/wp/v1/layer/sync`). After you connect, weekly, when you press "Sync now", and a few seconds after you publish, edit, trash or delete content. Sends, for each published, public item of the content types you cover (posts, pages, other public post types and WooCommerce products): its ID, type, address, markdown address, title, summary, the content as markdown (with title, date, type and author display name, and for products the price, currency, SKU, stock status and visible attributes), publication and modification dates, and whether an SEO plugin marks it noindex; the IDs of items that are no longer public; and the site context: site name, tagline, host name and addresses of the site's agent documents, MCP and OAuth endpoints and sitemap, the site language, the plugin version, which features are switched on, the Content-Signal and training-crawler settings, the covered content types and, for WooCommerce, the store currency and shop address. Never drafts, private or password-protected content, user accounts, email addresses or visitor data. Returns structured data (JSON-LD) for each page.
* **Agent documents** (`GET https://app.parleon.ai/api/lite/wp/v1/layer/doc`). When an AI agent requests one of the agent addresses on your site (such as `/llms.txt`, `/agents.md`, a `.md` page or a `/.well-known/` card) and no cached copy is fresh, and for the robots.txt lines (cached 12 hours). Sends: the license key, your host name and the requested address; for robots.txt, your current robots.txt rules. No visitor data.
* **Agent questions** (`POST https://app.parleon.ai/api/lite/wp/v1/layer/mcp`). When an AI agent calls your site's `/mcp` or `/a2a` endpoint. Sends: the license key, your host name, the agent's JSON-RPC message and whether the agent signed in. Your site checks sign-in and rate limits itself; no IP address, cookie, token or other request detail is forwarded.
* **Usage report** (`POST https://app.parleon.ai/api/lite/wp/v1/license/report`). Once a day while the layer is live. Sends: your site's host name, the reporting period, the number of AI agent visits per agent name (for example "GPTBot (OpenAI)": 12), the number of published pages and the plugin version. No page addresses, no IP addresses, no visitor data.
* **Deactivation** (`POST https://app.parleon.ai/api/lite/wp/v1/license/deactivate`). When you press "Disconnect" or deactivate the plugin. Sends: the license key.
* **Parleon stores only** (connector mode): if Parleon provisioned your site as a Parleon store, the signed configuration names a hosted AI layer. The plugin then fetches a signed manifest and the store's AI pages from `https://app.parleon.ai` and the store's AI origin, and forwards agent requests to its MCP and chat endpoints. Request headers carry no cookies or WordPress credentials. This mode is never enabled for an ordinary site.
* **isitagentready.com** (`https://isitagentready.com/`). A link that opens in your browser when you press "Check my score". It receives your site address. Run by Cloudflare; see https://www.cloudflare.com/website-terms/ and https://www.cloudflare.com/privacypolicy/.

== Privacy ==

The plugin sets no cookies and stores no visitor data. AI agent visits are counted by the agent's User-Agent as daily totals per agent name; no IP address, page address or other request detail is stored. Rate limiting of the MCP endpoint keeps a salted hash of the client IP address for one minute and then discards it; it is never sent to Parleon. Agents that sign in with OAuth are linked to the WordPress account that approved them; you can sign every agent out on the AI Layer screen. Only published, public content is sent to Parleon (see "External services").

== Screenshots ==

1. First run: connect your Parleon plan with one click, or paste a key.
2. Status and the checklist of everything AI agents can use on your site, with a self-check.
3. AI agent visits: which assistants read your site, and how often.
4. What an agent reads: a page as markdown, with title, date and clean content.
5. Optional agent sign-in: the consent screen a logged-in user sees.

== Changelog ==

= 1.1.0 =
* Requires an active Parleon plan (from Beacon). Without a key and an active plan the plugin adds nothing to your site.
* The AI layer is now built and hosted by Parleon from your synced public content, and served from your own domain. The plugin syncs published content in the background (full sync after connecting and weekly, plus each edit) and shows sync progress with a "Sync now" button.
* Removed "Turn on without a key" and the documents the plugin used to build on your server.
* New screens: "Connect your Parleon plan", and "This site needs an active Parleon plan" with "Choose a plan" and "Check again".
* If a plan ends, everything turns off at once. If Parleon is briefly unreachable, the last good answers keep working for up to 14 days.
* The MCP endpoint keeps sign-in (OAuth) and rate limiting on your site and forwards only the agent's message.

= 1.0.0 =
* First release of Parleon AI Layer.

== Upgrade Notice ==

= 1.1.0 =
The AI layer now requires an active Parleon plan (from Beacon) and is hosted by Parleon. Sites without a plan stop serving the layer after this update. Open AI Layer to connect a plan.
