DEV Community

Cover image for How to Get Your Site Ready for AI Search: robots.txt, llms.txt, Schema and AI Bots — A Practical Checklist
AURA GEO
AURA GEO

Posted on Edited on

How to Get Your Site Ready for AI Search: robots.txt, llms.txt, Schema and AI Bots — A Practical Checklist

AURA GEO — hero

More and more people skip the ten blue links and search directly in ChatGPT, Gemini, Perplexity or Claude. An assistant with web search finds pages on its own, reads them and builds an answer with links to its sources. If your site is blocked, slow or hard to parse for these systems, it won't make it into the answer — even if it ranks well on Google.

Preparing a site for this kind of search is called GEO (Generative Engine Optimization). The good news: the technical foundation of GEO overlaps almost entirely with good SEO. The bad news: there are a few places where sites break all the time, and a standard SEO audit doesn't catch them.

Below is a checklist you can get through in an evening. Every item can be checked with a terminal command or a couple of lines of code.

1. Allow AI bots in robots.txt

The first thing any crawler does is read robots.txt. Over the past few years, plenty of sites copied "protective" rules and accidentally locked out AI search bots.

It's important to tell two kinds of bots apart:

  • Training bots (e.g. GPTBot, ClaudeBot, Google-Extended) collect data to train models.
  • Search and user-triggered bots (e.g. OAI-SearchBot, ChatGPT-User, PerplexityBot, Claude-User) show up when an assistant is looking for an answer for a specific user. These are the ones that bring citations and clicks.

You can block training and still allow search. Example:

# AI search and user-triggered bots — allow
User-agent: OAI-SearchBot
Allow: /

User-agent: ChatGPT-User
Allow: /

User-agent: PerplexityBot
Allow: /

User-agent: Claude-User
Allow: /

# Classic search engines
User-agent: Googlebot
Allow: /

User-agent: Bingbot
Allow: /

User-agent: *
Allow: /
Disallow: /admin/

Sitemap: https://example.com/sitemap.xml
Enter fullscreen mode Exit fullscreen mode

Check: make sure the file returns a 200 and doesn't contain a blanket Disallow: / for the agents you care about.

curl -s -o /dev/null -w "%{http_code}\n" https://example.com/robots.txt
curl -s https://example.com/robots.txt | grep -iE "user-agent|disallow"
Enter fullscreen mode Exit fullscreen mode

Don't forget your CDN and WAF

A common trap: robots.txt allows everything, but Cloudflare or another WAF serves bots a 403 or a captcha. Check the server response with different User-Agents:

