Why AI is not showing your business, and fixing what AI says

Can AI crawlers see schema added by JavaScript?

What Google, OpenAI, Perplexity and Microsoft actually document, how to check your own pages, and what to change first.

Tradesman in a navy shirt checking his phone at a workbench, with hoses and garden tools on the wall
A landscaping business owner checking his phone in his workshop.

Quick answer

Not reliably, as far as the companies have documented. Google says it typically renders pages, meaning it runs their code to build the finished page, in order to index them, but rendering is not guaranteed. The OpenAI and Perplexity crawler pages read for this guide do not say whether their crawlers run JavaScript. Google also says structured data isn't required for its generative AI search. The safer choice is to place schema and key business facts in the page's original HTML.

Structured data, also called schema, is a block of labelled facts placed in a web page's code so that machines can read details such as a business name, address, opening hours or product price. On some websites that block is written straight into the page. On others it is added by JavaScript, a programming language that runs in the browser after the page arrives.

Owners who learn this ask a fair question: if a script adds my schema, can the AI assistants see it? The honest answer is short. Google has published a partial answer. OpenAI and Perplexity do not address it on the crawler pages read for this guide, and neither does Microsoft's announcement of its AI report for Bing.

This guide sets out what each company does say, how to check your own pages in a few minutes, and what to change so the answer stops mattering. Every statement about how a platform works comes from that company's own documentation, read on December 2, 2026 and listed in the references.

Key takeaways

  • Google says it typically renders pages in order to index them, but that rendering is not guaranteed.[4]
  • OpenAI's help article and crawler overview, read December 2, 2026, do not say whether ChatGPT or OAI-SearchBot runs JavaScript or reads structured data.[1][2]
  • Perplexity's crawler documentation describes what PerplexityBot and Perplexity-User do and does not say whether either one runs JavaScript.[9]
  • Google says structured data isn't required for generative AI search and that there is no special schema.org markup to add.[3]
  • Google advises against blocking resource files, such as scripts, when their absence makes a page harder for its crawler to understand.[5]
  • Sites opted out of OAI-SearchBot will not be shown in ChatGPT search answers, and OpenAI says a robots.txt change can take about 24 hours to register for search results.[2]

What happens when schema is added to a page by JavaScript?

When a browser or a crawler asks for a page, your server sends back an HTML file. HTML is the code that holds the page's words, headings and links. In this guide that first file is called the raw HTML. A crawler is a program that a company sends out to fetch web pages automatically.

Schema can live in two places. If it is written into the raw HTML, anything that downloads the page receives it in the same file. If a script adds it, the schema only exists after something runs that script. Running a page's code to build the finished page is called rendering. A program that downloads the file without rendering it gets the raw HTML, and nothing the scripts would have added.

Google is direct about its own behaviour, and careful with its words. Its robots meta tag documentation says Google typically renders pages in order to index them, however rendering is not guaranteed.[4] An index is the stored collection of pages a search engine can show. So for Google, schema added by a script is something it may see, not something it promises to see.

Google also needs to find a page before any of this happens. Its page indexing help says a page must be linked from a known page, or from a sitemap, for Google to crawl it.[6] Rendering only matters for pages that were found and fetched in the first place.

The practical point for an owner is that there are two versions of every page that uses scripts: the raw HTML and the rendered page. A fact that sits in both is safe from the rendering question. A fact that sits only in the rendered page depends on whether each system that reads your site runs your scripts.

What do Google, OpenAI, Perplexity and Microsoft say about reading JavaScript?

Here is what each company's own pages say, and where they say nothing. Where a company has not published an answer, this guide says so rather than guessing.

Google

Google's robots meta tag documentation says Google typically renders pages in order to index them, however rendering is not guaranteed.[4]

Google's guide to generative AI features adds that its AI models use publicly accessible, crawlable content to learn patterns and give grounded responses, so it asks owners to make sure content is crawlable.[3] The same guide says browser agents may access a website to complete tasks by analysing screenshots, inspecting the DOM structure and interpreting the accessibility tree.[3]

The DOM is the browser's working model of the page after it has been built. The accessibility tree is the version of the page that screen readers use. Google's guide does not say whether those browser agents read structured data, so do not take that passage as an answer to the schema question.[3]

OpenAI

