Prompt discovery
PromptDiscovery.discover({ brand, category, competitors? }) generates five template-based prompt clusters — the realistic questions people actually ask AI engines about a category — with no AI call and no API key needed to produce the prompts themselves. It's the first step of brand measurement, and useful on its own for planning what to query before spending any API credits.
The five clusters
| Cluster | Count | Example |
|---|---|---|
discovery | 5 | "best CRM software in 2026" |
comparison | 4 per competitor, capped at 10 | "Acme CRM vs HubSpot" |
commercial | 5 | "cheapest CRM software" |
problem | 5 | "how to manage customer relationships" |
recommendation | 3 | "recommend a CRM software" |
comparison is omitted entirely (not emitted as an empty array) when no competitorsare given. Its 10-prompt cap fills competitor-by-competitor, not template-by-template, so a cut favors breadth across competitors over exhausting one competitor's four templates first — with 3 competitors, that's roughly 4/3/3 rather than 4/4/2.
Two of the five problem prompts ("how to {verb}", "best way to {verb}") need a verb phrase for the category — "CRM software" → "manage customer relationships" — looked up in a plain keyword table, not AI-inferred. When a category has no mapping, those two prompts fall back to generic, verb-free alternatives so the cluster still returns 5 prompts either way.
CLI: discover
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
PROMPT DISCOVERY
Acme CRM — CRM software
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
DISCOVERY
- best CRM software in 2026
- top CRM software tools
- what is the best CRM software
- CRM software recommendations
- most popular CRM software
COMPARISON
- Acme CRM vs HubSpot
- HubSpot alternatives
- is Acme CRM better than HubSpot
- Acme CRM or HubSpot which is better
- Acme CRM vs Pipedrive
- Pipedrive alternatives
- is Acme CRM better than Pipedrive
- Acme CRM or Pipedrive which is better
COMMERCIAL
- cheapest CRM software
- CRM software for small business
- CRM software pricing comparison
- free CRM software tools
- best value CRM software
PROBLEM
- how to manage customer relationships
- best way to manage customer relationships
- CRM software for beginners
- how to choose a CRM software
- what to look for in a CRM software
RECOMMENDATION
- recommend a CRM software
- what CRM software do you recommend
- suggest a good CRM software
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
26 prompts across 5 clusters--json prints the same clusters as plain data instead of the formatted list above — useful for piping into your own tooling, or for eyeballing exactly what measure is about to query before spending any API credits.
No API keys needed
discover is pure templating — no network call, no configured engine, no crawlpod.config.jsrequired. It's the one command in the measurement suite that works with zero setup, which makes it a reasonable first command to run before deciding whether to configure any BYOK keys at all. Programmatically:
import { PromptDiscovery } from "ai-visibility/prompts";
const { clusters } = PromptDiscovery.discover({
brand: "Acme CRM",
category: "CRM software",
competitors: ["HubSpot", "Pipedrive"], // optional
locale: "en-US", // optional, default "en-US"
});
// clusters: { type: "discovery" | "comparison" | "commercial" | "problem" | "recommendation", prompts: string[] }[]Once you have a prompt list, brand measurement is the next step — it feeds these prompts to your configured engine adapters with repeated sampling and reports mention/recommendation rates with confidence intervals.