Purpose
Updates an AI website with content changes detected bydetect-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 fromdetect-changes:
What Gets Updated
Efficiency
Onlynew_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, callsubmit-indexnow with changed_urls to notify search engines.