Disclosure: I work on Get AI Vizible, which tracks how AI assistants mention brands. Nothing below needs it: the script uses only the Python standard library. This post was drafted by an AI agent for our team; the script was run against live sites and offline tests before publishing.
If your site is a client-side rendered app, there's a good chance ChatGPT has never seen your content. It's seen an empty <div id="root"></div>.
The short version
In its analysis of AI crawler traffic, Vercel found that none of the major AI crawlers it measured render JavaScript. That included OpenAI's GPTBot, OAI-SearchBot and ChatGPT-User, Anthropic's ClaudeBot and PerplexityBot. ChatGPT's and Claude's crawlers do download JavaScript files, but they don't execute them. The exception is Gemini, which uses Googlebot's infrastructure and renders pages.
So whatever text isn't in your initial HTML response is, for most AI assistants, not on your page at all. That includes prices loaded by an API call, FAQ answers in a client-side accordion, and product descriptions rendered by React.
Crawler behaviour changes, so re-check this against current sources from time to time. Testing your own pages is cheap, though.
A quick test with curl
The fastest check is to fetch your page the way a crawler does and search for a sentence you care about:
curl -s -A "GPTBot" https://example.com/pricing | grep -i "per month" No output means the sentence isn't in the raw HTML. That's a good start, but grep also matches text inside <script> tags and HTML comments, which a model reading the page as a document may not treat as content.
A slightly better test: ai_view.py
This script fetches a page with a GPTBot user agent, strips scripts, styles, <noscript> blocks and comments, and reports what's left. It also checks your robots.txt for the common AI user agents:
#!/usr/bin/env python3 """Show what a non-JavaScript AI crawler can read on a page, and whether robots.txt lets it in. Usage: python ai_view.py URL ["phrase that must be visible" ...] Standard library only. """ import html import re import sys import urllib.error import urllib.request import urllib.robotparser from urllib.parse import urljoin # Crawlers that fetch raw HTML and don't execute JavaScript. AGENTS = ["GPTBot", "OAI-SearchBot", "ChatGPT-User", "ClaudeBot", "PerplexityBot", "CCBot"] UA = "Mozilla/5.0 (compatible; GPTBot/1.2; +https://openai.com/gptbot)" def fetch(url): req = urllib.request.Request(url, headers={"User-Agent": UA}) with urllib.request.urlopen(req, timeout=20) as r: return r.status, r.read().decode(r.headers.get_content_charset() or "utf-8", "replace") def visible_text(page): page = re.sub(r"(?is)<(script|style|noscript|template|svg)\b.*?</\1>", " ", page) page = re.sub(r"(?s)<!--.*?-->", " ", page) text = html.unescape(re.sub(r"<[^>]+>", " ", page)) return re.sub(r"\s+", " ", text).strip() def robots_verdicts(url): rp = urllib.robotparser.RobotFileParser(urljoin(url, "/robots.txt")) try: rp.read() except (urllib.error.URLError, OSError): return {a: "robots.txt unreachable" for a in AGENTS} return {a: "allowed" if rp.can_fetch(a, url) else "BLOCKED" for a in AGENTS} def main(url, phrases): try: status, page = fetch(url) except urllib.error.HTTPError as exc: sys.exit(f"{url} -> HTTP {exc.code}: the crawler would get an error page") except (urllib.error.URLError, OSError) as exc: sys.exit(f"could not fetch {url}: {getattr(exc, 'reason', exc)}") text = visible_text(page) title = re.search(r"(?is)<title[^>]*>(.*?)</title>", page) print(f"{url} -> HTTP {status}, {len(page):,} bytes of HTML, {len(text.split()):,} words readable without JS") print(f"title: {html.unescape(title.group(1)).strip() if title else '(none)'}") print(f"first words: {text[:160]}") for p in phrases: print(f" {'found ' if p.lower() in text.lower() else 'MISSING'} \"{p}\"") print("robots.txt:") for agent, verdict in robots_verdicts(url).items(): print(f" {agent:<15}{verdict}") def cli(): if hasattr(sys.stdout, "reconfigure"): sys.stdout.reconfigure(errors="replace") # odd characters in page text if len(sys.argv) < 2: sys.exit(__doc__) main(sys.argv[1], sys.argv[2:]) if __name__ == "__main__": cli() Run it with the page and a few phrases that must be visible:
python ai_view.py https://yoursite.com/pricing "per month" "Free plan" Here's the output for a server-rendered page I tested:
https://getvizible.online -> HTTP 200, 272,226 bytes of HTML, 3,817 words readable without JS title: AI Visibility Tool for ChatGPT & Gemini | Get AI Vizible first words: AI Visibility Tool for ChatGPT & Gemini | Get AI Vizible Get AI Vizible Features How it works Pricing ... found "AI visibility" MISSING "Plans start at" robots.txt: GPTBot allowed OAI-SearchBot allowed ChatGPT-User allowed ClaudeBot allowed PerplexityBot allowed CCBot allowed That MISSING line is the useful part. The phrase exists on another page, not the homepage. That's exactly the kind of thing you want to know before assuming an assistant can quote it.
A client-side rendered page looks very different. The test suite includes a typical single-page-app shell, and the script reduces it to just the <title>: zero words of actual content.
How to read the result
- Word count close to zero (or just your nav and footer): your content is rendered in the browser. AI crawlers see an empty page.
- Key phrases
MISSING: check whether they're loaded after page load, hidden behind a click, or live on another URL. -
BLOCKEDin robots.txt: that crawler won't fetch the page at all, however it's rendered. Make sure that's deliberate. Blocking GPTBot (training) and blocking OAI-SearchBot (ChatGPT search results) are different decisions.
One nuance from the Vercel study: content inside the initial HTML, such as a JSON blob or streamed server-component data, may still be picked up, because models can read non-HTML text. Don't rely on it. Text in the HTML body is the only form every crawler handles.
Fixes, from least to most work
- Move the important sentences into the HTML. Pricing, what the product does, and the answers to your FAQs usually matter most. Even a short server-rendered summary above the app helps.
- Pre-render the pages that matter. Most frameworks can statically generate marketing pages (Next.js, Nuxt, Astro, SvelteKit, Remix) while keeping the app itself client-side.
- Server-side render everything public. It's the most work, but crawlers, link previews and slow phones all benefit.
The script is free on GitHub as part of ai-log-tools, next to two log-analysis scripts: one checks whether "GPTBot" hits really come from OpenAI, the other counts visits sent by AI assistants.
What did your word count come out as? I'm curious how many sites are still serving empty shells.


