Skip to main content
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, if products Γ— 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

Contains run_product_prompts() for GROUP 2b.

Skipped Scenarios

Product prompts are skipped if:
  1. No products were discovered in GROUP 1d
  2. Product discovery failed
  3. Products don’t have valid entity IDs