BotableX
Help center

Knowledge Banks

How to use Discovery rules to choose which web pages the bot reads

Discovery can now read your website's sitemap, the list of pages the site publishes, and use rules that you write to decide which pages count as articles. It can also watch the site every day and tell you when new...

Updated October 5, 2026. Applies to the BotableX Staff Portal. For tenant admins.

Discovery can now read your website’s sitemap, the list of pages the site publishes, and use rules that you write to decide which pages count as articles. It can also watch the site every day and tell you when new articles appear.

This article explains every part of the rules screen, shows how to build rules step by step even if you have never written one, and shows how to turn on Watch this site.

Before you start

  • You need the Knowledge permission (knowledge.manage).
  • Create the Knowledge Bank first and write a clear Purpose for it. See How to create a Knowledge Bank.
  • Have the address of your website ready, for example https://www.example.com. It must be a public website that anyone can open without signing in.
  • Your website should publish a sitemap. Most blog and help center tools do this by default. If yours does not, use the older Depth method in How to add web pages to a Knowledge Bank.
  • If a message says Site watching is switched off for this platform, ask your BotableX administrator to turn it on. Until then, the Watch this site box stays gray. The rules screen under Also read the site’s sitemap does not depend on that switch.

What is new, in plain words

Before, Discovery worked like a visitor. You gave it one page and a Depth, and it followed the links it could see. It missed pages that no other page links to, and it picked up pages you did not want, such as tag lists and archives.

Now you can also ask it to read the sitemap. A sitemap is the table of contents that a website publishes for search engines. It lists every page, even pages with no link pointing at them. Then you write rules that say which of those pages are real articles. Think of the rules as a filter on a coffee machine: everything goes in, only what you want comes out.

The new parts, in the order you meet them on the Discovery tab:

  • Also read the site’s sitemap: a checkbox. It adds the sitemap pages to the one run you are about to start, and opens the rules screen.
  • Include pages that match and Leave out pages that match: the two lists of rules.
  • Inspect a page: shows what one page says about itself, so you can build a rule with one click.
  • Preview what these rules match: shows how many pages your rules pick, before you read anything.
  • Watch this site for new articles: a box that checks your site on a schedule and lists new articles for you.
  • Grade the results against this bank’s purpose (uses AI credits): a checkbox that turns scoring on or off.

The three parts of a rule

