AI search optimization for your website

What a website controls in ChatGPT, Claude, Perplexity and Google AI answers - bot access, text in the HTML and structured data - and what it does not.

AI answers in ChatGPT search, Claude, Perplexity and Google’s AI Overviews and AI Mode fetch web pages and link to the ones they use. A website cannot make an answer cite it. It can make sure three things are true: the bots that fetch pages for answers are allowed in, the text is there when they read the page, and the facts about the company and its pages are stated plainly in structured data. This guide covers each, with what the AI companies’ own documentation says.

How AI answers reach your pages

Each assistant fetches pages with its own user agent, and each documents it:

  • ChatGPT: OpenAI uses OAI-SearchBot to surface sites in ChatGPT search. A site that blocks it is not shown in ChatGPT search answers, though it can still appear as a navigational link. ChatGPT-User visits a page when a person asks about it.
  • Claude: Anthropic uses Claude-SearchBot to index pages for search and Claude-User to fetch pages when a person asks Claude a question.
  • Perplexity: PerplexityBot surfaces and links sites in Perplexity’s results; Perplexity-User fetches a page to answer a person’s question.
  • Google: AI Overviews and AI Mode draw on Google Search. Google says there are no extra requirements: a page must be indexed and eligible to show with a snippet.

So the groundwork is the same as for search: a page that search engines can crawl and index is most of the way there. The rest is specific to how these bots read pages.

Let the AI search bots in

Check robots.txt first. A template that blocks every bot with AI in its description also blocks the bots that fetch pages for answers. AI search bots blocked checks whether OAI-SearchBot, ChatGPT-User, Claude-SearchBot, Claude-User, PerplexityBot and Perplexity-User may fetch /.

A group that lets them in. A bot with its own group ignores the * group, so repeat any path you keep private, such as Disallow: /admin/, in this group too:

User-agent: OAI-SearchBot
User-agent: ChatGPT-User
User-agent: Claude-SearchBot
User-agent: Claude-User
User-agent: PerplexityBot
User-agent: Perplexity-User
Allow: /

These are separate from the training bots (GPTBot, ClaudeBot and others). Blocking training does not block search. AI crawlers and robots.txt lists every bot and how robots.txt groups combine.

Put the text in the HTML

Google renders JavaScript, but its own documentation notes that not all bots can run JavaScript, and it recommends server-side rendering or pre-rendering. A page whose copy appears only after a script runs can look empty to a bot that reads the HTML as served. Text needs JavaScript flags pages with under 50 words before scripts run.

To see what such a bot sees, fetch the page without a browser and look for a sentence from the page:

curl -s https://example.com/product/ | grep -c "a sentence from your page"

A count of 0 means the sentence is not in the served HTML. The fix is in the framework: render the page on the server or at build time, and load only interactive parts with scripts.

State who you are with structured data

Google says structured data is not required for its AI features and that there is no special markup for them. It still matters for search results, and it is the plainest way to state facts a page otherwise leaves for a reader to infer: the company’s name, logo and profiles; what a product costs; who wrote an article and when. Google recommends JSON-LD.

The home page should carry Organization or WebSite data (Home page structured data missing). Google’s Organization guide has no required properties and recommends url, logo and sameAs, which Organization data incomplete looks for:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "Organization",
  "name": "Example",
  "url": "https://example.com/",
  "logo": "https://example.com/logo.png",
  "sameAs": [
    "https://www.linkedin.com/company/example",
    "https://github.com/example"
  ]
}
</script>

Data that does not parse is skipped. A trailing comma or a missing quote is enough; Invalid structured data catches JSON-LD that does not parse or lacks a property its type requires. Google also asks that structured data match the visible text of the page.

Mark up products, articles, FAQs and breadcrumbs

Pages of a known kind should say so:

  • Products. A page with og:type product should carry Product data (Product data missing). Google’s merchant listing guide requires name, image and offers, and an offer needs price and priceCurrency.
  • Articles. A page with og:type article should carry Article or BlogPosting data (Article data missing). Google recommends headline, image, datePublished, dateModified and author.
  • FAQs. A page of questions and answers can carry FAQPage data (FAQ data missing). Google stopped showing the FAQ rich result in Search in May 2026, so the markup no longer changes how a Google result looks. It still states each question and answer as data for other systems that read schema.org.
  • Breadcrumbs. A page two or more clicks from the home page should carry a BreadcrumbList that names its path (Breadcrumb structured data missing). Google requires at least two items, each with a position.

A BreadcrumbList for a case study:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [
    { "@type": "ListItem", "position": 1, "name": "Customers", "item": "https://example.com/customers/" },
    { "@type": "ListItem", "position": 2, "name": "Acme Logistics" }
  ]
}
</script>

The last item may leave out item; Google then uses the page’s own address.

What to skip

Google’s guide to generative AI features says you can ignore tactics such as “chunking” content or creating AI text files like llms.txt, and that Search does not use special AI markup. The crawler pages of OpenAI, Anthropic and Perplexity do not say their bots read such files either. The llms.txt guide covers what the file is and when it is worth publishing.

Talewright also lists, for information only, a home page without a Markdown version (<link rel="alternate" type="text/markdown"> or an answer to Accept: text/markdown), a robots.txt without Content-Signal lines, and an agent discovery file such as /.well-known/api-catalog that answers with something other than JSON or a web page; a web page in its place counts as no file. It shows whether /llms-full.txt exists. None of these count toward its score.

Keeping it right after launch

These settings break quietly. A redesign moves copy into a script, a CMS template drops the JSON-LD, a security plugin adds a robots.txt group.

Talewright’s site health, in beta, crawls the site every week and sums this up as an AI discoverability score out of 100: AI search bots allowed in robots.txt (40), text in the served HTML (30), structured data (20), and the basics (10): a readable robots.txt, a sitemap, an indexable home page, and a canonical, a language and a social preview on the home page. The score says whether AI bots can reach and read the site, not whether answers cite it. Each problem is a finding with the pages involved and the fix, and a finding closes only when a complete check no longer sees it.

The rules in this guide

Sources

Updated 2026-11-30.

Get early access.

Talewright is invite-only. Tell us about your team and the marketing you want to win.