Sitemaps for AI Search: lastmod, Sitemap Index and the Errors That Break Discovery
By the Leadee team at Netbase JSC · Updated
A sitemap is an XML file listing your real URLs so a crawler can discover pages without following every link by hand. For AI search, the field that matters most is `lastmod`: an accurate, honest last-modified date tells a crawler which pages changed and deserve a re-read. A sitemap with no lastmod, or a stale one that never updates, still passes a basic check — but it wastes the one signal a sitemap is good for.
Key facts
- Every sitemap format Google supports is capped at 50MB uncompressed or 50,000 URLs per file; a larger site must split into multiple sitemaps, optionally listed together in one sitemap index file. (Google Search Central, 2026)
- Google only uses a sitemap's lastmod date when it can verify the date is accurate and consistent with the page's real last-modified time — an inflated or unchanging lastmod gets ignored rather than trusted. (Google Search Central, 2026)
- Google's own robots.txt documentation confirms the `Sitemap:` line is a valid, standard way to point any crawler — not only Googlebot — at your sitemap's location from robots.txt. (Google Search Central, 2025)
- Leadee's own check treats a lastmod dated 2026 (or the second half of 2025 or later) as fresh; an older or missing lastmod still passes the "sitemap exists" bar but scores lower — see the AI crawlability check.
What does a sitemap need to actually do its job?
At minimum, a sitemap is a list of your real, live, canonical URLs — pages that return a normal 200 status, not redirects, not pages blocked by robots.txt or a noindex tag. A sitemap that lists a URL your own robots.txt disallows sends a crawler a contradictory signal and should be trimmed to match.
Beyond the URL list, the field that actually earns its place is `lastmod`: a per-URL date stating when that page's main content last changed. A crawler with limited budget to spend on your site uses lastmod to decide which pages are worth re-reading sooner rather than crawling everything on a fixed, wasteful schedule.
How should lastmod actually be set?
lastmod should reflect a real, verifiable change to the page's main content, structured data, or links — not a cosmetic edit like a copyright-year footer update, and not a timestamp that silently updates on every deploy regardless of whether that specific page changed.
Google is explicit that it only trusts a lastmod value it can verify is accurate and consistent with a page's real history; a sitemap where every single URL carries today's date, every single day, teaches a crawler to stop trusting the field at all — which defeats the entire reason to include it.
How does robots.txt point crawlers at my sitemap?
Add a line anywhere in robots.txt in the form `Sitemap: https://example.com/sitemap.xml` — it is a standalone directive, not tied to any `User-agent` group, so every crawler that reads robots.txt at all (search engine or AI bot) can find your sitemap from the same file. See AI crawlers and robots.txt for the rest of what belongs in that file.
Submitting a sitemap URL directly to a platform (where that option exists) is a useful addition, not a replacement — the robots.txt line is the one path every crawler, including ones you have never registered with, can discover entirely on its own, with no account or submission step required on your part.
When do I need a sitemap index file instead of one sitemap?
Once a site approaches 50,000 URLs or 50MB uncompressed in a single sitemap file — the hard limit every format Google supports enforces — split the URLs across multiple sitemap files and list them in one sitemap index file, which is itself just a small XML file pointing at the others.
Splitting by logical section (products, blog posts, industry pages) rather than an arbitrary alphabetical cut makes the index easier to audit later, and lets you spot immediately which section of the site is growing the fastest over time.
Do I have to build my sitemap by hand?
On most platforms, no. WordPress with Yoast SEO or RankMath auto-generates a sitemap index with lastmod dates the moment either plugin is active — the usual failure mode is the sitemap setting getting toggled off, not a missing feature. Shopify auto-generates and maintains `/sitemap.xml` for every store with no configuration at all, including lastmod values it manages itself.
Static-site generators and most modern frameworks (Next.js, Hugo, Jekyll) can generate a sitemap at build time from the page list, which keeps lastmod tied to real deploys rather than a guess. A hand-maintained sitemap is really only common on older, custom-built sites — and it is also where lastmod most often goes stale, since nothing regenerates it automatically when content changes.
What are the most common sitemap errors?
- No reachable sitemap at all — the single most severe version of this check; without one, a crawler has to discover every page by following links, which misses pages with few or no internal links pointing to them.
- A sitemap that returns a non-200 status (404, redirect, or an error page) when fetched, often after a site migration moved the file without updating robots.txt.
- URLs in the sitemap with no lastmod field at all — technically valid, but it throws away the one piece of information a sitemap is best positioned to provide.
- A lastmod date that is stale (still showing a date from more than a year ago) or, the opposite problem, one that updates on every single page on every single deploy regardless of whether that page's content changed.
- URLs in the sitemap that are blocked by robots.txt, noindexed, or redirect elsewhere — wasted crawl budget pointed at pages that will never actually get indexed.
Questions
Does every AI engine actually read sitemaps?
Not all AI crawlers are confirmed to use sitemaps the way search engines do, but a sitemap costs little to maintain and is the standard, well-understood way to help any crawler — search or AI — discover your pages without guessing. It also helps your own and third-party tools audit your site, and gives any future crawler a documented, predictable place to start from.
Do I need to update my sitemap every time I publish a new page?
Yes, in the sense that the page needs to be in the sitemap at all with an accurate lastmod — most CMS platforms (WordPress with Yoast/RankMath, Shopify) regenerate this automatically rather than requiring a manual edit.
What's the difference between a sitemap and llms.txt?
A sitemap aims to be a complete, mechanical list of every indexable URL with freshness metadata. llms.txt is a short, curated, human-readable index of your most important pages — see [llms.txt](/learn/llms-txt) for that format.
Can I have more than one sitemap without a sitemap index?
Yes — you can list multiple `Sitemap:` lines directly in robots.txt instead of one index file, though an index file is the cleaner option once you have more than a handful of separate sitemaps to manage.
Will a stale lastmod actively hurt my AI visibility?
It is unlikely to directly hurt it, but it wastes the field's purpose: a crawler that cannot trust your lastmod values falls back to crawling on its own schedule, which can mean your genuinely updated pages get re-read no faster than your unchanged ones.
Should my sitemap include every single URL on my site?
It should include every real, indexable, canonical URL you want crawled — not pages blocked by robots.txt, not duplicate parameter variants of the same page, and not thin or placeholder pages you would not want an AI engine citing in the first place.
Can GEO guarantee results?
No. AI answer engines change their output frequently, and no vendor — including Leadee — can guarantee a ranking or a mention. Leadee publishes confidence intervals on every metric so you can see how much a result can vary run to run.
How does Leadee measure AI visibility?
Leadee runs your prompt set against each AI engine on a weekly to daily schedule, depending on plan, through official vendor APIs (OpenAI, Gemini, Perplexity, Anthropic, DataForSEO) — never by scraping consumer chat interfaces — and reports mention rate, citation rate, average position, share of voice and sentiment with a 95% confidence interval.
Who do I talk to?
Email [email protected] or use Talk to an expert at https://leadee.ai/contact-sales — the Netbase JSC team behind Leadee replies by email or WhatsApp — or WhatsApp the CEO directly at https://wa.me/84937869689.

Check whether your sitemap is actually helping
Run the free check to see if your sitemap is reachable, has lastmod dates, and whether those dates look current.