Skip to main content

Architecture

The generate-all endpoint is a thin orchestrator that coordinates internal services. It returns immediately and runs all tasks in the background.

Execution Groups

Key Architecture Change: Business info from Firecrawl agent (GROUP 1a) is used for LLM content generation (llms.txt, Q&A pages, data.json). Scraped pages (GROUP 1b) are ONLY used for markdown replica generation.
GROUP 2 runs in parallel - All three tasks (2a, 2b, 2c) start simultaneously once their dependencies are ready.

Internal Services

Each service is documented on its own page:

Prompt Generation

All prompts are now tied to products: During onboarding, if there are fewer than 10 products, prompts per product is increased to ensure at least 50 total prompts.

Data Flow

Code Location

Testing Individual Services

Each service can be tested independently via pytest: