Skip to content

Guides · AI search

Do AI crawlers render JavaScript? What GPTBot, ClaudeBot and PerplexityBot read

No. The crawlers behind ChatGPT, Claude and Perplexity read the HTML your server sends and don't run your JavaScript. Anything a script adds in the browser, a translation included, isn't there for them. This guide shows which AI crawlers visit, what they read, how to check your own site in two minutes, and how to put every language where they can read it.

What are AI crawlers?

AI crawlers are the bots AI companies send to fetch web pages, to train their models or to answer a question with fresh sources. Each one announces itself with a user agent you can see in your logs and address in robots.txt.

CrawlerCompanyWhat it fetches for
GPTBotOpenAITraining data for its models
OAI-SearchBotOpenAIChatGPT search results
ChatGPT-UserOpenAIA page a ChatGPT user asked it to open
ClaudeBotAnthropicTraining data for Claude
PerplexityBotPerplexityPerplexity's search index
Perplexity-UserPerplexityA page fetched to answer a user's question

Search engine crawlers count too: AI answers also draw on search indexes, so a page missing from search is usually missing from the answer.

Do AI crawlers render JavaScript?

No. In an analysis of AI crawler traffic published in December 2024, Vercel and MERJ found that the crawlers of OpenAI, Anthropic, Meta, ByteDance and Perplexity fetch JavaScript files but don't execute them. Their advice to sites that want to be read: render the main content on the server.

So an AI crawler sees your page the way view source shows it, not the way a browser draws it. Whatever arrives after the page loads (text fetched by a script, the content of a single-page app, a translation swapped in by a widget) doesn't exist for it.

If it isn't in the HTML your server sends, AI search never read it.

What that means for a translated website

A translation script in the browser works like this: the server sends the page in the original language, then a script replaces the text for the visitor. People see German. GPTBot, OAI-SearchBot, ClaudeBot and PerplexityBot get the original, at the same address, with no German page to index.

How the site is translatedWhat a visitor seesWhat an AI crawler reads
A script in the browserThe translationThe original language only
A single-page app rendered in the browserThe page, in their languageA nearly empty page, in every language
Rendered on the server, one address per languageThe translationThe translation
Served through a translation proxyThe translationThe translation

For a site translated by a script, that means: in English, AI answers can quote you; in German, French and Finnish, they quote whoever has a page they can read in those languages.

Check your own site in two minutes

  1. Open a translated page and copy one sentence from it.
  2. Fetch the page's raw HTML the way an AI crawler gets it: the commands below send GPTBot's name as the user agent.
  3. Search the raw HTML for your sentence. Found: the crawlers can read that language. Not found: the translation is made in the browser, and AI search can't see it.
  4. Check the title and the meta description the same way.
Fetch a page as GPTBot
# Count how often your sentence appears in what the crawler receives (0 = not there)
curl -s -A "GPTBot" https://www.example.com/de/ | grep -c "Ein Satz von Ihrer Seite"

# Show the title the crawler receives
curl -s -A "GPTBot" https://www.example.com/de/ | grep -i "<title>"

robots.txt for AI crawlers

Each AI company publishes its crawlers' names, and robots.txt lets you allow or block each one. Training and search are separate bots, so you choose per purpose. To be read everywhere, allow them all. To stay out of training and still be found in AI search:

robots.txt: in AI search, out of training
User-agent: GPTBot
Disallow: /

User-agent: ClaudeBot
Disallow: /

User-agent: OAI-SearchBot
Allow: /

User-agent: PerplexityBot
Allow: /

robots.txt isn't the only gate: a bot-protection setting at your host or CDN can turn them away whatever robots.txt says. Your server logs show which ones actually get through, and which language paths they fetch.

How to serve every language to AI crawlers

Get each translation into the HTML your server sends, at its own address. Three ways:

  • Render on the server. If you build the site, render every language on the server (server rendering or static pages), one address per language. An app that renders in the browser needs this first.
  • The WordPress plugin. The Lionrapid plugin renders every language on your own server under its own path, with hreflang and translated meta.
  • The edge proxy. For any site whose server sends its content as HTML, the proxy translates each page on the way out and serves it under its language path, with hreflang, a canonical per language, a translated title, meta and structured data, and a sitemap and an llms.txt per language. One DNS record at your domain: nothing to install, nothing to rebuild.

All three feed the same Lionrapid editor, where you review the translation before a language goes live. Then every crawler reads the page your buyer reads, in their language. The bigger picture: generative engine optimization in every language.

Your buyers read German. Make sure the crawler does too.

FAQ

AI crawlers and JavaScript, answered

Put every language where AI crawlers read it

One DNS record for the edge proxy, or the WordPress plugin on your own server. Website routes come with every paid plan, from EUR 9.90 a month.