When your chatbot trains on a website page, it captures everything on that page by default — including related-product carousels, cross-sell blocks, sidebars, and footers. That content is often not useful for answering customer questions, and it eats into your training limit.
CSS filters let you tell Boei to skip specific sections of a page (or only keep specific sections) while leaving the page itself untouched for your visitors.
How to get there: Go to Setup → Chatbot in the top menu → click your chatbot → Training → Website tab (under the Training section in the sidebar) → find your website source → click the settings (gear) icon.
Common cases where excluding sections helps:
Sections you strip stay visible to your customers on the site — Boei only excludes them from training data.
You provide CSS selectors — the same syntax used in web design:
| 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 Setup → Chatbot in the top menu → click your chatbot → Training → Website tab
Find the website source you want to configure
Click the settings (gear) icon next to it — this opens the advanced settings
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 to pick up the new rules:
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, for example:
main
article.post
If left empty (the default), Boei keeps the whole page and applies your exclude filters on top.
To find the CSS class or id of a section you want to remove:
class="..." or id="..." attribute on the highlighted element or its parent container.) 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.