How the sitemap is retrieved
How AI Memory finds a website's sitemap, which sitemap it registers, how sitemap indexes are read, and how to make sure a client's sitemap is found.
The sitemap tells AI Memory which pages a website has. Everything after it (page types, the crawl, the extracted memory) starts from that list, so a missing or partial sitemap is the most common reason a memory looks thin. This article explains how the sitemap is found and read.
When the sitemap is looked up
Automatically, when someone clicks Yes, crawl my website on the company setup page (the button shows "Detecting sitemap…") or Crawl in the Memory column of the Companies list in Accounts. A sitemap registered this way refreshes weekly.
By hand, when someone enters a sitemap URL or the website address under Knowledge › Website in AI Memory. (The screen's own heading still reads "Sitemap".)
If a sitemap is already registered for that domain, clicking Crawl again does not register a new one. It continues crawling the pages that are not crawled yet.
Discovery order
AI Memory tries every host variant of the website address: first the address as entered, then its www or non-www twin. For an http address it also tries the https versions.
First it checks every variant for Blogger. If the site answers like a Blogger site, it uses /sitemap-pages.xml, the only Blogger sitemap that lists static pages.
Otherwise it checks each variant in this order:
robots.txt. Every
Sitemap:line. Whole-site translation sitemaps such asfr_fr-sitemap.xmlare tried after the site's own sitemap, unless their language matches the memory's language./sitemap_index.xml/sitemap.xml/sitemaps.xml/wp-sitemap.xml/page-sitemap.xml/sitemap-pages.xml/pages-sitemap.xml
A candidate only counts when it returns sitemap XML. Gzipped sitemaps (.xml.gz) are read too. A sitemap index wins over a flat sitemap found earlier in the list. If no sitemap is found at all, the website address itself is registered and the lookup is tried again when the sitemap is fetched.
When the site has no XML sitemap
If no sitemap can be found anywhere, AI Memory discovers the pages itself by following the links on the site, up to 500 pages. This can take about 20 minutes. Meanwhile the screen shows "No XML sitemap found — our crawler is discovering pages (this can take a few minutes)…", and afterwards "no XML sitemap found — pages discovered by fallback crawl". Neither is an error.
Which sitemap gets registered
A sitemap index with one page sitemap and nothing else that might hold content: that page sitemap is registered directly, for example
.../page-sitemap.xml.Any other sitemap index (several page sitemaps, or product or custom sitemaps next to them): the index itself is registered and read as described below.
No index anywhere: a flat sitemap whose file name looks like a pages sitemap is preferred. Otherwise the first flat sitemap found is used.
How a sitemap index is read
AI triage. For each child sitemap, AI looks at the file name and up to 4 sample URLs from inside it. Each child becomes one of three things: pages (read and indexed), categories (kept as the shop's own category structure, not crawled as content) or skipped (blog posts, news, authors, tags, product attributes and filters, date archives, attachments and media).
Safety rules. Some file names decide on their own, whatever the AI says:
Always kept as pages: well-known page and product sitemaps (such as
page-sitemap.xml,sitemap-pages.xml,wp-sitemap-posts-page-1.xmlandproduct-sitemap.xml), and numbered parts of a sitemap such as…-sitemap2.xml(unless they are post, tag or category files).Always kept as categories: category sitemaps such as
product_cat-sitemap.xmlandcategory-sitemap.xml.Always skipped: attachment and media sitemaps, post sitemaps (such as
post-sitemap.xmlandwp-sitemap-posts-post-1.xml), and tag and author sitemaps (post_tag,product_tag,tag,author).
If the AI step is unavailable, these file-name rules decide on their own.
Category sitemaps, such as WooCommerce product category sitemaps, contribute up to 5,000 URLs each.
Nesting. Indexes inside indexes are followed up to three levels deep.
Size. Up to 50,000 URLs are read from one registered sitemap. Large catalogs are sampled at crawl time instead. See How the app crawls and categorizes pages.
A flat sitemap that you enter by hand is used as it is, with three exceptions:
Links to non-HTML files are skipped.
A sitemap with 100 or more URLs is refused when every URL in a sample of 5 is gone (404 or 410). The message starts with "This sitemap lists N pages, but none of the M we checked exist".
Dead URLs (gone, or redirecting elsewhere) are archived automatically when the pages are sorted. You find them under Archived (N).
What is read from each entry
The page URL (
<loc>) and, when present, the last-modified date (<lastmod>).The page language, taken from the URL path, from the page's own
hreflangalternate link, or from a language in the sitemap file name such assitemap-nl-be-pages.xml.CDATA sections and XML entities are decoded.
Links to non-HTML files are skipped: images, PDFs, archives, audio and video, CSS, JavaScript, JSON, XML, text files and fonts.
Sitemap requests use the user agent UpToDateConnect-Bot/1.0. Time limits: 5 seconds for robots.txt, 10 seconds to check a possible sitemap, 8 seconds to sample a child sitemap for the AI triage, and 45 seconds to read the registered sitemap.
Setting the sitemap yourself
Open AI Memory for the company and go to Knowledge › Website.
Enter the exact sitemap URL, for example
https://yourwebsite.com/page-sitemap.xml. You can also paste the website address: AI Memory then looks up the best sitemap and saves it in its place. Click Add another sitemap to add more URLs (up to 25) that build a single page list.Choose how often it refreshes: Never, Daily, Every 3 days, Weekly (the default) or Monthly.
Click Save & Fetch. A message says "Sitemap saved, fetching pages…".
Save & Fetch does more than load the list: it registers the sitemap, fetches it, sorts the pages, then crawls all enabled pages by itself and emails you when it is done.
To remove a saved URL, click the X next to it and confirm with Remove ("Remove this sitemap?").
A memory can hold several sitemaps, one per domain. A Sitemaps switcher at the top then shows each domain with its page count. The last sitemap of a memory can't be removed ("This is the workspace's only sitemap. Add another before removing it.").
A language version of a memory has no sitemap of its own. Its Website screen shows the main memory's pages in that language, read-only.
Refreshing the sitemap
Re-fetch sitemap (the refresh icon) reloads the list. Scheduled refreshes do the same at the interval you chose.
On every re-fetch, pages that have dropped out of the sitemap are archived automatically, and restored if they come back. Pages you archived yourself are left alone.
If the sitemap can't be read during a refresh, the pages from the last read are kept and the screen says "Couldn't read the sitemap this time: the site didn't answer in time or refused. Kept the N pages from the last read; the next refresh tries again."
Look for more sitemaps (shown when approval is refused because no products or services were found) and Re-detect both point the entry at the site's sitemap index again, replacing the saved URL list with that one address, and re-scan it. If none is found: "Could not find a sitemap index for this site". Neither crawls the pages it finds: click Crawl enabled (N) afterwards.
Blog addresses
If the address looks like a blog subdomain or a hosted blog platform, the This looks like a blog dialog suggests crawling the main site instead. Only the first URL is checked. The buttons are Use (main domain) instead (for a subdomain), Crawl (address) anyway and Cancel.
Make sure a client's sitemap is found
List the sitemap in robots.txt with its full https URL.
Use a sitemap index that keeps pages, products and posts in separate child sitemaps. Yoast, Rank Math and WordPress's built-in sitemaps do this.
Make sure the sitemap loads for automated visitors without a challenge page or consent wall.
Register the live domain, not a staging address.
Related articles
Did this answer your question?