DEV Community

Maciek Chmura
Maciek Chmura

Posted on

How to check if ChatGPT recommends your product (and script the test)

Your buyers now ask ChatGPT "what's the best tool for X?" before they ever open Google. If your product isn't in that answer, you lose the visit before it happens, and nothing in your analytics tells you.

The good news: you can check this yourself in under an hour. The short version is:

  1. Ask the questions your buyers ask, without your product's name in them.
  2. Ask each one several times, in fresh chats.
  3. Write down who gets named, in what position, and which sources get cited.
  4. Repeat the same questions later and compare.

Below is the step-by-step version, plus a small script so you can run the test from your terminal instead of copy-pasting into a chat window.

Step 1: Don't ask about yourself

"What do you think of Acme Monitoring?" is the wrong test. Your name is in the question, so the model will talk about you. That only shows what it knows about you once prompted (still useful, more on that in Step 6).

The real test is the question a stranger asks:

  • "What's the best uptime monitoring tool for a small SaaS team?"
  • "Which error tracking tool should a two-person startup use?"
  • "Alternatives to [the big competitor] that are cheaper?"

If you're missing from those answers, you weren't recommended. That's the number you care about.

Step 2: Write 5–10 buyer questions

Pull them from real sources, not from your head:

  • Sales calls and demo notes ("we were looking for something that…")
  • Support tickets and onboarding emails
  • Search Console queries that already bring you traffic
  • Reddit, Quora and community threads in your niche

Cover a few shapes of question:

  • "Best" question: best [category] for [who buys it]
  • Problem question: the pain that sends someone looking ("how do I stop my cron jobs failing silently?")
  • Alternative question: alternatives to [competitor]
  • Constraint question: budget, team size, stack, country
  • Comparison question: [you] vs [competitor]. This one contains your name, so read it for how you're described, not whether you appear.

If you sell in more than one country, write the questions in your buyers' language and add where they are ("I'm based in Poland"). Answers for a Polish buyer and a UK buyer can name different brands.

Save the list in a file. You'll reuse exactly the same questions next month. Changing the wording breaks the comparison.

Step 3: Use a clean session

Your own ChatGPT account remembers what you work on. If you've spent months chatting about your product, it may show up for you and nobody else.

  • Use a private window, logged out, or a new chat with memory off.
  • Note whether web search was on. Answers with web search pull from current pages. Answers without it lean on what the model learned in training. They can differ a lot, so test both if you can and label which is which.

Step 4: Ask each question 3–5 times

This is the step people skip. AI answers change from one ask to the next. One answer where you appear isn't proof you always do, and one answer where you're missing isn't proof you never are.

Ask every question 3–5 times, in a new chat each time. Don't argue or follow up. The first answer is the data point.

Step 5: Log four things per answer

A spreadsheet is enough. One row per answer:

Column What to write
date, engine, mode e.g. 2026-11-17, ChatGPT, web search on
question, run # the exact question, 1–5
brands named in the order they appear
you named? position? yes/no, and 1st / 3rd / "as an alternative"
tone recommended, neutral, or with caveats
sources cited the domains, if shown

Then score it:

  • Mention rate: "named in 7 of 20 answers". Keep the raw count so the sample size stays visible.
  • Competitor gap: every brand named more often than you, with its count.
  • Cited sources: count every domain. The top ones are the pages AI reads about your category. Usually review sites, comparison posts and forums, not anyone's homepage. That's where a mention of you needs to exist.

Step 6: Check what it says about you

Now ask directly: "What is [your product]? Who is it for? How much does it cost?"

Compare the answer with your real facts. Look for an outdated price, a feature you removed, the wrong category, or a mix-up with a similarly named company. Write each mistake down. Wrong facts are often easier to fix than missing mentions, because you know exactly which page needs to say the right thing clearly.

Script it: run the test from your terminal

Copy-pasting 40 prompts gets old fast. Here's a small Python script that asks each question several times through the OpenAI API and counts who gets named.

