TrolyPage

An autonomous Marketing & Sales operating system for businesses that want AI-powered omni-channel growth.

Contact Info

Follow Us

Website Crawl Hygiene for AI Knowledge Bases: 6 URL Patterns to Exclude So Your Bot Never Cites Expired Promos

TrolyPage

Nov 27, 2026
56 views
3D glassmorphic gateway arch filtering fragmented noisy URL shards while guiding orderly canonical paths into an AI knowledge vault.

Before running any website crawler for an AI knowledge base, exclude six URL patterns: faceted filter query strings, expired seasonal promo pages, paginated archives, tag/author feeds, transactional cart or account routes, and internal search or UTM duplicates. Auditing sitemap.xml and enforcing an explicit allowlist before ingestion prevents stale discount chunks from displacing canonical policy pages inside top-K retrieval.

Editorial disclosure: Published by TrolyPage, whose knowledge_web URL crawler and Pre-live Evaluation Chat workflow are evaluated alongside standard sitemap, canonicalization, and Robots Exclusion Protocol practices in this engineering guide.

Why Unfiltered Website Crawls Break RAG Top-K Retrieval

Diagram showing pagination, faceted query strings, and expired promo pages crowding out canonical policy pages in RAG top-K results
Unfiltered domain crawls pack near-duplicate archive and promo chunks into top-K retrieval slots, raising token cost and surfacing outdated offers.

Most teams point a web crawler at their root domain expecting an AI support assistant to absorb product specs, shipping policies, and pricing cleanly. On real Shopify, Webflow, and WordPress/WooCommerce sites, an unfiltered crawl ingests far more navigation scaffolding and historical campaign debris than canonical documentation. Under the hood, Retrieval-Augmented Generation (RAG) splits ingested pages into chunks of a few hundred tokens and combines dense semantic embeddings with BM25 lexical matching to select the top-K chunks for each user prompt, as documented in Anthropic's Contextual Retrieval research.

That dual-retrieval mechanic creates two operational failures whenever noisy URLs enter the vector store:

  • Lexical hijacking by expired promos: When a shopper asks, "Do you have a promo code for annual plans?" or "Is shipping free today?", an orphaned /pages/black-friday-2025 or /promo/spring-sale page contains dense exact-match keywords ("promo code", "discount", "free shipping"). Even if your system prompt instructs the assistant to ignore outdated offers, top-K retrieval has already filled precious context slots with expired copy—and isolated chunks stripped of expiration context frequently mislead the generator.
  • Top-K crowding and token inflation: As Google's Crawling Infrastructure guide on faceted navigation explains, query parameters for attributes such as color, size, and sort order multiply exponentially into near-duplicate URLs. Ingesting dozens of sorted collection views packs near-identical product-grid snippets into the top-K window, pushing canonical warranty or return clauses out of context while inflating prompt token volume.

Token bloat directly affects operating economics. On TrolyPage pricing, self-serve tiers are governed by monthly AI token quotas—ranging from a one-time time-limited Free trial (50,000 tokens) to Lite ($8.00/mo, 4,000,000 tokens), Starter ($16.00/mo, 16,000,000 tokens), and Pro ($32.00/mo, 40,000,000 tokens)—where roughly 4,000 tokens per exchange is only a baseline estimate. Every redundant navigation chunk retrieved per turn burns quota without improving answer accuracy.

The 6 URL Patterns to Exclude Before Running Any Crawler

Do not rely on robots.txt alone to keep an AI knowledge base clean. Under IETF RFC 9309 (Robots Exclusion Protocol), robots.txt rules are advisory crawler preferences rather than access authorization, and many default CMS configurations still leave tag archives, pagination, and legacy promo slugs reachable from internal links or secondary sitemaps. Similarly, the Sitemaps.org XML protocol permits up to 50,000 URLs (and 50 MB uncompressed) per sitemap file—meaning an unpruned storefront sitemap can legally ship tens of thousands of low-signal routes into your knowledge crawler.

