Prompt
I’m building a tool to detect when AI stops mentioning our brand, how do I design that?
Latest observation
You can design this as an “AI brand visibility” monitoring system: track whether major AI assistants and LLM outputs mention your brand when users ask category-relevant questions.
1) Define what “stops mentioning our brand” means
Be specific, because different failure modes need different detection:
- No mention at all: model answers without naming your brand.
- Mentions competitors only: your brand is omitted in a comparison or recommendation set.
- Mention frequency drops: brand appears less often over time for the same query set.
- Rank/position changes: brand still appears, but later in the list or less prominently.
- Sentiment changes: brand is mentioned, but negatively.
Pick one primary metric first, usually:
- Brand Mention Rate (BMR) = % of relevant prompts where brand is mentioned.
2) Create a prompt set that reflects real user intent
Build a library of queries users would ask where your brand should reasonably appear.
Group prompts by intent:
- Category discovery: “best CRM for small business”
- Comparison: “X vs Y”
- Use case: “tool for invoicing freelancers”
- Alternative/replacement: “alternatives to Salesforce”
- Transactional: “best email platform with automation”
- Problem-solving: “how to reduce support ticket response time”
For each prompt, define:
- expected category
- your brand’s relevance
- competitor set
- whether mentioning your brand is a “must-mention” or “nice-to-mention”
3) Test across multiple models and surfaces
Different AI systems behave differently, so monitor several:
- ChatGPT / OpenAI models
- Claude
- Gemini
- Perplexity
- Copilot
- Search AI overviews / summaries if relevant
- Vertical assistants in your domain
Run prompts:
- on a schedule
- with variations
- from multiple geographic locales if important
- with and without conversation history
4) Capture outputs in a structured way
Store each run with:
- prompt text
- model / version
- date/time
- locale
- temperature and settings
- raw response
- parsed mentions
- links/citations if present
- ranking/order of mentions
- sentiment / context
Use a schema like:
{
"prompt_id": "crm_small_business_01",
"model": "gpt-4.1",
"timestamp": "2026-10-22T12:00:00Z",
"locale": "en-US",
"response_text": "...",
"brand_mentions": [
{
"brand": "YourBrand",
"position": 2,
"context": "recommended for small teams"
}
]
}
5) Detect brand mentions robustly
Simple string matching is not enough.
Use a layered approach:
- Exact matching for brand name variants
- Alias matching for abbreviations, product names, misspellings
- Entity resolution to distinguish your brand from common words
- Contextual disambiguation if the brand name is ambiguous
- Optional: LLM-based extraction to identify mentions in free text
Include:
- brand spelling variants
- product names
- subsidiary names
- common misspellings
- competitor names
6) Define scoring metrics
Start with a few core metrics:
A. Brand Mention Rate
Percent of prompts where brand appears:
BMR = mentions / total prompts
B. Share of Voice
Your mentions vs all brands mentioned in the response:
- useful when there are lists/recommendations
C. Average Mention Position
If the model returns ranked options, track where you appear.
D. Coverage by Intent
Mention rate by prompt type:
- discovery
- comparison
- alternatives
- use case
E. Drift over time
Compare today’s metric to baseline:
- week-over-week
- month-over-month
- after model/version updates
7) Set thresholds and alerts
You want to detect meaningful drops, not noise.
Examples:
- Alert if BMR drops >15% vs 30-day baseline
- Alert if a high-priority prompt set goes below 70% mention rate
- Alert if a new model version changes mention behavior significantly
Use:
- rolling averages
- confidence intervals
- anomaly detection
- model-version-specific baselines
8) Separate model change from your own issues
A drop in mentions may come from:
- model update
- retrieval/indexing changes
- brand website SEO changes
- competitor campaigns
- naming ambiguity
- prompt phrasing changes
Track metadata so you can correlate drops with:
- release notes from AI providers
- your own site/content changes
- PR/SEO changes
- product renames
9) Add competitor benchmarks
To know if you’re losing visibility, compare against competitors.
Track:
- mention rate for each competitor
- relative share of voice
- which prompts favor competitors
- whether the response includes your category at all
10) Build a dashboard
Useful charts:
- mention rate over time
- mention rate by model
- mention rate by prompt category
- top prompts where you disappeared
- competitor comparison
- alerts and anomalies
11) Human review loop
Automated detection should be reviewed on edge cases:
- ambiguous brand names
- sarcastic or malformed answers
- hallucinated mentions
- responses that imply your brand without naming it
Have analysts label:
- mentioned / not mentioned
- correctly mentioned / false positive
- favorable / neutral / unfavorable
- first mention position
Use this labeled data to improve extraction rules.
12) Practical architecture
A simple architecture:
- Prompt generator
- Model runner / API scheduler
- Response collector
- Mention extractor
- Metric calculator
- Anomaly detector
- Dashboard + alerts
Tech stack example:
- Python/Node backend
- Postgres for storage
- Celery / cron for scheduling
- LLM API clients
- Basic NLP/regex + optional LLM classifier
- Metabase / Superset / Grafana for dashboards
- Slack/email alerts
13) Watch out for pitfalls
- Don’t overfit to one prompt phrasing
- Don’t rely only on exact string matching
- Don’t treat “not mentioned” as always bad; some queries legitimately shouldn’t include you
- Don’t mix prompt types in one aggregate metric
- Don’t ignore locale and personalization effects
- Don’t assume one model represents the whole ecosystem
14) A good minimum viable version
If you want an MVP, do this:
- 50–100 prompts across 5 intent categories
- 3–5 AI models
- daily runs
- exact + alias brand matching
- dashboard for mention rate and trend
- alert on 20% drop from 14-day baseline
15) Example logic
Pseudo-logic:
for prompt in prompt_set:
response = run_model(prompt)
mentions = extract_brand_mentions(response.text, brand_dictionary)
record(prompt.id, response.model, response.timestamp, mentions)
daily_bmr = count(prompts_with_brand_mentions) / count(all_prompts)
if daily_bmr < baseline_14d * 0.8:
alert("Brand mention rate dropped")
If you want, I can help you design:
- a data schema,
- an alerting algorithm, or
- a full MVP spec for this monitoring tool.