Skip to main content
POST
Performs a complete regeneration of an existing AI site using the new onboarding flow with Firecrawl agent for business info extraction.
This endpoint performs a full rebuild. Use with caution in production.

When to Use

  • 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.

New Architecture

This endpoint now uses the same flow as onboarding:
Key Change: Business info from Firecrawl agent is used for LLM content generation (llms.txt, Q&A pages, data.json). Scraped pages are ONLY used for markdown replica generation.

Request Body

string
required
The org_slug / business ID (e.g. β€œthe-ai-teddy-bear-company-1767082986”)
string
Source website URL. Optional - will use URL from database if not provided.
integer
Maximum pages to scrape. Default: 5000

Response

string
β€œsuccess” or β€œerror”
string
The AI site URL (unchanged from before)
string
The business name from database
integer
Number of pages scraped from source
integer
Number of files generated
integer
Number of Q&A pages generated
integer
Number of markdown replica pages generated

Process Steps

Step 1a and 1b run in parallel for faster execution. The rest runs sequentially.

Content Generation Sources

Files Generated

LLM-Generated Content (from business_info)

Q&A Pages (from business_info)

Markdown Replica Pages (from scraped pages)

Static Templates

Business Info Schema

The Firecrawl agent extracts this structured data:

Code Location

Key Imports