OpenAI's crawler overview describes what each of its agents does. OAI-SearchBot is the crawler for ChatGPT search, and sites opted out of it will not be shown in ChatGPT search answers, though they can still appear as navigational links.[2] GPTBot crawls content that may be used in training OpenAI's generative AI foundation models.[2] Neither the crawler overview nor the help article says whether these agents run JavaScript or read structured data.[1][2]

OpenAI also lists ChatGPT-User. It says that when users ask ChatGPT or a Custom GPT a question, it may visit a web page with that agent, and that it is not used for crawling the web automatically.[2] Because those visits are started by a user, OpenAI says robots.txt rules may not apply to them.[2] Again, the page does not say what ChatGPT-User reads on the page.

Perplexity

Perplexity's documentation says PerplexityBot is designed to surface and link websites in Perplexity search results, and is not used to crawl content for AI foundation models.[9] Perplexity-User supports user actions: when someone asks a question, it might visit a web page to help give an accurate answer and include a link to that page.[9] The documentation does not say whether either agent runs JavaScript.

Microsoft Bing and Copilot

Microsoft's announcement of the AI Performance report in Bing Webmaster Tools covers how content appears across Microsoft Copilot, AI-generated summaries in Bing and select partner integrations.[10] It does not discuss JavaScript or schema. Its content advice is about the visible page: it says clear headings, tables and FAQ sections help surface key information and make content easier for AI systems to reference accurately.[10]

What each company's pages, read December 2, 2026, say about JavaScript and schema
CompanyOn running JavaScriptOn schema or structured dataRelated point they do make
GoogleTypically renders pages to index them; rendering is not guaranteed[4]Not required for generative AI search; no special schema.org markup to add[3]Content should be crawlable[3]
OpenAINot stated on the help article or crawler overview[1][2]Not stated on those pages[1][2]Allow OAI-SearchBot and OpenAI's published IP addresses to be eligible[1]
PerplexityNot stated on its crawler page[9]Not stated on its crawler page[9]Allow PerplexityBot; firewalls may need explicit allow rules[9]
Microsoft BingNot stated in the AI Performance announcement[10]Not stated in that announcement[10]Clear headings, tables and FAQ sections help AI systems reference content[10]

"Not stated" means the page listed in the references does not address the point. It does not mean the company's systems behave one way or the other.

Does schema markup matter for AI search at all?

Before spending money on the JavaScript question, it helps to know how much weight schema carries. Google answers this for its own AI features. Its guide says structured data isn't required for generative AI search, and there's no special schema.org markup you need to add.[3]

The same guide says no new machine-readable files, AI text files, markup or Markdown are needed to appear in Google Search, including its generative AI features, because Google Search itself doesn't use them.[3] If you have been told to add a special AI file, the guide on whether an llms.txt file helps AI find your website covers what the companies say about those files.

Google points to the page itself instead. It says creating content that people find unique, compelling and useful will likely influence your website's presence in generative AI search in the long run more than any of the other suggestions in its guide.[3] Stores that reuse supplier text should read the guide on whether generic manufacturer product descriptions make a store invisible to AI.

Schema is still a way of stating facts clearly, and Google says that to manage how it uses your structured data, you change the structured data itself by adding or removing information.[4] So keep it accurate. Google also asks owners to check pages for factual errors and update them when information changes, so content is represented accurately when it is linked in AI responses.[3]

Where wrong details already appear in answers, the guide on how to fix ChatGPT misinformation about your brand walks through finding the source. The takeaway for this question is that your visible text carries the load for every assistant, and schema is a supporting copy of the same facts.

How do I check whether my schema is in the raw HTML?

This check takes a few minutes per page and needs only a desktop browser. Do it for the pages that hold the facts customers ask about.

  1. Open one of your key pages. Start with the page that holds your business details, such as the home page, a location page or a product page.
  2. View the original source. Use your browser's View page source option. This shows the HTML file exactly as the server sent it, before any scripts run.
  3. Search the source for the schema block. Press Ctrl+F or Cmd+F and search for application/ld+json, the label that marks a JSON-LD schema block. Note whether it is found and what it contains.
  4. Compare with the finished page. Open your browser's developer tools and search the Elements panel for the same text. That panel shows the page after scripts have run.
  5. Record the result for each page. Write down whether the schema is in the source, only in the finished page, or missing from both.
  6. Check the facts in the visible text. Confirm that your business name, address, phone, hours, services or prices also appear as plain words on the page, not only inside the schema.
  7. Confirm crawler access. Open yourdomain.com/robots.txt and check that OAI-SearchBot, PerplexityBot and Google are not blocked from your pages or the script files they need.

