Why AI Chatbots Couldn't See Our Blog Despite Google Ranking It
How We Discovered the Problem: Invisible to Perplexity
Last month during a routine check, we asked Perplexity AI: "How do you test AI compatibility in Turkey?" We'd written at least three detailed blog posts covering exactly this topic. The result? Nothing. Perplexity didn't cite a single sentence from our content.
We tried the same query in ChatGPT. Same silence. Claude? Still nothing. Yet our blog posts were indexed perfectly fine in Google Search Console, and we were getting organic traffic. This contradiction sent us down a deep debugging rabbit hole.
The Diagnosis: Bots Weren't Executing JavaScript
Our first suspicion was User-Agent detection. We used curl to impersonate different bots and fetch our pages:
curl -A "Mozilla/5.0 (compatible; Googlebot/2.1)" https://aicompatible.com/blog/ai-crawling-guide
# Result: Full HTML content returned
curl -A "GPTBot/1.0" https://aicompatible.com/blog/ai-crawling-guide
# Result: Nearly empty page
When we examined the HTML returned by the second request, we saw this:
<div id="blog-content">
<!-- Loading content... -->
</div>
<script src="/js/posts.js"></script>
The problem was obvious: our entire blog content was being fetched from posts.js and injected into the DOM via JavaScript. Googlebot uses a modern browser engine, so it executed the JS and saw the content. But LLM bots like GPTBot, ClaudeBot, and PerplexityBot don't execute JavaScript—they just grab the initial HTML response and move on.
Why Could Googlebot See It?
Google has been using a Chromium-based rendering engine since 2015. When it visits a page, it:
- Downloads JavaScript files
- Executes the code
- Waits for DOM mutations
- Indexes the final rendered state
LLM bots skip these steps for speed and resource efficiency. For them, "page = initial HTML response." Period.
The Solution: Static HTML + Structured Data
We implemented a two-part fix:
1. Generated Static Pages for Each Blog Post
Previously, we had a single blog.html page that loaded content based on URL parameters. Now we generate a separate HTML file for each post:
<!-- /blog/ai-crawling-guide.html -->
<article>
<h1>Site Crawling Guide for AI Bots</h1>
<div class="content">
<p>How do AI bots crawl your site?
In this guide, we cover how GPTBot, ClaudeBot,
and other LLM crawlers work...</p>
<h2>1. Robots.txt Configuration</h2>
<p>The first step is configuring your robots.txt...</p>
<!-- Full content directly in HTML -->
</div>
</article>
The content is now present in the initial HTML response, no JavaScript required. Any bot that fetches the page can see the full text immediately.
2. Added BlogPosting Schema
We added structured data to each blog page. This helps Google show rich results and helps LLMs better understand the content:
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"headline": "Site Crawling Guide for AI Bots",
"description": "Learn how GPTBot, ClaudeBot, and other LLM crawlers index your site and how to optimize for them.",
"author": {
"@type": "Organization",
"name": "AICompatible.com"
},
"publisher": {
"@type": "Organization",
"name": "AICompatible.com",
"logo": {
"@type": "ImageObject",
"url": "https://aicompatible.com/logo.png"
}
},
"datePublished": "2024-01-15",
"dateModified": "2024-01-20",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://aicompatible.com/blog/ai-crawling-guide"
},
"articleBody": "How do AI bots crawl your site?..."
}
</script>
Including the full text in the articleBody field is particularly important. LLMs prioritize processing this structured data.
Results and What We Learned
Two weeks after making the change, we asked Perplexity the same question again. This time it cited our blog directly. Our content also started appearing in ChatGPT search results.
This isn't just our problem: Modern websites built with React, Vue, or Angular are particularly susceptible to this trap. Your site might perform perfectly on Google while being completely invisible to LLMs.
How to Check Your Own Site
If you're comfortable with the terminal, here's a simple test:
curl -A "GPTBot/1.0" https://your-site.com/your-blog-post | grep "main-content-text"
If your content doesn't appear, you're JavaScript-dependent.
For a more comprehensive analysis, you can use AICompatible.com's crawler. Our tool tests your site from both Googlebot and GPTBot/ClaudeBot perspectives, reporting which content is visible to which bots. It also automatically detects missing structured data, robots.txt issues, and other technical details that affect LLM compatibility.
Bottom line: Modern SEO isn't just about Google anymore. In the age of AI, making your content readable by LLMs opens up an entirely new discoverability channel. And it starts with solving the JavaScript rendering problem.