Repository navigation
feat(content): show a content opportunity's AI volume as its prompts' current estimate - #1367
Conversation
…adge and method note PROMPT-013, part 1. A prompt's AI volume is the median Google volume of its keywords x the AI adoption rate; how far to trust it follows from how many keywords have data and how closely they agree. lib/volume-estimate.ts turns each stored estimate into a range and a confidence (high, medium, low; a level less when over six months old), and adds them up for the Insights cards. The Prompts page shows ranges with a dashed Estimate badge and a method note (sources, month, confidence, date), greys low-confidence estimates, leaves them out of High Opportunity on their own and sorts them after the confident ones by Volume. The Tracked Prompts CSV gains volume_type, volume_confidence, the range and volume_date. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t page's AI volume as estimates PROMPT-013, part 2. Two more kinds of estimate: one keyword's AI share (its Google volume is measured, only the adoption rate assumed: medium, ±25%) for Similar Topics' rows, and an AI's guess (always low, half to twice) for Prompt Suggestions' volume badge. The method note words each. Similar Topics' Est. AI Volume card shows the prompts' summed range with the Estimate badge, and a prompt's detail page gains an "AI searches a month" card, read through getPromptVolume (the prompt is checked with the user's client before prompt_volumes is read with the admin client). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…an, one note per table Review fixes for PROMPT-013 part 1. The keywords are head terms that spread widely by design, so agreement is now the upper over the lower quartile of the measured volumes (as percentile_cont): high at three or more within 4x, medium at two or more within 15x. The range is the AI share of that middle half, clamped to half to twice. The note calls the 45% the share of Google searches that now get an AI answer. Long tables share one tooltip through createEstimateNoteHandle, the Prompt Volumes chart shows each platform's share of the range, rankable is used by both ranking rules, and perMonth waits for part 2. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…lume-pages # Conflicts: # web/messages/en.json # web/src/components/prompts/volume-estimate.test.tsx # web/src/components/prompts/volume-estimate.tsx
…t Suggestions As ansvisor#1361's tables do: each long list mounts one method note through createEstimateNoteHandle rather than one per row. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…volumes as estimates
PROMPT-013, part 3a. readPromptDemand returns each prompt's estimate (a
range and a confidence) instead of a number, so the Affected tab, the Why
("28-42k AI searches a month, estimated"), the history drawer and the
action exports show ranges; CSV and Excel gain volume_type and
volume_confidence. A topic opportunity's demand and its suggestions' are
an AI's guess: grey, low-confidence ranges in the title, the drawer and
Insights' Opportunities card.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
… volumes As the Prompts tables do (ansvisor#1361): the column's ranges pass a shared createEstimateNoteHandle rather than mounting a tooltip each. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… people, keep ranges focusable Pre-push review fixes for PROMPT-013 part 3a. A sum of suggestions' AI guesses gets its own note, and its low-confidence line no longer claims it never ranks. Excel and Markdown word the confidence through volumeEstimate.level while the CSV keeps the code. The topic context keeps its separator in en.json and shares one note across its suggestions, the Opportunities line truncates only its text so the range stays focusable, and tests date their volumes relative to now. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… current estimate The opportunity detail's Est. AI Volume card, Copy All Data and Export now read the sum of the opportunity's prompts' current estimates as a range with its confidence (PROMPT-013), falling back to the volume kept on the opportunity as an undated, low-confidence estimate. The page reads the basket once for its card and the volume. The MCP get_prompt_volumes rows gain est_ai_volume_low/high, volume_confidence and volume_type, and three tool descriptions say the volumes are estimates. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@gkhngyk PROMPT-013 part 3b, stacked on #1364. This is the last web part.
A review pass before pushing caught:
Both are fixed in c78dfdb. Open question: the generator and brief prompts still give the LLM |
gkhngyk
left a comment
There was a problem hiding this comment.
Looks good. One wording follow-up:
-
web/messages/en.json:5319(volumeEstimate.methodSnapshot) says the prompts' current estimates "couldn't be read".web/src/hooks/use-opportunity-volume.ts:77and:80show the kept sum in two more cases:- the read worked, but none of the prompts has an estimate;
- the cluster has no prompts left.
In both, the note is wrong. "Their current estimates aren't available, so this one may be out of date." fits all three cases.
Also checked:
- The basket is read once, and only for cluster opportunities. The card is still only rendered for those, so it can't sit on a skeleton for a per-prompt opportunity.
getPromptDemandchecks the prompts against the opportunity's brand with the user's client before the admin read.get_prompt_volumesonly adds fields.- The content Demand score and its breakdown are unchanged.
- The export builders have no callers other than the detail page.
gkhngyk
left a comment
There was a problem hiding this comment.
Re-approving after merging main into the branch. The merge only brings in the squashed parent PR; the tree matches the one tested (web and server tests, typecheck, lint, format).
…ges (#1368) Both AEO coach skills gain an "AI search volumes" section: est_ai_volume is an estimate, quoted as its est_ai_volume_low–high range with its volume_confidence; low-confidence rows don't rank on their own; a content opportunity's source_data.estAiVolume is a kept sum. get_prompt_volumes (and GET /prompt-volumes) list the new fields, and Pitfalls says not to present a volume as measured. The fields come with #1367. Co-authored-by: Cihan <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]>
Summary
PROMPT-013, part 3b: a content opportunity's AI volume is its prompts' current estimate, shown as a range, and MCP reads volumes as estimates.
Content opportunity detail
getPromptDemand, as the Action Center does), shown as a range with the Estimate badge and the method note on hover.snapshotestimate: low confidence, grey, ½–2×. It is undated, because the generator's merge path rewritesestAiVolumewithout recording when. A cluster opportunity never falls back to itsprompt_id, which is only the cluster's representative.useOpportunityVolume(hooks/use-opportunity-volume.ts) reads it for both the volume andOpportunityBasketCard, which now takesbasket/failedprops. The card behaves as before: skeleton while loading, hidden on failure, only for cluster opportunities.StatCard's value wrapper is adivinstead of ap, so the skeleton and the range's block content are valid HTML.MCP
get_prompt_volumesrows gainest_ai_volume_low,est_ai_volume_high,volume_confidenceandvolume_type("estimate"). They come frompromptVolumeEstimate, the same rules and six-month step-down the dashboard uses.get_prompt_volumes,list_prompt_suggestions(est_volumeis an AI guess, ½–2×) andget_content_opportunity(source_data.estAiVolumeis a kept sum, possibly out of date) say the volumes are estimates and ask the agent to quote ranges.Strings:
volumeEstimate.methodSnapshot,sourcesSnapshotandlowNoteSnapshot.Not changed: the opportunity generator and brief prompts still pass
estAiVolumeto the LLM as a number. Generated descriptions can quote it (a demo opportunity reads "Targeting 12,400/mo volume"). A small server follow-up can tell the model it is an estimate and not to quote it.Related issue
ROADMAP plan item 03 (PROMPT-013), queued by the user on 2026-10-22. No issue.
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
get_prompt_volumes: each row hasest_ai_volume_low,est_ai_volume_high,volume_confidenceandvolume_type.Checked locally on the demo brand at 1024 px and 375 px, in light and dark:
New tests:
hooks/use-opportunity-volume.test.tsx: sum, lone prompt, one measured member, fallback, failed basket with a representativeprompt_id, nothing to show;lib/mcp/prompt-volumes.test.ts;volume-estimate.test.tsx;opportunity-markdown.test.ts.Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/) (0 errors; the 6 warnings are in untouched files, as on main)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Also run: web
yarn test(314 files, 2,760 tests) andyarn build.🤖 Generated with Claude Code