Skip to main content
Generate visibility tracking prompts for products. This is the second step in the product pipeline:
  1. discover-products - Extract products from content
  2. generate-product-prompts (this endpoint) - Generate visibility prompts
  3. generate-product-llms-txt - Generate llms files for products

How It Works

Request Body

FieldTypeRequiredDescription
business_idstringYesClerk org ID
productsarrayYesProducts from discover-products output

products Array

FieldTypeDescription
namestringProduct name
entity_idstringProduct entity UUID
urlstringProduct URL

Response

{
  "status": "success",
  "products_processed": 3,
  "prompts_generated": 30
}

Prompt Generation

For each product, Gemini generates 10 search queries that users might use to find this product:
Product: AI Teddy Bear
URL: https://example.com/products/teddy

Generated prompts:
1. "best talking teddy bear for kids"
2. "AI stuffed animals with voice recognition"
3. "interactive plush toys that respond"
...

Configuration

ConstantValueDescription
PROMPTS_PER_PRODUCT10Prompts generated per product

Database Updates

TableAction
entity_prompts_trackerInsert 10 prompts per product

Code Location

src/app/apis/cron/generate_product_prompts/routes.py