Skip to main content

POST /api/cron/regenerate-fresh-website

Performs a FULL rebuild of an existing AI site using the new onboarding flow with Firecrawl agent for business info extraction.

Purpose

Use this endpoint when you want to:
  • Regenerate content with fresh LLM output
  • Fix issues with an existing AI site
  • Test changes to the generation pipeline
This is different from update-site which only does incremental updates when source website content changes.

Architecture

Key Change: Business info from Firecrawl agent is used for LLM content generation. Scraped pages are ONLY used for markdown replicas.

Request Body

Pipeline Steps

Steps 1a and 1b run in parallel using asyncio.gather().

Content Sources

Response Fields

Example Request

Code Location

Key Imports