Every rule is one row with three boxes and an x button at the end. The row reads like a sentence: page property + operator + value. For example: path matches /help/* means “the page address starts with /help/”.

When you click Add an include rule or Add an exclude rule, the new row starts as path matches and an empty value box. Type your value, or change the other two boxes.

Page property: what you are looking at

The first box says which fact about the page the rule checks. You can pick one from the list that appears when you click the box, or type it. Type it exactly as shown here. If you are not sure which to use, start with path, or use Inspect a page (see below).

Page property What it is
path The part of the address after the website name. For https://www.example.com/help/reset-password the path is /help/reset-password. This is the property you will use most.
host The website name part of the address, such as support.example.com. Use it when you read more than one subdomain.
section Which part of the sitemap the page is listed in. Large sites split their sitemap into several parts, for example one for posts and one for products. The Preview shows these parts (see below).
lastmod The “last changed” date that the sitemap gives the page. Use it with at or after to keep only recent pages.
og:type The kind of page that the page says it is, in its hidden “Open Graph” labels. Articles often say article.
jsonld:type The kind of page that the page says it is, in its hidden structured data. A help page may say FAQPage or Article.
title The page title, the text on the browser tab.
h1 The main heading at the top of the page.
breadcrumb The trail of links near the top of the page, such as Home > Help > Billing.
canonical The one official address that the page says is its own. Pages with the same content under different addresses share one.
lang The language that the page says it is written in, such as en.

path, host, section and lastmod come from the sitemap list itself. The others are written inside each page. A rule on those needs the page to be opened, which is why Preview sometimes says needs a page check (see below).

Operator: how the check works

The second box is a drop-down list of seven choices.

Operator What it does and an example
equals The property must be exactly your value. path equals /pricing picks only the pricing page.
contains Your value must appear somewhere in the property. path contains /blog/ picks every address with /blog/ in it.
matches ( any text)* Like equals, but the star * stands for any text. path matches /help/* picks every page under /help/. This is the easiest operator for folders, and it is the one a new rule starts with.
regex For experts. Your value is a regular expression, a compact pattern language. Skip it unless you already know it. You can do almost everything with matches and contains.
exists The page only needs to have the property at all. The Value box turns gray, because there is nothing to type. og:type exists picks pages that carry that label.
at or after / at least The property must be the same as your value or later, or the same or larger. Use it with a date such as lastmod.
at or before / at most The property must be the same as your value or earlier, or the same or smaller. Use it with a date such as lastmod.

Value: what you type

The third box is the text to check against. It can be one word, an address part, a pattern with stars, or a date. It is gray when the operator is exists. To delete a rule, click the x at the end of its row.

How include rules and exclude rules work together

  • Include pages that match: a page counts if it matches any one of these rules. Rules in this list work like “or”.
  • No include rules at all means every page counts.
  • Leave out pages that match: a page is dropped if it matches any of these rules, even if it also matched an include rule.
  • So the order of thinking is: first say what you want, then say what to throw away from that.

Example. You want the help articles but not the tag pages. Include: path matches /help/*. Exclude: path contains /tag/. A page /help/reset-password counts. A page /help/tag/billing does not.

So how do you build rules and run a discovery?

  1. In the menu on the left, click Knowledge Banks and open your bank. The Discovery tab is the first tab.

  2. In URL, type your website address, for example https://www.example.com.

  3. Tick Also read the site’s sitemap (finds articles that are not linked from this page). A gray box opens below it with the rules screen. It starts with the text Say which pages count as articles.

  4. Not sure what to write? Look at Inspect a page first. Under it, paste the address of one real article, for example https://www.example.com/help/reset-password, and click Inspect.

  5. A row of small buttons appears. Each shows what the page says about itself, written as property = value, for example lang = en. Long values are cut after 40 characters, and you can hold the mouse over a button to see all of it. Click a button you like. It adds an include rule with equals for you.

  6. Or write the rule by hand. Click Add an include rule. Keep path. Change the operator to *matches ( any text)**. In the value box, type /help/*.

  7. To drop pages you do not want, click Add an exclude rule and write the rule the same way, for example path contains /tag/.

The Inspect button stays gray until you type an address. If the page cannot be opened, you see The page could not be read. and the reason. Try another page, because pages behind a login cannot be read.

  1. Click Preview what these rules match. The button says Reading the sitemap… for a moment.
  2. Read the result. The first line says how many pages match, for example 120 pages match; 4 more need a page check; the sitemap lists 300 pages.
  3. Look at the buttons under The site by folder (click one to add a rule):. Each shows a folder name and how many pages are in it, for example /help (120). Click one and it adds an include rule path matches /help/* for you.
  4. Look at the short list of sample pages. Each shows its address and a verdict: matches, does not match or needs a page check.

How to read the Preview

  • N pages match: these pages pass your rules for sure.
  • N more need a page check: your rules use a fact that is written inside the page (like title, h1 or og:type), so the sitemap alone cannot say. They are decided when the page is opened for real.
  • the sitemap lists N pages: the total on the site. If the number you match is far from what you expected, change a rule and click Preview again. You can do this as many times as you like. Nothing is read or saved.
  • Sitemap sections: shown only when the sitemap has more than one part. Each part has a check box with the number of pages in it. By default every part is read. Choose only the parts you want to skip the rest.
  • The list is incomplete: a limit was reached while reading. The site is very large. Make your rules narrower or pick fewer sections, then Preview again.
  1. When the numbers look right, check Depth and the other options above, then click Run discovery. See How to add web pages to a Knowledge Bank for what those options do.

The matching pages arrive in the table below, the same table you know from before.

Choose scoring on or off

Under the rules you see Grade the results against this bank’s purpose (uses AI credits).

  • Tick it, and the pages get a Relevance score against the bank Purpose. The Cutoff slider then ticks the good ones for you.
  • Leave it unticked, and the pages arrive as Not graded. You tick the ones you want yourself. This costs no AI credits.

When your rules already say exactly what you want, scoring is often not needed. Pages that are already stored in the Knowledge Library are not downloaded again. The table says Already in the knowledge library. Added to this bank.

To finish, tick the pages you want and click Save + Index selected. This is the button that makes the bot learn them. The plain Save button only remembers your choices.

So how do you watch your site for new articles?

You can also let BotableX check your site by itself, so new articles do not get missed. It reads the sitemap, applies your rules, and lists the pages it has not seen before. Nothing is added to the bot unless you choose so.

Important. The choice Approve and index them automatically puts every new matching page into the bot’s knowledge with no review, which means customers can get answers from it. The first check only lists pages. After that, up to a few pages per check go in by themselves. Keep your rules narrow, or leave the safe choice List them for my approval selected.

  1. On the Discovery tab, find the green box Watch this site for new articles.

  2. Tick Watch this site.

  3. In Site address, type your website address, for example https://www.example.com.

  4. Under When new articles are found, choose List them for my approval (nothing reaches the bot until I press Index). This is the safe choice.

  5. Next to Check, choose how often: every 6 hours, every 12 hours, once a day, every 2 days or once a week. The default is once a day.

  6. Inside the green box, build your include and exclude rules exactly as you did above. Inspect a page and Preview what these rules match work the same here.

  7. Click the Save button at the bottom of the green box. There is a second Save lower on the tab. It belongs to the results table and is a different button.

  8. You see Saved. The first check runs within a few minutes. The box says Not checked yet: the first check runs within a few minutes of saving. until then.

Once a watch exists, two more buttons appear: Check now, which does a check right away, and Stop watching, which asks you to confirm and then says No longer watching. Articles that were already found or indexed stay.

What you see after a check

  • A line such as Last checked with the time and result.
  • A summary such as 120 pages match the rules; 3 were new; 1 already-indexed pages changed on the site.
  • A yellow strip N new articles waiting with two buttons: Review and Index N.
  1. Click Review to open the list of new pages. Untick the ones you do not want.
  2. Click Index N. A window titled Index the new articles asks you to confirm.
  3. Confirm. The message Indexing was queued. It continues in the background. appears. The pages become Knowledge entries in a few minutes.

An article you remove from the list stays removed. The watch never brings it back, so you will not be asked about the same page twice.

Common problems

Problem What to do
Site watching is switched off for this platform. The Watch this site box stays gray. Ask your BotableX administrator to turn site watching on. The one-time rules screen under Also read the site’s sitemap can still work.
Reading sitemaps is switched off for this platform. Ask your BotableX administrator. Preview and the sitemap checkbox need this.
No sitemap was found for this site. Your website does not publish a sitemap, or it is somewhere BotableX cannot find. Use the Depth method instead. See How to add web pages to a Knowledge Bank.
The site is blocking this crawler, so its sitemap could not be read. The website’s security refuses automated visitors. Ask whoever runs the website to allow it, or add the pages as files.
These rules are not valid: followed by a reason Fix the rule that the reason names. If you used regex, try matches or contains instead.
That address is not a public web address. Only addresses anyone on the internet can open work. Company intranet pages, internal names and test addresses do not.
The page could not be read. That page is behind a login or is blocked. Inspect a different page of the same site.
The list is incomplete: a limit was reached while reading. The site is very large. Make the rules narrower, or choose only the Sitemap sections you need.
This account has reached its limit of watched sites. Click Stop watching on a site you no longer need, or ask your BotableX administrator for a higher limit.
This site is already being checked. A check is running. Wait a minute, then reload the page.
Preview says 0 pages match Your include rules are too narrow, or a word is mistyped. Remember: with no include rules every page counts, so any include rule makes the net smaller. Check the property is spelled as in the list above. Try the folder buttons.
New articles waiting, but they are the wrong pages Add an exclude rule for them and Save the watch. Then use Review to untick what you do not want before you click Index.

Tip from the BotableX team. Start with Inspect a page on one good article and one bad page, like a tag list. Click the buttons that make the good article match. Then write one exclude rule for the bad page. Check with Preview. Two include rules and one exclude rule are enough for most websites.