BaCheWork and records of a photonics research workhorse
Language

How to make AI search find your website (GEO)

Writing the title as the question a reader would ask is the most useful step; the sitemap, share cards and llms.txt are generated automatically by the build.

Type
Essay
Published
2026-10-31
Updated
2026-11-29

Generative Engine Optimization (GEO): making sure AI tools such as ChatGPT, Perplexity and Gemini read and cite your website when they answer questions. According to Google’s own documentation, optimizing for AI search is still search engine optimization (SEO); AI answers pick relevant passages from the pages they retrieve to cite.

Updated 2026-11-29: Google has published an official guide to optimizing for AI search. Its position matches this article’s direction, and more directly: Google’s AI Overviews and AI Mode use the same ranking systems as regular search, so no extra files or markup are needed for AI. This version adds sections two, three and six: sitemap dates must be accurate, FAQ structured data has been deprecated, llms.txt is not needed for Google, the sitemap must actually be submitted after verification, the AI performance report in Search Console, and how the site name is determined. The previous version cited “research” in two places without a source; this version rewrites them as claims that Google’s official documentation supports. Other sentences I could not back up are now marked as my judgement (the five points in section 1 are marked as my own practice) or removed.

1. The most important thing: write titles and paragraphs as the question readers ask

According to Google’s own documentation, a page must first be indexed and able to show a snippet before it is eligible to appear in AI Overviews, and no special markup for AI is needed. So this section is not about writing a separate version for AI, but about titles and structure that people can understand at a glance. My judgement: within the same site, which page AI cites mainly depends on how closely that page’s title and paragraphs match the question; FAQ blocks and structured data, for example, make little apparent difference within a single site.

So I put my energy into the following five things (this is my own practice, not an official rule):

  1. Write titles as a question or a direct answer: “Brand identity design” is weaker than “How a coffee shop builds recognition with three colors.”
  2. Answer the title directly in the first two or three sentences: AI most often cites “the passage that most looks like an answer.”
  3. Use the same sentence for the page <title>, the H1 and the social share title, rather than three different versions.
  4. Keep text as text, not burned into images: text inside an image is not guaranteed to be read by AI or translation tools, so put important words in the body text. Always write alt text for images.
  5. Build a “brand” with your name: keep the site name, social name and work credits consistent so AI connects them.

2. Make it readable to search engines and AI (generated when the site is built)

Astro and the AI assistant generate these automatically at build time, so there is nothing to write by hand:

Output Purpose How
Canonical URL Tells search engines which URL is the official one for this page, to avoid duplicates Each page has <link rel="canonical">, always pointing to https://example.com/...
Sitemap Lists all pages @astrojs/sitemap; robots.txt states where it is. Each page’s lastmod must match the page’s actual last-updated date for Google to use it; Google ignores priority and changefreq, so there is no need to fill them in
robots.txt Tells crawlers what they may fetch Portfolios usually allow everything; block the admin paths
Open Graph share card Title, summary and image shown when the page is shared on social media Generated automatically per page from the work data; works use their main image, and pages without one use the site-wide default (1200x630)
Structured data (JSON-LD) Tells search engines who the site belongs to and what the page is One Person for the whole site; work pages use CreativeWork, article pages use BlogPosting. According to Google’s own documentation, AI search does not need special structured data, but it still helps regular search rich results, so generating it automatically once is enough. No need to add FAQPage: Google deprecated FAQ rich results in May 2026
llms.txt A site summary for AI to read See the next section
Markdown twin A clean Markdown copy of each page, so AI does not have to parse the layout See the next section
RSS Lets people and programs subscribe to updates @astrojs/rss

3. llms.txt and the Markdown twin

llms.txt is a Markdown file at the site root, giving AI a directory of “what this site has.” The specification (llmstxt.org) is as follows; replace example.com with your own domain:

# Your name or site name                        ← the only required part

> One or two sentences: who you are and what this site contains.

