Skip to content

How-to

Track brand mentions in ChatGPT

To track brand mentions in ChatGPT, ask chatgpt.com the prompts your buyers ask, on a schedule, and record whether each answer names your brand, in what position, and whether it cites your site. PromptGale does the asking: send the prompt with your brand and competitors, and each answer (1.5 credits) comes back with analysis.brands filled in.

Updated

What are the steps?

  1. Write 10 to 50 prompts the way a buyer would type them, not the way you describe your product. Include the comparison and "best X for Y" prompts.
  2. Choose the countries you sell in. Answers differ by country, so track each one separately.
  3. Send each prompt with brand, brandDomains and competitors. The answer comes back with a row per brand.
  4. Store the rows with the date. Run the same prompts every week.
  5. Report mention rate, average position and citations per prompt and over time.

How do I check one prompt?

curl
curl -X POST https://promptgale.com/v1/sync/task \
  -H "Authorization: Bearer $PROMPTGALE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "taskType": "CHATGPT",
    "payload": {
      "prompt": "best coffee subscription for home espresso",
      "country": "US",
      "brand": "Acme Coffee",
      "brandDomains": [
        "acmecoffee.example"
      ],
      "competitors": [
        "Northwind Roasters",
        "Bluebird Beans"
      ]
    }
  }'
Python
import os
import requests

res = requests.post(
    "https://promptgale.com/v1/sync/task",
    headers={"Authorization": f"Bearer {os.environ['PROMPTGALE_API_KEY']}"},
    json={"taskType": "CHATGPT", "payload": {"prompt": "best coffee subscription for home espresso", "country": "US", "brand": "Acme Coffee", "brandDomains": ["acmecoffee.example"], "competitors": ["Northwind Roasters", "Bluebird Beans"]}},
    timeout=300,
)
task = res.json()["data"]
print(task["status"], task["result"]["text"][:300])
Node.js
const res = await fetch('https://promptgale.com/v1/sync/task', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.PROMPTGALE_API_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({ taskType: 'CHATGPT', payload: {prompt: "best coffee subscription for home espresso", country: "US", brand: "Acme Coffee", brandDomains: ["acmecoffee.example"], competitors: ["Northwind Roasters","Bluebird Beans"]} }),
});
const { data: task } = await res.json();
console.log(task.status, task.result.text.slice(0, 300));
Response (excerpt)
{
  "success": true,
  "data": {
    "id": "tsk_3Xb8Kq0Lm2Np4Rs6Tu8Vw0Yz",
    "taskType": "CHATGPT",
    "status": "COMPLETED",
    "country": "US",
    "credits": 1.5,
    "creditsCharged": 1.5,
    "result": {
      "engine": "CHATGPT",
      "text": "For home espresso, these are the subscriptions people recommend most often: 1. Acme Coffee roasts to order and lets you pick the grind for your machine. 2. Northwind Roasters has a wide range of single-origin espresso roasts. 3. Bluebird Beans ships every two weeks and is easy to pause.",
      "sources": [
        {
          "position": 1,
          "url": "https://acmecoffee.example/espresso-subscription",
          "title": "Acme Coffee: espresso subscription",
          "domain": "acmecoffee.example",
          "cited": true,
          "citationNumber": 1
        },
        {
          "position": 2,
          "url": "https://reddit.com/threads/home-espresso",
          "title": "Home espresso subscriptions, compared",
          "domain": "reddit.com",
          "cited": true,
          "citationNumber": 2
        },
        {
          "position": 3,
          "url": "https://northwind.example/espresso-subscription",
          "title": "Northwind Roasters: espresso subscription",
          "domain": "northwind.example",
          "cited": true,
          "citationNumber": 3
        },
        {
          "position": 4,
          "url": "https://homebarista.example/threads/home-espresso",
          "title": "Home espresso subscriptions, compared",
          "domain": "homebarista.example",
          "cited": true,
          "citationNumber": 4
        }
      ],
      "analysis": {
        "status": "ok",
        "brands": [
          {
            "name": "Acme Coffee",
            "role": "target",
            "mentioned": true,
            "mentions": 1,
            "firstPosition": 79,
            "rank": 1,
            "cited": true,
            "citedUrls": [
              "https://acmecoffee.example/espresso-subscription"
            ],
            "shareOfVoice": 33.3
          },
          {
            "name": "Northwind Roasters",
            "role": "competitor",
            "mentioned": true,
            "mentions": 1,
            "firstPosition": 156,
            "rank": 2,
            "cited": true,
            "citedUrls": [
              "https://northwind.example/espresso-subscription"
            ],
            "shareOfVoice": 33.3
          },
          {
            "name": "Bluebird Beans",
            "role": "competitor",
            "mentioned": true,
            "mentions": 1,
            "firstPosition": 229,
            "rank": 3,
            "cited": false,
            "citedUrls": [],
            "shareOfVoice": 33.3
          }
        ]
      },
      "location": {
        "country": "US",
        "locale": "en-US",
        "timezone": "America/New_York"
      }
    }
  }
}

