What is a segment?
A segment, or category, groups URLs built on the same page template: product pages, listing pages, articles, legal pages.
“40% of pages are non-indexable” is an observation. “Filter pages aren’t indexable, product pages are fine” is something you can act on. Categories get you from one to the other, because a problem concentrated in one template gets fixed in one place.
Let the AI suggest a first segmentation
“Generate with AI” sends the AI a sample of up to 200 pages (URL, title, H1), spread across every depth of the site. It comes back with rules, ordered from the most specific category to the broadest.
Nothing is applied without you. You review, test and save.
Fine-tune the rules by hand
Work in the visual editor or in YAML, whichever you prefer. Each category includes and excludes URL patterns. A rule can also check the value of an XPath or regex extractor configured on the crawl, such as a breadcrumb or a page type declared in the code.
“Test” shows the breakdown before you apply anything, including the URLs left without a category.
Read the whole platform by category
Audit reports, Performance reports combined with Search Console, Data Explorer, SQL: everywhere, the category is a column and a filter.
Sherpa AI and the MCP server use it as their default unit of analysis. Their answers come broken down by page template, with the site-wide figure alongside.
![Rokapi’s visual segment editor on lokoe.fr: the villes rule is expanded to show its two regex patterns on the URL path (^/consultant-seo-[^/]+$ and ^/villes$). On the right, a row of colored badges gives each category’s share: blog 57.9%, villes 20.1%, veille 10.2%, learn 7.5%, services 3.1%, outils 0.8%, uncategorized 0%. The table shows each URL’s category.](/media/MEDIA-FEAT-SEG-01.webp)