Skip to main content

Purpose

Updates an AI website with content changes detected by detect-changes. Uses three parallel Gemini calls (same pattern as onboarding) for consistency and better results.

Architecture

Three Parallel Gemini Calls

All three calls run in parallel using asyncio.gather() for speed.

Request Body

Takes the output from detect-changes:

What Gets Updated

Efficiency

Only new_pages and changed_pages have markdown content (from Firecrawl batch scrape). unchanged_pages are NOT scraped - they keep their existing hashes. This means:
  • Gemini only processes changed content
  • Replica pages only regenerated for changed pages
  • Unchanged content is preserved

Response Format

Code Location

Next Step

After update, call submit-indexnow with changed_urls to notify search engines.