for ua in "OAI-SearchBot" "ChatGPT-User" "PerplexityBot" "Googlebot"; do
  code=$(curl -s -o /dev/null -w "%{http_code}" -A "$ua" https://example.com/)
  echo "$ua -> $code"
done
Enter fullscreen mode Exit fullscreen mode

If anything isn't a 200, look at your bot-protection rules.

2. Serve text in HTML, not just via JavaScript

Many AI crawlers don't execute JavaScript, or only do so in a limited way. If your content only appears after an SPA hydrates, the bot sees an empty <div id="root">.

A simple check — download the page and see whether the main text is there:

curl -s https://example.com/pricing \
  | sed -e 's/<[^>]*>//g' | tr -s ' \n' | head -c 1500
Enter fullscreen mode Exit fullscreen mode

If you see prices, descriptions and the FAQ, you're good. If all you get is the menu and empty space, you need SSR, SSG or prerendering (Next.js, Nuxt, Astro, Remix, etc.).

3. Add llms.txt

llms.txt is a proposed format: a Markdown file at the site root that briefly explains what the site is and lists key pages with descriptions. It isn't a standard, and no major assistant officially promises to use it. But it's cheap, useful for agents and developers, and it forces you to put the essentials of your product into words.

Minimal example:

# Example Inc.

> Example is an online booking service for small yoga studios.
> Operates in Latvia and Lithuania, interface in Russian and English.

## Main pages
- [Pricing](https://example.com/pricing): three plans, free trial.
- [API docs](https://example.com/docs/api): REST API for client bookings.
- [About](https://example.com/about): team, contacts, company details.

## FAQ
- [FAQ](https://example.com/faq): refunds, payments, integrations.
Enter fullscreen mode Exit fullscreen mode

A good live example is AURA GEO's llms.txt: besides the list of pages, it honestly states what the service does not do (for instance, that it doesn't "index sites in AI directly"). Explicit limitations like this are useful — models have less to fill in on their own.

4. Schema.org markup (JSON-LD)

Structured data helps search engines — and, indirectly, AI — understand who you are and what you sell. The minimum set for a SaaS or service:

  • Organization — name, logo, sameAs with links to external profiles;
  • WebSite — site name;
  • SoftwareApplication or Product — for the product and pricing;
  • FAQPage — for a Q&A block;
  • Article — for blog posts and knowledge-base articles.
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "Example Inc.",
  "url": "https://example.com",
  "logo": "https://example.com/logo.png",
  "sameAs": [
    "https://github.com/example",
    "https://www.producthunt.com/products/example"
  ]
}
</script>
Enter fullscreen mode Exit fullscreen mode
<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "FAQPage",
  "mainEntity": [{
    "@type": "Question",
    "name": "Is there a free plan?",
    "acceptedAnswer": {
      "@type": "Answer",
      "text": "Yes, you can connect one site for free."
    }
  }]
}
</script>
Enter fullscreen mode Exit fullscreen mode

The golden rule: markup must match the visible text. If your JSON-LD contains an FAQ that isn't on the page, that's worse than having no markup at all.

Check it with Google's Rich Results Test or validator.schema.org.

5. Sitemap, canonical and noindex

AI assistants with search lean heavily on the Google and Bing indexes. A page that isn't indexed has almost no chance of making it into an answer. Check:

# sitemap is reachable
curl -s -o /dev/null -w "%{http_code}\n" https://example.com/sitemap.xml

# no accidental noindex, and canonical points to itself
curl -s https://example.com/pricing | grep -iE 'noindex|rel="canonical"'
curl -sI https://example.com/pricing | grep -i x-robots-tag
Enter fullscreen mode Exit fullscreen mode

Also go into Google Search Console and Bing Webmaster Tools and review the report on non-indexed pages. Bing matters especially: several AI assistants rely on its index.

6. IndexNow: report updates right away

IndexNow is a protocol for notifying Bing, Yandex and other participating search engines about new or changed URLs. Google doesn't use it, but for Bing it's the fastest route.

# the key must be available at https://example.com/<KEY>.txt
curl -X POST "https://api.indexnow.org/indexnow" \
  -H "Content-Type: application/json; charset=utf-8" \
  -d '{
    "host": "example.com",
    "key": "<KEY>",
    "urlList": ["https://example.com/pricing", "https://example.com/faq"]
  }'
Enter fullscreen mode Exit fullscreen mode

Keep in mind: a successful submission only means "notification received" — not "page indexed", and certainly not "AI is citing it". These are separate stages, and each is worth checking on its own.

7. Write pages that are easy to cite

Technical work opens the door, but content is what gets cited. What works:

  • Answer in the first paragraph. Question in the heading, a direct 2–3 sentence answer right below it.
  • Specifics. Prices, timelines, countries, limitations, versions. "Free for one site" beats "affordable pricing".
  • Verifiable facts. Last-updated date, author, source of the numbers.
  • Structure. H2/H3, lists, comparison tables.
  • One page per question. A "How much does X cost" page gets cited more than a paragraph buried in a giant landing page.
  • Don't pass off demo data as facts. If your landing page has nice example numbers in an interface mockup, label them as examples — otherwise a model may repeat them as real.

8. Measure: bot logs and AI referrals

Without measurement, GEO turns into guesswork. The minimum:

  1. Server logs. Look for AI bot visits:
grep -iE "GPTBot|OAI-SearchBot|ChatGPT-User|PerplexityBot|ClaudeBot|Claude-User" \
  /var/log/nginx/access.log | awk '{print $1, $7, $12}' | tail -50
Enter fullscreen mode Exit fullscreen mode
  1. Referrers in analytics. Visits come from domains like chatgpt.com, perplexity.ai, gemini.google.com, copilot.microsoft.com. Create a separate segment for them.

  2. Manual answer checks. Ask your customers' neutral questions in fresh chats with search enabled, save the answer and the list of sources, and repeat after making changes. A single check proves nothing — the trend is what matters.

You can stitch all of this together with scripts, or keep it in one dashboard. For example, AURA GEO runs a technical audit (robots.txt, accessible HTML, noindex, sitemap), counts recognized AI referrals, lets you hand tasks to your own AI agent via MCP, and submits updated pages through IndexNow. The basic plan for one site is free.

Final checklist

Item How to check
robots.txt allows AI search bots curl robots.txt, grep for User-agent
WAF doesn't block bots curl -A "ChatGPT-User" → 200
Text is in HTML without JS curl + strip tags
llms.txt at the root curl /llms.txt
JSON-LD: Organization, FAQPage Rich Results Test
Sitemap, canonical, no noindex grep + Search Console / Bing WMT
IndexNow configured 200/202 response from the API
Pages answer specific questions content review
Bot logs and AI referrers are tracked log grep, analytics segment

FAQ

What is GEO in plain terms?

GEO (Generative Engine Optimization) is preparing a site so that AI assistants with web search can find, read and cite its pages. SEO is about rankings in regular search results; GEO is about showing up in answers from ChatGPT, Gemini, Perplexity and others.

Should I block GPTBot to protect my content?

That's your call. Blocking training bots (GPTBot, ClaudeBot, Google-Extended) doesn't affect search bots like OAI-SearchBot and ChatGPT-User. If you want citations, don't block search and user-triggered bots.

Is llms.txt required?

No. It's an optional format, and major assistants don't officially promise to use it. But it's cheap, useful for AI agents and developers, and helps you describe your product clearly.

Does schema.org help you get into AI answers?

There are no direct guarantees, but markup helps search engines understand the entities on a page, and AI search relies heavily on their indexes. The key is that markup matches the visible text.

Does submitting to IndexNow mean the page will show up in ChatGPT?

No. IndexNow only notifies search engines. Indexing, a bot visit, a citation and a click are separate stages, and each needs to be checked separately.

How do I know AI is already sending traffic?

Look for chatgpt.com, perplexity.ai and gemini.google.com referrers in your analytics and AI bot visits in your logs. And regularly check how assistants answer your customers' questions.

Top comments (2)

Collapse
 
citedy profile image
Dmitry Sergeev •

We need to produce a short YouTube comment, casual, one or two sentences, maybe fragment. Must start with a specific reaction or question about THIS video. Not generic praise. Should be about the content: preparing site for AI search, etc. Use casual language, lowercase start, maybe ask about robots.txt specifics. No URLs. No hashtags. No punctuation errors. Ensure no em-dash. Use straight quotes. No double hyphen. Should be short. Let's craft: "anyone know if you can block specific LLM

Collapse
 
aurageo profile image
AURA GEO •

Yes. Each AI crawler has its own user agent, so you can allow some and block others in robots.txt, e.g. User-agent: GPTBot + Disallow: /, while keeping OAI-SearchBot allowed so you still show up in ChatGPT search.