Each page will land in one of three results. If the schema block is in View page source, it is in the raw HTML, and any crawler that downloads the page receives it. If it appears only in the developer tools Elements panel, a script is adding it after the page loads, and it depends on rendering. If it is in neither, the page has no schema of that kind.

The second result is the one to act on, because of what the companies have and have not published. Google says it typically renders pages but does not guarantee it.[4] OpenAI and Perplexity do not say whether their crawlers render at all.[2][9] Schema in the raw HTML removes the question.

Step six matters as much as the schema check. If your opening hours or prices appear only inside a schema block that a script adds, a system that does not run the script receives none of them. If the same facts are written as plain words on the page, they arrive in the raw HTML with everything else, as long as those words are not also added by a script.

While you are checking, confirm the page is in Google's index at all. Google's page indexing help says that for a small site, searches using the site: operator are a way to check whether key pages are indexed.[6] It also notes that a page being indexed does not guarantee it will appear in search results.[6]

Can AI crawlers reach my pages and scripts in the first place?

Schema in any form only helps if the crawler reaches the page. Two things can stop it: the robots.txt file and the security layer in front of your website.

Robots.txt

A robots.txt file sits at the root of your site and tells search engine crawlers which URLs they can access.[5] Google says it can be used to block resource files such as unimportant image, script or style files, but warns against blocking resources whose absence makes the page harder for its crawler to understand.[5] If your schema is added by a script, that script is not unimportant.

Google also says robots.txt rules cannot enforce crawler behaviour, and that each crawler might interpret the rules differently.[5] Check the rules that name each crawler separately. OpenAI recommends allowing OAI-SearchBot in robots.txt and allowing requests from its published IP ranges to help a site appear in search results.[2] Perplexity recommends allowing PerplexityBot in the same way.[9]

If you use a website builder, you may not be able to edit robots.txt directly. Google notes that a content management system such as Wix or Blogger might offer a search settings page instead.[5]

Firewalls and security services

A robots.txt file that allows a crawler does not prove the crawler gets through. Google's page indexing help says Googlebot often makes more requests than a human user, so it can trigger firewall or denial-of-service protection and be blocked from crawling.[6] OpenAI asks owners to confirm that their host or content delivery network allows traffic from its published search crawler IP addresses.[1]

Perplexity says that a site using a web application firewall may need to explicitly allow its bots.[9] It also warns that firewall changes may take time to propagate, and advises monitoring logs to confirm the rules work and legitimate Perplexity traffic is allowed.[9] The guide on why ChatGPT is not crawling your site goes through the log checks in detail.

Google's AI setting

For Google's AI features there is one more switch. Search Console's Search generative AI control lets a site be included in or excluded from AI Overviews and AI Mode. Including is the default for all properties.[7] An excluded site is not linked to in those features and gets no traffic or impressions from them.[7] Google's guide says a page must also be indexed and eligible to be shown with a snippet to appear there.[3]

How common is this question compared with related ones?

This question was gathered from owner questions on social and forum sites on December 1, 2026. The chart compares it with related questions in this category, using estimated monthly US Google searches.

