Boei automatically strips common boilerplate (navigation, footers, sidebars, cookie banners, comment sections, ads) when crawling pages. For most sites, this is enough.
If you need more control, CSS filters let you tell Boei exactly which sections of a page to skip (or keep) while leaving the page untouched for your visitors. This is an advanced feature for fine-tuning.
How to get there: Go to Setup → Chatbot in the top menu → click your chatbot → Training → Website tab → find your website source → click the settings (gear) icon.
Cases where the automatic stripping isn't enough:
Sections you strip stay visible to your customers on the site. Boei only excludes them from training data.
You provide CSS selectors, which are short codes that identify parts of a web page. If you've ever inspected a web page in your browser, you've seen these. Here are some examples:
| Selector | What it matches |
|---|---|
.related-products |
Any element with class related-products |
#products-list-footer |
The element with id products-list-footer |
.cross-sell |
Any element with class cross-sell |
aside |
All <aside> tags on the page |
footer |
The page footer |
You can list multiple selectors, one per line.
Go to Training → Website tab
Find the website source you want to configure
Click the settings (gear) icon next to it
In the Exclude CSS Selectors field, paste one selector per line:
.related-products
.cross-sell
#products-list-footer
Click Save Changes
Filters apply on the next crawl of each page. Pages that were already trained keep their current content until they are re-crawled.
If you already trained pages before adding filters, they need to be re-crawled:
Your training-character count drops the moment the re-crawl finishes.
The Include CSS Selectors field does the opposite: if set, the chatbot only trains on content inside the listed selectors and ignores everything else on the page.
Use this when a site has a clear main-content wrapper:
main
article.post
If left empty (the default), Boei keeps the whole page and applies your exclude filters on top.
class="..." or id="..." attribute on the highlighted element.) or id (prefix with #) into the Exclude CSS Selectors field/blog/tag/*), use the Include Paths or Exclude Paths fields instead. CSS filters are for sections within pages you do want to train on.