## Works
- [Work name](https://example.com/work/xxx/index.md): one-sentence description

## About
- [About me](https://example.com/about/index.md): background and contact details

## Articles
- [Article list](https://example.com/notes/index.md): overview of all articles
  • Markdown twin: each page gets an extra index.md next to it (the convention for folder-style URLs), and the web page points to it with <link rel="alternate" type="text/markdown" href="index.md">.
  • Cloudflare has a feature that “automatically converts web pages to Markdown for AI” (Markdown for Agents), but it is only on the Pro plan and above (also open to SSL for SaaS customers); the free plan does not have it (checked 2026-11-29). I generate mine myself at build time, which also works on the free plan.
  • To be honest: according to Google’s own documentation, Google Search does not use llms.txt; I have not found an official statement on whether other AI search reads it. Its value is that it costs very little, and it makes your site easy to read for people using AI assistants.
  • Google’s official position (checked 2026-11-29): for Google’s AI features, you may ignore the advice to “chunk” content and to create AI-specific files such as llms.txt; but making and maintaining them is completely fine. So keep the ones you already have for other AI services and readers, and do not add new tricks just for Google.

4. Whether to block AI crawlers

  • Want to be cited by AI search → allow the search crawlers. If you block them, AI cannot find you, so it will not cite you.
  • Don’t want your work used for training → block the training crawlers. The setting is in section 5 of After buying a domain.
  • Portfolios usually go with the first option. If unsure, allow everything for a week or two first, then decide based on the AI Crawl Control logs. The free plan’s Metrics tab only shows the past 24 hours, so to build up a week or two of records you have to check every day and write them down yourself.

5. Works that are videos

If a work is a video and you want it to appear in Google’s video search results:

  • One page per video, and that page’s main subject is that video.
  • The video is actually embedded on the page, visible as soon as the page opens. Do not hide it behind a thumbnail that must be clicked to load, because crawlers will not see it. This involves a privacy trade-off; see Privacy.
  • Each video has its own title, description and thumbnail.
  • Add a key points summary and a full transcript on the page (collapsed by default): people who do not watch the video, AI and translators all rely on them.
  • Store chapters as “seconds plus section name” data, which generates the on-page chapters, the timestamps in the YouTube description and Google’s “key moments.”
  • Output VideoObject structured data and a video sitemap.

6. After launch

  • Verify the domain in Google Search Console and submit the sitemap. Verification only needs one TXT record added in Cloudflare’s DNS. After verifying, remember to actually click “Submit”: about seven weeks after my own site went live, I found the sitemap had never been submitted. Bing has its own Bing Webmaster Tools; for how to set it up, see its official instructions.
  • The Search Console performance report includes a generative AI section, which shows how many times your pages appeared in Google’s AI answers. To see whether GEO is working, check there first; you do not need to buy a paid tool.
  • Site name: the site name shown in Google search results is mainly taken from the WebSite structured data on the home page, using its name; you can list a few alternatives with alternateName (put the domain last). When the system is unsure, it shows the domain directly, and changes take days to weeks to appear.
  • The noindex on pages still under construction must be removed at actual launch: an unindexed page does not appear in search or AI summaries, and then the site simply cannot be found. It is best written as an automatic check before launch.
  • My judgement: put your site link on your social profiles, GitHub and work credits, so your name stays consistent.

Sources

  1. llmstxt.org (specification) (Specification)
  2. Google Search Central: Video SEO best practices (Official)
  3. Google Search Central: Canonical URLs (Official)
  4. Astro: @astrojs/sitemap (Official)
  5. Cloudflare: AI Crawl Control (Official)
  6. Google Search Central: Google's Guide to Optimizing for Generative AI Features on Google Search (Official, checked 2026-11-29)
  7. Google Search Central: Latest Google Search Documentation Updates (Official, announcement that FAQ rich results are deprecated)
  8. Google Search Central: Build and Submit a Sitemap (Official)
  9. Google Search Central: Site Names in Google Search (Official)
  10. Cloudflare: Markdown for Agents (Official, checked 2026-11-29)

← Previous:Security for a static personal site: where the real risks are

Next:Pre-launch checklist for a personal site →