Can AI crawlers see schema added by JavaScript?: monthly US searches (Ahrefs estimates, December 2026) This bar chart compares estimated monthly United States Google searches for 6 questions in the Why AI is not showing your business, and fixing what AI says topic, read from Ahrefs Keywords Explorer on December 1, 2026; the gold bar is the question this guide answers. The question Why should I track AI brand visibility? has an estimated 540 searches a month. The question Why is ChatGPT not crawling my site? has an estimated 250 searches a month. The question Why did my AI search visibility drop? has an estimated 180 searches a month. The question How to fix ChatGPT misinformation about my brand? has an estimated 150 searches a month. The question Why brands need AI visibility monitoring in 2026? has an estimated 110 searches a month. The question Can AI crawlers see schema added by JavaScript? has an estimated 0 searches a month. This guide's question has an estimated 0 searches a month, ranking it 6 of the 6 questions shown by our own reading of the Ahrefs estimates. This question beside related ones US searches per month, Ahrefs estimates read December 1, 2026 Why should I track AI brand visibility? 540 Why is ChatGPT not crawling my site? 250 Why did my AI search visibility drop? 180 How to fix ChatGPT misinformation about my brand? 150 Why brands need AI visibility monitoring in 2026? 110 Can AI crawlers see schema added by JavaScript? 0 This guideRelated questions
Estimated monthly US Google searches, read from Ahrefs Keywords Explorer on December 1, 2026.
Estimated monthly US Google searches for related questions
QuestionEstimated monthly US searches
Why should I track AI brand visibility?540
Why is ChatGPT not crawling my site?250
Why did my AI search visibility drop?180
How to fix ChatGPT misinformation about my brand?150
Why brands need AI visibility monitoring in 2026?110
Can AI crawlers see schema added by JavaScript? (this guide)0
Total (our own sum)1,230

This guide's question has an estimated 0 searches a month, ranking it 6 of the 6 questions shown by our own reading of the Ahrefs estimates. The figure counts searches typed into Google in this wording. It does not count questions asked in AI assistants, in forums or to a developer.

The related questions show where the larger interest sits: tracking visibility, crawling problems, drops and wrong facts. Several of them connect to this one. A crawler that cannot reach a page, or a fact that only exists inside a script, can sit behind each of them, which is why the check in this guide is worth running even though few people search for it by name.

How we got these numbers: the figures are estimates of monthly US Google searches, read inside the Ahrefs Keywords Explorer subscription tool on December 1, 2026. They are search engine estimates, not counts of prompts typed into AI assistants. The total of 1,230 is our own sum of the rows shown, and the ranking is our own reading of the same figures.

What should I change if my schema only appears after JavaScript runs?

Work from the fix that removes the most doubt to the ones that add support.

Ask for the schema to be written into the raw HTML. Take your list of pages to your developer or platform and ask whether the schema block can be output with the page, not added by a script afterwards. Then repeat the View page source check to confirm. Google says it typically renders pages in order to index them, but that rendering is not guaranteed.[4] OpenAI and Perplexity have not published whether their crawlers run scripts.[2][9]

Put every key fact in the visible text. Your name, address, phone number, hours, services, prices and service area should read as plain words on the page. Bing's advice is that clear headings, tables and FAQ sections help AI systems reference content accurately.[10] Bing also advises aligning text, images and video so they consistently represent the same entities, products or concepts.[10]

Do not block the scripts the page needs. If a script must stay, make sure robots.txt does not block it, because Google warns against blocking resources whose absence makes a page harder to understand.[5]

Keep business details current at the source. Google says Merchant Center and Google Business Profiles can help products and services be visible in AI responses and other Google Search results.[3] Bing says businesses can register with Bing Places for Business to help keep address, hours and contact information current and eligible for inclusion in AI-generated responses.[10] Businesses with several branches should also read why some locations are invisible in AI search.

Tell search engines when pages change. Bing says IndexNow notifies participating search engines whenever content is added, updated or removed, and that faster discovery helps AI systems reference the most current version of a page.[10]

Check snippet settings while you are in the code. Google says the nosnippet rule prevents a page's content from being used as a direct input for AI Overviews and AI Mode, and that max-snippet limits how much of it may be used.[4] A page with these rules set by mistake can be read and still left out.

A schema fix will not by itself decide who gets named. OpenAI says ChatGPT ranks search results using multiple factors and that placement is not guaranteed.[1] If a competitor keeps appearing in your place, the guide on why ChatGPT recommends a competitor instead of your business sets out the other causes.

How do I know whether a fix worked?

Re-check the page first. View page source should now show the schema block and the key facts. Then look at what each company reports.

Google. The Generative AI performance report in Search Console shows clicks and impressions from AI Overviews and AI Mode, and which pages get the highest or lowest numbers.[8] If you do not see the report, Google says this usually happens when the property hasn't received enough impressions in those features.[8] The report does not include data from the Gemini app.[8]

Microsoft. The AI Performance report in Bing Webmaster Tools shows how often content is cited, which URLs are referenced and how citation activity changes over time.[10] Microsoft notes that its grounding query data is only a sample of overall citation activity.[10]

