Using Mented

The agent layer: install on Cloudflare, WordPress or other platforms

Let AI agents read your pages as plain text, search your site and find your llms.txt, on your own domain. Confirm your website, then install the Cloudflare Worker, the WordPress plugin or discovery tags.

In short

AI agents read websites differently from people: they ask for a page as plain text (Markdown), search a site for the passage they need, and look for an llms.txt summary. The agent layer gives your site all three. Mented reads your public pages, keeps a clean copy, and answers agents for you on your own domain.

Turn it on

The agent layer is a card on the AI readiness page.

  1. Click Turn on the agent layer. Nothing is read yet.
  2. Confirm that the website is yours. Pick one of the four ways below; one is enough.
  3. Click Check now. When it works you see "Your website is confirmed. We are reading it now."
  4. Save your site key. It is shown once, under Your site key. Click Copy key, keep it somewhere safe, then click I have saved it.
  5. Put it on your website with the Cloudflare Worker, the WordPress plugin or discovery tags (steps below).
  6. Click Check my install to confirm everything works.

Confirm your website

MethodWhat to do
Plugin or WorkerInstall the WordPress plugin or the Cloudflare Worker (below). Each one confirms your site by itself. Then click Check now.
DNS recordAdd a TXT record named _mented.yourdomain.com with the value shown in the app (it starts with mented-verify=). DNS changes can take a few minutes to show.
Tag on your home pagePaste the <meta name="mented-verify" ...> tag from the app into the head of your home page.
FileUpload a file to /.well-known/mented-verify.txt on your site containing the line shown in the app.

If Check now says it cannot find the verification yet, wait a few minutes for DNS, or make sure the tag or file is on the live site, not a preview.

Install on WordPress

  1. Click Download plugin (.zip).
  2. In WordPress, open Plugins, Add New, Upload Plugin. Choose the file, then Install Now and Activate.
  3. Open Settings, Mented (the page is called "Mented for AI assistants"), paste your Site key and click Save key.
  4. Back in Mented, click Check my install.

Install on Cloudflare

Use this if your website's domain runs through Cloudflare, whatever your site is built with.

  1. In Cloudflare, open Workers and Pages and create a Worker. Replace its code with the code from Copy the Worker code (or Download it), and deploy it.
  2. Under Domains and Routes, add the route yourdomain.com/*, and www.yourdomain.com/* if you use www.
  3. Under Variables and Secrets, add a secret named MENTED_SITE_KEY with your site key.
  4. Back in Mented, click Check my install.

Until the key is set, the Worker passes every visit straight to your site. If Mented ever cannot answer, visitors and agents get your normal site.

Install on Wix, Squarespace, Shopify or another platform

These platforms do not let your own pages answer agents directly, so you add discovery tags that point agents to search and llms.txt hosted by Mented. It works, but WordPress or Cloudflare is better if you have the choice.

  1. Copy the tags shown in the app.
  2. Paste them into your site's head code. On Wix: Settings, Custom code, add to Head on all pages. On Squarespace: Settings, Advanced, Code injection, Header. On Shopify: Online Store, Themes, Edit code, theme.liquid, just before the closing head tag.
  3. Click Check my install.

Check that it works

Check my install tests four things: Pages as plain text (Markdown), Search for agents, llms.txt and Agents can find it. The summary reads Installed on your domain (Worker or plugin), Tags found, hosted by Mented (discovery tags) or Not installed yet.

If it says the site key was refused, paste the key again. Lost your key? An owner can click Replace the key; the old key stops working at once, so update your plugin or Worker straight after.

What Mented reads, and how often

  • Only your public pages. Mented's crawler, MentedBot, follows your robots.txt, reads one page per second and never reads anything behind a login.
  • If your robots.txt says ai-input=no or blocks MentedBot, nothing is read or stored.
  • Your site is read again every week, fetching only pages that changed. Read my site again works once an hour.
  • Up to 200 pages are kept on Starter, 1,000 on Growth.

Switch it off or remove it

  • The On/Off switch stops Mented answering agents for your domain. Your stored pages are kept. It works even after your plan ends.
  • Remove (owners only) deletes every stored page and the site key. Uninstall the plugin or Worker on your site too.
  • If you change your brand's website address, remove the agent layer and turn it on again for the new address.

What to do next

Need a hand?

Ask us anything.

Email hello@trymented.com with your website and what you see on screen, and we will help you sort it out.