Home / Blog / Prompt Monitoring Under the Bonnet — The Methodology
Prompt monitoring under the bonnet — the methodology
How do we know what AI is searching for, reading, and quoting behind your queries? API-level measurement with fan-out queries and source lists — explained simply.
In brief: our prompt monitoring doesn’t rely on screenshots, but queries the official developer interfaces (APIs) of ChatGPT and Gemini — where the system also returns its own activity log alongside the answer: how it broke down the query into searches (fan-out), which pages it read, and which ones it referenced. This article shows you exactly where our data comes from, and why this type of measurement is the gold standard in the industry.
The starting point: AI search is conversation, not ranking
In classic SEO, you track keyword positions. With AI search, that doesn’t exist: your customer asks a question, the machine searches, selects, and returns a single formulated answer. We measure this entire chain: what the machine looks for behind your question, what it reads, what it quotes, and what claims it makes about you. We have a separate article on measurement principles — here we're diving into the technical layer.
The ChatGPT side: Responses API and the web_search tool
Every prompt we send goes to the OpenAI Responses API (/v1/responses endpoint), with the web_search tool enabled and Hungarian location set (user_location: HU) — so the machine searches in Hungarian context, just like a user in Hungary. The response is more than just text — in the output array, the machine gives a detailed breakdown of its process:
web_search_callelements — this is the fan-out. Each element is an actual background search, and theaction.queryfield contains the search term formulated by the machine. A customer query usually results in 2–6 searches. There’s no guessing — the machine itself tells us how it broke down the question.action.sources— the sources opened. We specifically request theinclude: ["web_search_call.action.sources"]parameter in our calls: this makes the API return the list of pages actually used during the search. This data builds the report’s "Opened pages" panel — so you can see if your site is the top-read source on your topic, and which competitors the machine is reading.url_citationannotations — the references. The answer’s references are marked as annotations in the text, with URL and position. This is how we calculate citations: it’s not about whether the machine "knows about you", but whether it links to you as a source.
From a single API response, we extract four layers: what it searched for (fan-out), what it read (sources), what it cited (citations) — and what it said, in what tone.
The Gemini side: grounding metadata from Google
On Google’s side, we query the Gemini API (generateContent) with the google_search tool enabled. Here, the activity log is called “grounding metadata":
webSearchQueries— Gemini’s fan-out: these are returned as a list of Google queries it ran. Comparing fan-out between the two platforms is a goldmine: they often break down the same question differently, and sometimes only one of them misunderstands the intent.groundingChunks— the utilised web sources (URL + title).groundingSupports— sentence-level mapping: Gemini tells you which part of the answer is supported by which source. This is the basis for the report’s “What does the AI claim about you” section: we collect the statements it attributes specifically to YOUR site — so you can clearly see if it’s using outdated info. In our work, this is how we discovered an old service description that was still being cited weeks after it had been removed — and the fix wasn’t new content, but reindexing.
What becomes of the data: meaningful metrics
The result of every prompt run is saved in a database (platform, category, mention, citation, fan-out list, sources, statements). These come together into the report’s key metrics: mention ratio by platform; citation rate (for us, 81% of mentions are also cited); Share of Voice in two views — for brand queries and non-brand queries, as the latter is where real competition happens; plus a list of citing pages: which of your contents are working, and where there are gaps.
Noise reduction: why don’t we trust a single measurement?
AI answers are non-deterministic — the same question may hit one day, miss the next. If someone claims a result from just one query, they’re selling you noise as signal. For us, every prompt gets its status based on its own last three runs: stable, volatile, new or disappearing. An alert only gets triggered when identical runs are compared: a new prompt’s first run never triggers a false "drop" warning. That’s why the rhythm is weekly: daily fluctuations are noise, weekly trends are signal. We wrote more about timelines here.
The prompt library as a learning system
The library isn’t a static list — it evolves from three sources. Backwards from the fan-out: if our measurement shows the machine categorising a phrase in the wrong industry (real case: "AI management" was understood as ‘operational MLOps’, "visibility monitoring" as media monitoring), we rephrase the prompt and adjust the service name too. From the customer funnel: questions are categorised by funnel stage from basic introductory to purchase-driven — so you can see which funnel point you’re strong at. And from the field: new competitors showing up on the opened-sources list are added for tracking.
And so the circle closes: we create targeted content directly for the measured fan-out phrases — every article answers a real machine search — then the next week’s run shows you if the machine started citing you. We don’t just assume it works: we measure it. If you want to see your own numbers, the monitoring service starts here, and the first step is the free audit.
An honest footnote
The behaviour measured through the API is the platforms’ official, documented search layer — it’s the same tech powering the consumer interfaces, but the ChatGPT and Gemini public tools aren’t bit-for-bit identical (personal history and A/B-tests can influence them). That’s why we never promise "guaranteed ChatGPT appearances" — we measure what can be measured, every week, and act based on trends. This is the difference between marketing promises and engineering work.
Curious how your own site performs in AI search engines?
Free AI Visibility Audit →