Scanner prompts
Contents
These prompts create Replay Vision scanners that follow the best practices from What we learned from our first 400k Replay Vision scans. Read the post to learn why each prompt is written this way.
Paste a prompt into PostHog AI or a coding agent connected to the PostHog MCP, or use the link below it. Replace the values in square brackets first. The agent inspects your project and creates the scanner.
Writing a prompt of your own? See what every scan already does so you don't spend words on it, and write prompts that work with it.
Map the use cases people bring to a product
Set up the use-case scanner in PostHog AI
Compare behavior across experiment variants
Set up the experiment scanner in PostHog AI
Find product improvement ideas
Set up the product-opportunity scanner in PostHog AI
Find self-contradictions and dead ends
Set up the contradiction scanner in PostHog AI
Review sessions before low-NPS responses
Set up the low-NPS review in PostHog AI
Watch the first sessions from high-ICP signups
Set up the high-ICP scanner in PostHog AI
Ask a coding agent to design scanners
Design scanners with PostHog AI
What every scan already does
PostHog wraps your prompt in instructions every scan follows, whatever the scanner type. Your prompt doesn't need to repeat them:
- Evidence first. Every claim rests on a moment in the video or an analytics event. Where the two disagree, the events win, because the replay can show things the user never saw. When the recording ends before something finishes, the scan says the outcome is unknown instead of guessing.
- Recording limits. Masked content, content that wasn't recorded (canvas drawings, embedded pages from other sites, video playback), and quirks of rebuilding a page from snapshots are treated as limits of the recording, not bugs. Unrecorded iframes and canvases show in the video as a striped box labeled "not recorded". The scan judges them from events, requests, and what the user does next.
- Normal use. Repeated clicks on a control that responds, reading or idling, waits that end, validation messages, and paywalls count as normal use, unless the user gets stuck. When your question is about one of these, such as slow loads, your prompt decides instead.
- Privacy. Answers never include personal data – names, emails, phone numbers, addresses, IDs – about the user or anyone else.
- Off-topic sessions. When a recording never reaches what your prompt asks about, the scan says so and keeps its confidence low instead of stretching an unrelated part of the session to fit.
- Notability. Separately from your question, every scan rates how worth watching the session is, and What to watch uses it. You don't need to ask a scanner to flag interesting sessions.
- Citations. Answers cite key moments as timestamps you can click to seek the recording.
Write prompts that work with it
- Name the signals that decide the answer. After watching the video, a scan gets one round of lookups: it picks the stretches of the video it wants analytics events for, then answers. A monitor only answers yes when the events back up at least one moment. Naming what decides the answer – the error message, the submit click, your
order_completedevent – helps it look in the right places. - Give the question a direction. PostHog condenses your prompt into one question, shown on every observation, and judges whether a yes or a high score is good or bad news, so it can color results green or red. A prompt that asks about one outcome ("Did the user complete checkout?") gets a clear direction. For a scorer whose scale names a problem, such as frustration or friction, a high score counts as bad.
- Ask for identity only when you need it. If your question needs to know who the session belongs to, ask for that explicitly. The scan then names the person from your project's person and group records, never from what's on screen, and keeps everyone else's data out. If an answer includes personal data the question didn't ask for, PostHog has it rewritten without that data, and fails the scan if the rewrite still has it. See troubleshooting.
- Record network requests to tell broken from slow. A failed request and a slow one look the same on video. With network recording on, scans can also look up the failed and slow requests around a moment, so a prompt about errors or stalled pages can tell them apart.
- Record what your users see. Scans can only judge what the recording captured. If your product draws key screens on a canvas or inside an iframe, turn on canvas recording or iframe recording so the recording holds something for the scan to see.
- Describe your product and your events. Scans read PostHog AI memory as background on what your product does, and the descriptions you give your custom events on the events management page. Both help the model read your product's screens and events correctly.
- Say where your product differs from the defaults. Repeating the built-in rules adds nothing. Telling the scan what is normal in your product does, for example "the map on the search page is drawn on a canvas, so a gray map area alone is not an error".
- Keep rating results. Ratings and notes teach each scanner rules that sharpen how it applies your prompt. See improving scanners with ratings.