ChatGPT and Perplexity. Ask the questions your customers ask and open the sources. OpenAI says responses that use web search may include citations, and that you can select a citation to open its source.[1] The guide on how to see if ChatGPT mentions your business sets out the full test, and how to find which competitors AI recommends instead of you shows how to log who else appears.

Timing. OpenAI says a robots.txt change can take about 24 hours to register for search results.[2] Google says new content can take a few days to be indexed and that indexing is never instant, even when you submit a crawl request directly.[6] I tell owners the same thing I tell myself: keep the questions identical and compare month to month. Changing the questions makes the numbers meaningless.

For a longer view, read why you should track AI brand visibility and how to see AI traffic in Google Analytics. If your visibility fell after a site rebuild or a platform change, start with why AI search visibility drops.

What mistakes make JavaScript schema problems worse?

  • Assuming every crawler renders like Google. Google says rendering is typical but not guaranteed, and OpenAI and Perplexity do not say whether they render at all.[4][2][9]
  • Checking only the finished page. The developer tools Elements panel shows the page after scripts run. View page source shows what a crawler that does not render receives.
  • Keeping facts only inside schema. Bing's advice favours clear headings, tables and FAQ sections on the visible page.[10]
  • Blocking script files in robots.txt. Google warns against blocking resources whose absence makes a page harder to understand.[5]
  • Blocking the search crawler while trying to stop training. OpenAI says each setting is independent, and that a site can allow OAI-SearchBot while disallowing GPTBot.[2]
  • Forgetting the firewall. Security protection can block crawlers even when robots.txt allows them.[6][9]
  • Adding special AI markup in the hope of a boost. Google says there's no special schema.org markup you need to add for generative AI search.[3]
  • Re-testing the same day. OpenAI says robots.txt changes take about 24 hours to register, and Google says indexing is never instant.[2][6]

The background terms used here are explained in AI SEO basics, and the work of earning citations is covered in get recommended and cited by AI.

Brand note: AI Ask Marketing, which publishes this guide, reviews how businesses appear in Google, Bing and AI assistants as part of its AI visibility audit.

References and sources

Each company page below was opened and read on December 2, 2026; the Ahrefs figures were read on December 1, 2026. Statements in this guide about how each platform works come from these pages only.

  1. OpenAI Help Center, "Searching the web with ChatGPT". Used for: Citations, eligibility for search results, ranking statement, query rewriting. Read December 2, 2026.
  2. OpenAI Developers, "Overview of OpenAI Crawlers". Used for: OAI-SearchBot, GPTBot and ChatGPT-User, the opt-out effect and the 24-hour robots.txt note. Read December 2, 2026.
  3. Google Search Central, "Google's Guide to Optimizing for Generative AI Features on Google Search". Used for: Structured data and markup statements, crawlable content, eligibility, browser agents, business details. Read December 2, 2026.
  4. Google Search Central, "Robots Meta Tags Specifications". Used for: Rendering is typical but not guaranteed; nosnippet and max-snippet; managing structured data use. Read December 2, 2026.
  5. Google Search Central, "Robots.txt Introduction and Guide". Used for: What robots.txt does, blocking script files, crawlers interpreting rules differently. Read December 2, 2026.
  6. Search Console Help, "Page indexing report". Used for: Checking indexing with site: searches, firewalls blocking Googlebot, indexing timing. Read December 2, 2026.
  7. Search Console Help, "Search generative AI control". Used for: The include and exclude choices for AI Overviews and AI Mode and the default. Read December 2, 2026.
  8. Search Console Help, "Generative AI performance report (Search)". Used for: Clicks and impressions from AI Overviews and AI Mode, and why the report may be missing. Read December 2, 2026.
  9. Perplexity Docs, "Perplexity Crawlers". Used for: PerplexityBot and Perplexity-User, firewall allow rules and log monitoring. Read December 2, 2026.
  10. Microsoft Bing Webmaster Blog, "Introducing AI Performance in Bing Webmaster Tools Public Preview". Used for: The AI Performance report, content advice, IndexNow and Bing Places for Business. Read December 2, 2026.
  11. Ahrefs, "Keywords Explorer (subscription tool)". Used for: Estimated monthly US search volumes in the data table and chart on this page. Read December 1, 2026.

If you would rather not run these checks yourself

