Skip to main content
Use the Web Connector to ingest content from web pages into the mAItion knowledge base. It supports two mutually exclusive modes: scraping a fixed list of URLs, or discovering URLs from a sitemap.

What It Does

  • fetches and scrapes content from web pages
  • converts HTML to text for indexing
  • for sitemap mode, discovers all URLs listed in a sitemap.xml (including sitemap indexes)
  • runs ingestion on configurable schedules

Environment Variables

Set these in .env.rag: URLs mode:
  • WEB1_URLS: comma-separated list of URLs to scrape
  • WEB1_SCHEDULES: ingestion interval in seconds (default is 3600)
Sitemap mode:
  • WEB2_SITEMAP_URL: URL of the sitemap.xml to parse
  • WEB2_INCLUDE_PREFIX: (optional) only ingest URLs with this path prefix — mutually exclusive with WEB2_EXCLUDE_PREFIX
  • WEB2_EXCLUDE_PREFIX: (optional) skip URLs with this path prefix — mutually exclusive with WEB2_INCLUDE_PREFIX
  • WEB2_SCHEDULES: ingestion interval in seconds (default is 3600)

config.yaml Example

.env.rag Example

Configuration Reference

Multiple Web Sources

Add more sources entries (web3, web4, etc) with separate env vars per source.