Skip to main content
Internal Service β€” This is not an HTTP endpoint. It’s called directly by the generate-all orchestrator.

Purpose

Generates /llms/{product-slug}.txt files for discovered products and deploys them to Vercel. Runs in GROUP 2c (parallel with GROUP 2a and 2b, after GROUP 1a + 1b + 1d complete).

Shared Service

This task uses the shared generate_product_llms_txt service:
The same service is used by:
  • Onboarding (this task - GROUP 2c)
  • Cron (discover-products)
  • Cron (generate-product-llms-txt standalone endpoint)

Function Signature

Parameters

Returns

Execution Flow

Product LLMs Architecture

This architecture scales to thousands of products:
  • Root llms.txt stays small (~3KB)
  • Each product gets its own file (~1-2KB)
  • Product files are fetched on-demand for AI article generation

Code Location

Error Handling

If product llms generation fails, onboarding continues - products are still saved and prompts are still generated.