One honest caveat first: the API is not the ChatGPT app. The app adds its own system prompt, memory and sometimes web search. API answers are a useful, repeatable proxy, not a copy of what a buyer sees. Use the script to track trends over time, and spot-check in the app.

# check_ai_mentions.py
# pip install openai
import csv, datetime, os, re
from collections import Counter
from openai import OpenAI

client = OpenAI()  # reads OPENAI_API_KEY from env
MODEL = os.environ.get("MODEL", "gpt-4o-mini")
RUNS = 3

QUESTIONS = [
    "What's the best uptime monitoring tool for a small SaaS team?",
    "Which error tracking tool should a two-person startup use?",
    "What are cheaper alternatives to BigCompetitor for monitoring?",
]
# Your brand first, then competitors. Add spelling variants.
BRANDS = {
    "Acme Monitoring": ["acme monitoring", "acme"],
    "BigCompetitor": ["bigcompetitor"],
    "OtherTool": ["othertool", "other tool"],
}

def brands_in(text):
    low = text.lower()
    found = []
    for brand, variants in BRANDS.items():
        positions = [m.start() for v in variants
                     for m in re.finditer(r"\b" + re.escape(v) + r"\b", low)]
        if positions:
            found.append((min(positions), brand))
    return [b for _, b in sorted(found)]  # in order of first appearance

today = datetime.date.today().isoformat()
mentions = Counter()
total = 0

with open(f"ai-mentions-{today}.csv", "w", newline="") as f:
    w = csv.writer(f)
    w.writerow(["date", "model", "question", "run", "brands_in_order", "answer"])
    for q in QUESTIONS:
        for run in range(1, RUNS + 1):
            resp = client.responses.create(model=MODEL, input=q)
            text = resp.output_text
            named = brands_in(text)
            mentions.update(named)
            total += 1
            w.writerow([today, MODEL, q, run, " > ".join(named), text])

print(f"{total} answers from {MODEL}")
for brand in BRANDS:
    print(f"{brand:20} named in {mentions[brand]} of {total}")
Enter fullscreen mode Exit fullscreen mode

Run it:

export OPENAI_API_KEY=...
python check_ai_mentions.py
Enter fullscreen mode Exit fullscreen mode

A few notes:

  • The script saves the full answer text in the CSV. Read some of them. A brand can be named as "avoid this one", and string matching won't tell you that.
  • Brands you didn't list won't be counted. Skim the answers for names you've never heard of. Those are competitors you're not tracking yet.
  • Commit the CSVs to a repo, or drop them in a folder by date. A diff between two months is more useful than any single run.
  • Want other engines? Gemini and Perplexity both have APIs. Wrap each in a function that takes a question and returns text, and loop over them. Measure each engine on its own. A brand can be strong in one and missing in another.

What to do with the results

Your log usually points at one of three problems:

  1. You're missing, and the same competitors keep winning. Look at the cited sources. Get your product into the comparison posts, directories and threads AI keeps reading. Publish an honest comparison page for the questions you lose.
  2. You're named, but low or with caveats. Read the caveats. They usually repeat something real (pricing confusion, a missing feature, an old complaint). Fix the product or say it clearly on your site.
  3. The facts about you are wrong. Put the correct price, category and feature list on one clear page, in plain sentences, and update the places that still carry the old version.

Then re-run the same questions in a few weeks and compare the counts. Don't expect quick changes. You're moving a sample, so look for a trend across several runs, not one good answer.

Wrapping up

Checking whether ChatGPT recommends your product isn't magic. It's a fixed list of buyer questions, asked several times in a clean session, with the results written down. Do it once by hand so you understand the answers, then script it so you'll actually repeat it.

I'm building AI Brand Scan, which runs this kind of check for you across buyers' languages and markets and turns the gaps into a ranked fix list. The one-time scan only covers 10 prompts on two answer sources, so treat it as a sample.

Top comments (0)