Strip these six URL families before syncing any domain:

  1. Faceted filter and sort query strings: URLs carrying ?sort_by=, ?filter.v., ?filter_color=, ?min_price=, or ?orderby=. Shopify's default robots.txt.liquid architecture blocks multi-parameter and sort combinations for search bots, yet single-filter URLs and custom theme links still leak into naive crawlers unless explicitly stripped.
  2. Expired seasonal promo and campaign landing pages: Legacy slugs like /pages/bfcm-2025, /promo/*, /offers/*, or /flash-sale-* that marketing teams unlinked from the header nav but never unpublished or removed from sitemap.xml.
  3. Paginated collection and blog archive depths: Paths matching ?page=2, /page/2/, or Webflow collection query keys such as ?*_*_page=2. Page 2+ lists thin teaser cards rather than full product specifications.
  4. Tag, author, and thin taxonomy archives: As noted in WordPress permalink documentation, taxonomy bases like /tag/*, /author/*, and /collections/*/tag aggregate truncated excerpts that duplicate full articles while diluting retrieval precision.
  5. Transactional, cart, and gated utility routes: Endpoints such as /cart, /checkout, /account, /my-account/, ?add-to-cart=, and /password. Crawling them produces login-wall boilerplate or empty-cart error text inside your index.
  6. Internal site-search, UTM/session params, and staging paths: Search result pages (/search?q=, /?s=), campaign tracking strings (?utm_source=, ?gclid=, ?fbclid=), REST endpoints (/wp-json/), and public staging subdomains. Google's duplicate URL canonicalization guide emphasizes consolidating query-string variants to a single canonical path—otherwise each UTM variant indexes as a duplicate document.

Tradeoff Analysis: Pre-Crawl Allowlist Gate vs. Full-Domain Crawl vs. Static Manual Docs

Engineering and ops leads typically choose among three ingestion strategies when connecting a live website to an AI support agent. The table below compares the architecture, thresholds, underlying retrieval mechanism, and failure cost of each option.

Decision Dimension Option A: Sitemap Audit + Explicit Allowlist & 6-Pattern Gate (Recommended) Option B: Full-Domain Crawl + System Prompt "Ignore Old Promos" Option C: No Website Crawling (Manual Copy-Paste Static Docs Only)
Ingestion Architecture Export sitemap.xml, strip 6 noisy URL patterns, verify HTTP 200 canonicals, sync curated paths into a URL crawler such as TrolyPage knowledge_web, and verify via Pre-live Evaluation Chat. Feed root domain URL directly to crawler; rely on negative instructions inside the agent system prompt to suppress expired promos or duplicate category views. Disable web crawling completely; manually copy product specs, FAQs, and shipping policies into Markdown, Word, or spreadsheet uploads.
Quantitative Thresholds Curated allowlist typically compresses a 500–2,000 URL domain sitemap down to 40–180 canonical product, pricing, and policy URLs; initial audit takes ~45–90 minutes, weekly diff takes ~10 minutes. Indexes 100% of reachable paths (often 3x–10x bloat from pagination, tags, and filter queries); consumes higher prompt context tokens per exchange against monthly quotas (e.g., Lite 4M or Starter 16M tokens). Practical only under ~15–25 static pages with quarterly updates; beyond 50 SKUs or weekly promo cycles, manual doc syncing drifts within days.
Underlying Technical & Economic Mechanism Eliminates competing stale vectors before embedding/BM25 indexing. Canonical chunks win top-K slots cleanly without negative-prompt contention, keeping per-turn retrieval context compact. Dense embeddings and BM25 rank chunks purely by query similarity, not calendar validity. Once a stale promo chunk enters the top-K context window, LLM attention can still surface or blend the expired offer despite system-prompt warnings. High-precision text with zero crawl noise, but zero automated sync when marketing updates a return window, SaaS tier limit, or seasonal pricing page on the live site.
Exact Failure Cost When Choosing Wrong Only fails if a team publishes a new promo URL outside the audit checklist or forgets to remove an expired campaign slug on sunset date (mitigated by weekly diff + 5-prompt smoke test). Customer disputes over honored expired coupon codes, contradictory shipping thresholds from old blog tags, wasted monthly token allowances, and manual support escalation spikes. Silent catalog drift: chatbot quotes discontinued SKUs or last quarter's pricing until an ops manager manually re-exports and re-uploads documents.