Sample output: the brands, domains and answer are made up (Acme Coffee and its competitors do not exist). The field names and shapes are the real API.

Which fields tell me if ChatGPT mentioned my brand?

analysis.brands[] (one entry for your brand and one per competitor)
FieldMeaning
mentionedWhether the answer names the brand (whole word, case and accent insensitive, aliases from brandAliases).
mentionsHow many times.
rankOrder of first mention among every brand the answer names; 1 is first. Null when not mentioned.
cited, citedUrlsWhether a source is on one of the brand's domains (brandDomains), and which.
shareOfVoice100 times its mentions over the mentions of every brand named.
recommended, sentimentSet when the full analysis runs: send include.analysis: true and check analysis.llm.status.

How do I track it every week?

The script below appends one row per prompt and brand to a CSV. Run it from cron (for example 0 6 * * 1) or any scheduler. For more than a few dozen prompts, use a batch with a webhook instead.

chatgpt_mentions.py
import csv
import datetime
import os
import requests

API = "https://promptgale.com/v1/sync/task"
HEADERS = {"Authorization": f"Bearer {os.environ['PROMPTGALE_API_KEY']}"}
BRAND = "Acme Coffee"
COMPETITORS = ["Northwind Roasters", "Bluebird Beans"]
PROMPTS = [
    "best coffee subscription for home espresso",
    "which coffee subscription lets me choose the grind",
    "coffee subscription gift for someone with a moka pot",
]

today = datetime.date.today().isoformat()
with open("chatgpt_mentions.csv", "a", newline="") as f:
    out = csv.writer(f)
    for prompt in PROMPTS:
        res = requests.post(API, headers=HEADERS, timeout=300, json={
            "taskType": "CHATGPT",
            "payload": {
                "prompt": prompt,
                "country": "US",
                "brand": BRAND,
                "brandDomains": ["acmecoffee.example"],
                "competitors": COMPETITORS,
            },
        })
        task = res.json()["data"]
        if task["status"] != "COMPLETED":
            continue  # still running (HTTP 202) or failed (refunded): read it later with GET /v1/tasks/{id}
        for b in task["result"]["analysis"]["brands"]:
            out.writerow([today, prompt, b["name"], b["mentioned"], b["rank"], b["cited"], ";".join(b["citedUrls"])])

The same payload works on Gemini, Perplexity, Bing Copilot Search, Meta AI, Google AI Overview, and Google AI Mode: change taskType. If you would rather have a finished tool than an API, Plinda is built by the same team.

Questions, answered

Can I see what ChatGPT says about my brand in another country?

Yes. Set payload.country to that market, or payload.state for a US state (+1 credit). The browser asks chatgpt.com from there.

How do I know if ChatGPT cited my website?

Pass brandDomains with your domains. analysis.brands[].cited is true when a source is on one of them, and citedUrls lists those sources.

How much does tracking cost?

1.5 credits per prompt per country per run. 30 prompts in 2 countries every week is about 240 answers a month.

Run your first prompt in a minute.