If you would rather not run these checks yourself, AI Ask Marketing offers an AI visibility audit. It assesses how your business appears on Google, Bing and the AI assistants for the search terms that matter to you, plus your Domain Rating, a score of the strength of links to your site, and your backlink profile, the list of other websites that link to yours.

Request an AI visibility audit

Frequently asked questions

Can AI crawlers see schema added by JavaScript?
Not reliably, as far as the companies have documented. Google says it typically renders pages in order to index them but that rendering is not guaranteed. The OpenAI and Perplexity crawler pages do not say whether their crawlers run JavaScript, so the safer choice is to put schema in the HTML the server sends.
Does Google read JSON-LD that is added by JavaScript?
It may, but Google does not promise it. Google's robots meta tag documentation says Google typically renders pages in order to index them, however rendering is not guaranteed. Schema written into the original HTML does not depend on that step.
Does ChatGPT read the structured data on my website?
OpenAI has not published an answer on its help article or crawler overview. What OpenAI does say is that a site must allow OAI-SearchBot to crawl it, and its host or network must allow OpenAI's published search crawler IP addresses, to be eligible for ChatGPT search results.
Does schema markup matter for AI search at all?
It is not a requirement for Google. Google's guide to generative AI features says structured data isn't required for generative AI search and that there is no special schema.org markup to add. Google says unique, compelling and useful content will likely influence presence in generative AI search more than any other suggestion in its guide.
How do I check whether my schema is in the raw HTML?
Open the page, use your browser's View page source option, and search for application/ld+json. If the schema appears there, any crawler that downloads the page receives it. If it appears only in the developer tools Elements panel, it is being added by a script after the page loads.
How can I tell if my website builder adds schema with JavaScript?
Compare the page source with the finished page. If the schema block is missing from View page source but present in the developer tools Elements panel, a script added it. Ask your platform or developer whether the block can be written into the page HTML instead.
Can blocking JavaScript files in robots.txt hurt how my site is read?
It can for Google. Google's robots.txt guide says you can block unimportant script files, but not resources whose absence makes the page harder for Google's crawler to understand. Google also notes that each crawler might interpret robots.txt rules differently.
Does Perplexity run JavaScript when it reads my page?
Perplexity's crawler documentation does not say. It explains that PerplexityBot surfaces and links websites in Perplexity search results, and that Perplexity-User might visit a page when a user asks a question. It also says a web application firewall may need to explicitly allow Perplexity's bots.
Will fixing my schema make ChatGPT recommend my business?
There is no guarantee. OpenAI says ChatGPT ranks search results using multiple factors and that placement is not guaranteed. Google says that meeting all its requirements and best practices does not mean it will crawl, index or serve a page.
How long should I wait before re-testing after a fix?
It depends on the fix. OpenAI says a robots.txt change can take about 24 hours to register for search results. Google says new content can take a few days to be indexed, and that indexing is never instant, even when you submit a crawl request directly.
Where can I see whether Google AI or Copilot use my pages?
Use each company's webmaster tool. Google's Generative AI performance report in Search Console shows clicks and impressions from AI Overviews and AI Mode. Microsoft's AI Performance report in Bing Webmaster Tools shows how often content is cited across Microsoft Copilot, AI-generated summaries in Bing and select partner integrations.
Does AI Ask Marketing offer an AI visibility audit?
Yes. AI Ask Marketing offers an AI visibility audit for owners who would rather not run these checks themselves. The audit assesses how a business appears on Google, Bing and the AI assistants for the search terms that matter to it, and reviews the website's Domain Rating, a score of the strength of links to a site, and its backlink profile, the list of other websites that link to it.

The bottom line

Treat JavaScript-added schema as something only some systems may see. Check the raw HTML of your key pages, confirm that crawlers can reach them, and make sure your business facts are written in plain visible text. If the schema exists only after scripts run, ask for it to be placed in the HTML the server sends, then re-test with the same questions.

About the author

Michael Fitzgerald has worked in digital marketing for 15 years. He is President and CEO of Local Ingenuity and of AI Ask Marketing, which publishes the AI SEO Knowledge Base. AI Ask Marketing is a marketing agency focused on AI search visibility, AEO, GEO and SEO for business owners.

Published . Updated . Platform features change; the dates beside each source show when it was read.