Internal Service β This is not an HTTP endpoint. Itβs called directly by the
generate-all orchestrator.Purpose
Generates visibility prompts for each discovered product. These are product-specific search queries that potential customers might use to find products like this. Runs in GROUP 2b (starts when GROUP 1a + 1b + 1d complete, runs in parallel with GROUP 2a and 2c).Function Signature
Parameters
Returns
Prompt Generation Strategy
All prompts are tied to products:Minimum 50 Logic
During onboarding, ifproducts Γ 5 < 50, prompts per product is increased:
Execution Flow
Product-Specific Prompts
Uses Gemini with product context:Database Storage
Prompts are linked to the product entity:Code Location
run_product_prompts() for GROUP 2b.
Skipped Scenarios
Product prompts are skipped if:- No products were discovered in GROUP 1d
- Product discovery failed
- Products donβt have valid entity IDs