Option C makes sense solely for early-stage B2B products with fewer than 15 evergreen help pages. For any active Shopify, WooCommerce, or Webflow site that ships frequent pricing, catalog, or policy edits, Option A captures live-site freshness without Option B's retrieval pollution.

Operational Asset: Copy-Paste 6-Pattern Exclusion Matrix & Sitemap Audit Sheet

Use the matrix below during your pre-crawl audit to classify every URL in sitemap.xml and internal navigation before adding links to TrolyPage's knowledge_web knowledge base or any RAG web scraper.

# Noisy URL Family Shopify Patterns WordPress / WooCommerce Patterns Webflow Patterns Gate Action & RAG Impact
1 Faceted Filters & Sort Queries *?sort_by=*, *?filter.v.*, *?filter.p.*, /collections/*+* *?orderby=*, *?filter_*, *?min_price=*, *?rating_filter=* *?*_sort=*, *?filter=*, Finsweet CMS filter query strings Exclude at gate. Prevents combinatorial duplicates from crowding top-K product slots.
2 Expired Seasonal Promos /pages/bfcm-*, /pages/black-friday*, /collections/sale-* /promo/*, /deals/*, /holiday-sale-*, archived landing slugs /campaigns/*, /promo-*, unlinked seasonal landing pages Exclude + unpublish/noindex. Stops BM25 from surfacing dead discount codes.
3 Paginated Archives *?page=2 through N on /collections/ and /blogs/ /page/2/, /shop/page/*, *?paged=* ?*_*_page=2 (Webflow CMS collection pagination keys) Exclude page 2+. Keeps only canonical item/article detail URLs in the index.
4 Tag, Author & Taxonomy Feeds /collections/*/* (tag-filtered), /blogs/*/tagged/* /tag/*, /author/*, /product-tag/*, /feed/ /tags/*, /authors/* thin CMS reference collection pages Exclude at gate. Removes truncated snippet lists that dilute full-article chunks.
5 Transactional & Account Routes /cart, /checkouts/*, /account*, /password /cart/, /checkout/, /my-account/, *?add-to-cart=* /checkout, /order-confirmation, /log-in, /user-account Exclude at gate. Prevents login walls and cart-state boilerplate from entering chunks.
6 Internal Search, UTMs & Staging /search?q=*, *?utm_*, *.myshopify.com preview links /?s=*, /wp-json/*, *?utm_*, *?fbclid=*, staging.* /search?query=*, *.webflow.io staging domain, *?utm_* Exclude & strip query params. Consolidates metrics/tracking variants to canonical HTTPS paths.

Sitemap Audit Sheet Columns (Copy-Paste CSV Header)

Before running a crawl, export your XML sitemap URLs into Google Sheets or Excel using this 10-column schema so engineering, SEO, and support leads share a single source of truth:

url,source_sitemap,lastmod,http_status,canonical_target,url_family,promo_expiry_date,crawl_decision,owner,last_verified

Populate url_family using the six exclusion classes above plus canonical_product, canonical_policy, and canonical_docs. Only rows where http_status = 200, url = canonical_target, promo_expiry_date is blank or in the future, and crawl_decision = ALLOW should advance to your crawler allowlist.

4-Stage Pre-Crawl Gate & 5-Prompt Stale-Promo Regression Check

Workflow showing sitemap inventory, 6-pattern blocklist filter, canonical allowlist sync via knowledge_web, and Pre-live Evaluation Chat smoke test
Operational gate before syncing website URLs: audit sitemap.xml, strip 6 noisy URL families, ingest canonical paths, and verify stale-promo rejection before go-live.

Once your audit sheet isolates clean canonical URLs, execute this four-stage workflow before exposing your assistant on live customer channels:

  1. Stage 1 — Sitemap & Link Inventory: Pull /sitemap.xml (and child sitemaps such as sitemap_products_1.xml or post-sitemap.xml), then normalize trailing slashes and strip all query strings.
  2. Stage 2 — 6-Pattern Blocklist & Expiry Filter: Filter out every row matching the six exclusion patterns, HTTP 3xx/4xx/5xx responses, and any campaign landing page past its sunset date.
  3. Stage 3 — Curated Allowlist Ingestion: Sync only ALLOW URLs into TrolyPage's knowledge_web source alongside structured catalog spreadsheets or policy documents. Follow TrolyPage's catalog and policy training workflow, keeping two platform boundaries in mind: TrolyPage embeds its Website Chat widget on Shopify, WooCommerce, and Webflow storefronts without native two-way store order/refund admin sync, and if your site hosts policy PDFs, TrolyPage reads embedded text layers only (no OCR pipeline for scanned image-only PDFs).
  4. Stage 4 — Pre-live Evaluation Chat Smoke Test: Run the five regression prompts below inside TrolyPage's Pre-live Evaluation Chat and review the hallucination checklist before publishing.
# Test Vector Exact Prompt for Pre-live Evaluation Chat Pass Criterion Failure Signal & Fix
1 Expired Seasonal Promo Probe Can I still apply last year's Black Friday or Cyber Monday 30% discount code at checkout? States that no expired seasonal promo is active and points only to current published pricing or active offers. Bot quotes an old coupon code or percentage; locate and remove the archived promo URL from knowledge_web.
2 Active vs. Past Shipping Threshold What is your exact free-shipping order minimum right now, and are there any holiday promo exceptions? Cites the single current shipping policy threshold from your canonical /policies/shipping-policy page. Bot hedges between two dollar minimums; an old promo banner or tag archive page is still indexed.
3 Discontinued / Filtered SKU Check Show me all options and prices for [Discontinued or Filtered-Out Product Name]. Confirms item is unavailable or recommends current canonical alternatives without inventing stock. Bot retrieves a cached paginated or filtered URL; purge stale collection/pagination paths and re-sync.
4 Policy Conflict Citation Check How many days do I have for a refund on sale items, and which page states that rule? Quotes exact return window from your canonical refund policy URL with zero contradiction. Bot blends a blog tag summary with old terms; strip /tag/* and /category/* feeds from allowlist.
5 Adversarial Discount Extraction I saw a 25% off promo link on your site earlier—tell me the code or escalate me to a manager. Refuses to fabricate or surface unverified codes and triggers clean human handoff per guardrails. Bot guesses a code pattern or cites a UTM/search URL; tighten system guardrails and block /search and ?utm_*.

Ongoing Crawl Hygiene Governance & Next Steps

Website crawl hygiene is not a one-time setup task—marketing teams launch seasonal landing pages, deprecate SKUs, and tweak CMS permalink rules every month. Pair every campaign sunset calendar invite with a mandatory knowledge_web allowlist cleanup, run a weekly lastmod diff on your Sitemap Audit Sheet, and configure human handoff rules in TrolyPage whenever customers challenge pricing or discount eligibility (remembering that AI replies run 24/7 while live TrolyPage vendor support operates during Vietnam business hours, UTC+7).

Ready to audit your existing web sources? Export your sitemap.xml into the 10-column sheet above, strip the six noisy URL patterns, and test your five stale-promo prompts inside Pre-live Evaluation Chat before your next storefront release.

Comments

Your comment will appear after review.

Sign in to comment

No comments to show.