Skip to content
Try Free →

Choose which pages your agent reads

Your agent answers only from what is indexed, so choosing the pages it reads starts with the crawl. Use URL rules to keep or skip parts of a site, Exact Links to pick single pages, a CSS selector to read only the main content, and Audience to keep a source off public channels.

Before you start

Rules apply when pages are found, so a page that does not match is never read. They do not remove pages that were indexed earlier. Delete those from Knowledge yourself (see below).

Limit a crawl with URL rules

  1. Open the Crawl Website window as in add your website and choose Domain Crawl.
  2. Under URL Rules, add up to 10 rules. Each is an Include or Exclude rule.
  3. Write each rule as plain text that appears in the page's path:
    • Include /docs/ keeps only pages whose path contains /docs/.
    • Exclude /tag/ and exclude /category/ skip archive pages.
  4. Click Preview crawl to see how many pages are found, then Start Crawl. The confirmation shows how many pages were queued.

Rules match the path only, one piece of text per rule. Wildcards such as * are not supported, so /docs/* matches nothing. The query string is not checked, so a rule like ?page= has no effect. If your include rules match no pages, only the starting address is indexed.

Rules also do not change which 5,000 page URLs are kept from a very large sitemap (AskVault ranks up to 50,000 addresses and keeps the most useful). Add the pages that matter with Exact Links.

In the same window, choose Exact Links and paste up to 50 addresses, one per line. Only those pages are read. This is the best way to add a few pages from a site, or pages your sitemap does not list.

Read only the main content

By default AskVault leaves out menus, headers, footers, sidebars, cookie banners and breadcrumbs. If a page still brings in something you do not want, such as a "Related posts" block, set a CSS selector.

  1. In the Crawl Website window, open Advanced options.
  2. Enter one selector in CSS Selector, such as main, article, #content or .post-content.
  3. Start the crawl.

Things to know:

  • There is one selector per crawl, applied to every page in it. It takes the first element that matches on each page and reads only that element.
  • A selector replaces the automatic clean-up. It does not add to it.
  • Pages already indexed are not read again by a new crawl. To apply a selector to them, paste them with Exact Links and the selector.
  • Test the selector in your browser first with document.querySelector('your-selector'). There is no selector preview in AskVault.
  • Different page templates on one domain need different selectors. Run separate crawls, each with its own starting path and selector.

Remove pages that slipped in

  1. Open Knowledge.
  2. Select the pages you do not want.
  3. Choose Delete.

Deleted pages stop being used in answers right away. Check again after your next crawl, because a crawl can add them back if no rule excludes them.

Keep a source off public channels

Set a source's Audience to Internal Team Only. Internal sources are never used to answer customers on the widget, the hosted page, messaging channels or the public API. See Knowledge for the steps. Audience is set per source, not per crawl rule.

Give different customers different knowledge

A source is visible to everyone who reaches that workspace's public channels. If each of your customers should only get answers from their own material, give each one a workspace with rules limited to that customer's pages. Starter includes 2 workspaces, Growth 5 and Business 15. Growth+

Check it worked

  1. Crawl test. In the chat test, ask a question only an excluded page could answer. The agent should say it does not know. If it answers, find that page in Knowledge and delete it.
  2. Audience test. Mark a source internal, then ask about it on your widget. The agent should not use it.
  3. Sources test. Open an answer's sources in the chat test to see which page it came from.

If it doesn't work

Only the starting page was indexed. Your include rules matched nothing, or no sitemap was found. Remove wildcard characters from your rules.

A system prompt line like "only answer about our product" is not a wall. It helps with tone, but a determined visitor can talk a model around it. Rely on what is indexed.