Purpose
Detects content changes on a website using an efficient 2-stage approach that minimizes Firecrawl costs:- Hashing Service - Fetch raw HTML directly (free) and compare hashes
- Batch Scrape - Only scrape pages that actually changed (paid)
Architecture
Detection Logic
- Get stored data - Retrieve
site_map(URL list) andpage_hashesfrom ai_sites - Map current URLs - Use custom mapper to get current URL list [FREE]
- Compare URL lists - Find new URLs, removed URLs, existing URLs
- Fetch + Hash existing pages - Use hashing service to get raw HTML and hash [FREE]
- Compare hashes - Find which existing pages changed
- Batch scrape - Only scrape NEW + CHANGED pages with Firecrawl [PAID]
Cost Optimization
Example: Site with 100 pages, 3 changed
- Old approach: 100 × 1.00
- New approach: 3 × 0.03
Response Format
Change Categories
Code Location
Used By
- Daily cron job for site freshness
- Triggers
update-ai-sitewhen changes found - Triggers
discover-products-from-changesfor new pages