Internal Service β This is not an HTTP endpoint. Itβs called directly by the
generate-all orchestrator.Purpose
Generates 40 visibility prompts using Gemini 3 Flash. These prompts are search queries that potential customers might use to find businesses like this one. Runs in GROUP 2a (parallel with other tasks after scrape completes).The total is 50 business prompts: 10 come from GROUP 1c (Exa, pre-tested) + 40 from this service.
Function Signature
Parameters
| Parameter | Type | Description |
|---|---|---|
url | str | The website URL |
org_slug | str | The Clerk organization slug |
prompt_count | int | Number of prompts to generate (typically 40) |
pages | list | Pre-scraped pages from GROUP 1a |
Returns
Prompt Generation
Uses Gemini 3 Flash to analyze the scraped content and generate diverse prompts:Prompt Categories
| Category | Example |
|---|---|
| Discovery | βWhat tools help with X?β |
| Comparison | βBest alternatives to Yβ |
| Recommendation | βWhich service should I use for Z?β |
| Problem-solving | βHow do I solve X problem?β |
| Feature-specific | βSoftware with X featureβ |
Database Storage
Prompts are saved toentity_prompts_tracker:
These prompts are NOT pre-tested. They get tested by the daily visibility cron job.