[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-posthog-investigating-replay":3,"mdc--nkwxq9-key":48,"related-repo-posthog-investigating-replay":1869,"related-org-posthog-investigating-replay":1968},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":11,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":43,"sourceUrl":46,"mdContent":47},"investigating-replay","investigate PostHog session recordings","Investigates a session recording by gathering metadata, person profile, same-session events, and linked error tracking issues in one pass. Use when a user provides a recording or session ID and wants to understand what happened — who the user was, what they did, what errors occurred, and whether there are related error tracking issues. Replaces the manual chain of session-recording-get, persons-retrieve, execute-sql, and query-error-tracking-issues-list.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},"posthog","PostHog","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fposthog.png",[12,16,17,20],{"name":13,"slug":14,"type":15},"Observability","observability","tag",{"name":9,"slug":8,"type":15},{"name":18,"slug":19,"type":15},"Analytics","analytics",{"name":21,"slug":22,"type":15},"Debugging","debugging",35568,"https:\u002F\u002Fgithub.com\u002FPostHog\u002Fposthog","2026-07-28T05:34:15.126794",null,2977,[29,30,19,31,32,33,34,35,36,37,38,39,40,41,42],"ab-testing","ai-analytics","cdp","data-warehouse","experiments","feature-flags","javascript","product-analytics","python","react","session-replay","surveys","typescript","web-analytics",{"repoUrl":24,"stars":23,"forks":27,"topics":44,"description":45},[29,30,19,31,32,33,34,35,36,37,38,39,40,41,42],"🦔 PostHog is an all-in-one developer platform for building successful products. We offer product analytics, web analytics, session replay, error tracking, feature flags, experimentation, surveys, data warehouse, a CDP, and an AI product assistant to help debug your code, ship features faster, and keep all your usage and customer data in one stack.","https:\u002F\u002Fgithub.com\u002FPostHog\u002Fposthog\u002Ftree\u002FHEAD\u002Fproducts\u002Freplay\u002Fskills\u002Finvestigating-replay","---\nname: investigating-replay\ndescription: >\n  Investigates a session recording by gathering metadata, person profile,\n  same-session events, and linked error tracking issues in one pass.\n  Use when a user provides a recording or session ID and wants to understand\n  what happened — who the user was, what they did, what errors occurred,\n  and whether there are related error tracking issues. Replaces the manual\n  chain of session-recording-get, persons-retrieve, execute-sql, and\n  query-error-tracking-issues-list.\n---\n\n# Investigating a session recording\n\nWhen a user asks \"what happened in this session?\" or provides a recording\u002Fsession ID\nto investigate, gather all relevant context in parallel rather than making them\nask for each piece.\n\n## Available tools\n\n| Tool                                       | Purpose                                                  |\n| ------------------------------------------ | -------------------------------------------------------- |\n| `posthog:session-recording-get`            | Recording metadata (duration, counts, status)            |\n| `posthog:persons-retrieve`                 | Person profile (properties, distinct IDs)                |\n| `posthog:execute-sql`                      | Query events, errors, and page views in session          |\n| `posthog:query-error-tracking-issues-list` | Find error tracking issues linked to the session         |\n| `posthog:vision-observations-list`         | Check for an existing Replay Vision AI summary           |\n| `posthog:vision-scanners-list`             | Find summarizer scanners (`scanner_type=summarizer`)     |\n| `posthog:vision-scanners-scan-session`     | Run a summarizer scanner on the session (slow, optional) |\n| `posthog:vision-scanners-create`           | Create a temporary summarizer scanner (ask first)        |\n| `posthog:vision-scanners-delete`           | Delete a temporary scanner after summarizing             |\n\n## Workflow\n\n### Step 1 — Get recording metadata and person profile\n\nStart with the recording to get metadata and the person's distinct ID:\n\n```json\nposthog:session-recording-get\n{\n  \"id\": \"\u003Crecording_id>\"\n}\n```\n\nThe response includes `distinct_id`, `person`, duration, interaction counts,\nconsole error counts, and viewing status. Use the `distinct_id` to fetch\nthe full person profile:\n\n```json\nposthog:persons-retrieve\n{\n  \"id\": \"\u003Cperson_uuid_from_recording>\"\n}\n```\n\n### Step 2 — Query same-session events\n\nGet the timeline of what the user did during the session:\n\n```sql\nposthog:execute-sql\nSELECT\n    timestamp,\n    event,\n    properties.$current_url AS url,\n    properties.$browser AS browser,\n    properties.$os AS os,\n    properties.$device_type AS device_type,\n    properties.$screen_width AS screen_width\nFROM events\nWHERE $session_id = '\u003Csession_id>'\nORDER BY timestamp ASC\nLIMIT 200\n```\n\nFor sessions with many events, focus on the most informative ones:\n\n```sql\nposthog:execute-sql\nSELECT\n    timestamp,\n    event,\n    properties.$current_url AS url,\n    if(event = '$exception', properties.$exception_values[1], null) AS exception_message,\n    if(event = '$exception', properties.$exception_types[1], null) AS exception_type\nFROM events\nWHERE $session_id = '\u003Csession_id>'\n    AND event IN ('$pageview', '$pageleave', '$autocapture', '$exception', '$rageclick')\nORDER BY timestamp ASC\nLIMIT 100\n```\n\n### Step 3 — Check for linked error tracking issues\n\nIf the recording has console errors or exceptions, find related error tracking issues:\n\n```sql\nposthog:execute-sql\nSELECT DISTINCT\n    properties.$exception_fingerprint AS fingerprint,\n    properties.$exception_types[1] AS type,\n    properties.$exception_values[1] AS message,\n    count() AS occurrences\nFROM events\nWHERE $session_id = '\u003Csession_id>'\n    AND event = '$exception'\nGROUP BY fingerprint, type, message\nORDER BY occurrences DESC\nLIMIT 10\n```\n\nIf fingerprints are found, search for the corresponding error tracking issues\nto provide links and status:\n\n```json\nposthog:query-error-tracking-issues-list\n{\n  \"searchQuery\": \"\u003Cexception_type or message>\"\n}\n```\n\n### Step 4 — Synthesize the investigation\n\nPresent the findings as a coherent narrative:\n\n1. **Who** — person properties (name, email, country, plan, etc.)\n2. **What** — sequence of pages visited and key actions taken\n3. **Problems** — exceptions, console errors, rage clicks, and their frequency\n4. **Related issues** — linked error tracking issues with their status (active\u002Fresolved)\n5. **Context** — session duration, device\u002Fbrowser, activity score\n\n### Optional: AI summary via Replay Vision\n\nIf the user wants a deeper analysis without reading through events manually,\noffer a Replay Vision summary. Follow \"check-then-scan\" — don't scan blindly,\na scanner can only observe a given session once.\n\n1. **Check for an existing summary.** A scheduled scanner may already have one:\n\n   ```json\n   posthog:vision-observations-list\n   {\n     \"session_id\": \"\u003Csession_id>\"\n   }\n   ```\n\n   Look for an observation where `scanner_snapshot.scanner_type` is `summarizer`\n   and `status` is `succeeded`. If found, read `scanner_result.model_output`\n   (`title`, `summary`, `intent`, `outcome`, `friction_points`, `keywords`) — done,\n   no new scan needed.\n\n2. **Find a summarizer scanner** if none exists yet:\n\n   ```json\n   posthog:vision-scanners-list\n   {\n     \"scanner_type\": \"summarizer\"\n   }\n   ```\n\n   - Exactly one → use it.\n   - More than one → show the user the scanners (name + prompt) and ask which to use.\n   - None → no summarizer scanner exists. See\n     **No summarizer scanner? Run a temporary one** below.\n\n3. **Scan the session** with the chosen scanner. Warn this is async and takes\n   several minutes (rasterize + LLM):\n\n   ```json\n   posthog:vision-scanners-scan-session\n   {\n     \"id\": \"\u003Cscanner_id>\",\n     \"session_id\": \"\u003Csession_id>\"\n   }\n   ```\n\n4. **Retrieve the result** by polling `vision-observations-list` (step 1) until\n   the new observation reaches `succeeded`.\n\n### No summarizer scanner? Run a temporary one\n\nIf the project has no summarizer scanner, you can still produce a one-off summary\nwith a throwaway scanner — but **ask the user's permission before creating anything**.\n\n1. **Ask permission** to create a temporary summarizer scanner just to summarize\n   this one session.\n\n2. **Create it disabled** so it never sweeps on a schedule — a disabled scanner\n   only runs when you trigger it on demand, so it won't touch other sessions or\n   burn quota in the background:\n\n   ```json\n   posthog:vision-scanners-create\n   {\n     \"name\": \"Temporary on-demand summary\",\n     \"scanner_type\": \"summarizer\",\n     \"scanner_config\": {\n       \"prompt\": \"Summarize what the user was trying to do, whether they succeeded, and any friction they hit.\"\n     },\n     \"query\": { \"kind\": \"RecordingsQuery\" },\n     \"model\": \"gemini-3.6-flash\",\n     \"enabled\": false\n   }\n   ```\n\n3. **Scan this session on demand** with the new scanner, then poll for the result:\n\n   ```json\n   posthog:vision-scanners-scan-session\n   {\n     \"id\": \"\u003Cnew_scanner_id>\",\n     \"session_id\": \"\u003Csession_id>\"\n   }\n   ```\n\n   Poll `vision-observations-list` until the observation reaches `succeeded` and\n   read `scanner_result.model_output`.\n\n4. **Ask whether to keep or delete the scanner.** Once you have the observation,\n   ask the user if they want to keep the temporary scanner or delete it with\n   `vision-scanners-delete`. Deleting is safe: the summary you just read is also\n   emitted as an event that persists after the scanner is gone, so cleaning up the\n   temporary scanner does not lose the result.\n\n## Tips\n\n- Run steps 1-3 in parallel when possible — they're independent queries.\n- If the recording has very few events, the session was likely very short.\n  Note this rather than suggesting something is broken.\n- Console error count from the recording metadata is a good signal for whether\n  to dig into exceptions. If it's 0, skip step 3.\n- The `start_url` from the recording tells you where the user's journey began —\n  use this to frame the narrative.\n- If `person` is null on the recording, the user was anonymous.\n  Person properties won't be available, but events still are.\n",{"data":49,"body":50},{"name":4,"description":6},{"type":51,"children":52},"root",[53,62,68,75,265,271,278,283,366,394,455,461,466,588,593,688,694,699,799,804,866,872,877,933,939,944,1336,1341,1352,1814,1820,1863],{"type":54,"tag":55,"props":56,"children":58},"element","h1",{"id":57},"investigating-a-session-recording",[59],{"type":60,"value":61},"text","Investigating a session recording",{"type":54,"tag":63,"props":64,"children":65},"p",{},[66],{"type":60,"value":67},"When a user asks \"what happened in this session?\" or provides a recording\u002Fsession ID\nto investigate, gather all relevant context in parallel rather than making them\nask for each piece.",{"type":54,"tag":69,"props":70,"children":72},"h2",{"id":71},"available-tools",[73],{"type":60,"value":74},"Available tools",{"type":54,"tag":76,"props":77,"children":78},"table",{},[79,98],{"type":54,"tag":80,"props":81,"children":82},"thead",{},[83],{"type":54,"tag":84,"props":85,"children":86},"tr",{},[87,93],{"type":54,"tag":88,"props":89,"children":90},"th",{},[91],{"type":60,"value":92},"Tool",{"type":54,"tag":88,"props":94,"children":95},{},[96],{"type":60,"value":97},"Purpose",{"type":54,"tag":99,"props":100,"children":101},"tbody",{},[102,121,138,155,172,189,214,231,248],{"type":54,"tag":84,"props":103,"children":104},{},[105,116],{"type":54,"tag":106,"props":107,"children":108},"td",{},[109],{"type":54,"tag":110,"props":111,"children":113},"code",{"className":112},[],[114],{"type":60,"value":115},"posthog:session-recording-get",{"type":54,"tag":106,"props":117,"children":118},{},[119],{"type":60,"value":120},"Recording metadata (duration, counts, status)",{"type":54,"tag":84,"props":122,"children":123},{},[124,133],{"type":54,"tag":106,"props":125,"children":126},{},[127],{"type":54,"tag":110,"props":128,"children":130},{"className":129},[],[131],{"type":60,"value":132},"posthog:persons-retrieve",{"type":54,"tag":106,"props":134,"children":135},{},[136],{"type":60,"value":137},"Person profile (properties, distinct IDs)",{"type":54,"tag":84,"props":139,"children":140},{},[141,150],{"type":54,"tag":106,"props":142,"children":143},{},[144],{"type":54,"tag":110,"props":145,"children":147},{"className":146},[],[148],{"type":60,"value":149},"posthog:execute-sql",{"type":54,"tag":106,"props":151,"children":152},{},[153],{"type":60,"value":154},"Query events, errors, and page views in session",{"type":54,"tag":84,"props":156,"children":157},{},[158,167],{"type":54,"tag":106,"props":159,"children":160},{},[161],{"type":54,"tag":110,"props":162,"children":164},{"className":163},[],[165],{"type":60,"value":166},"posthog:query-error-tracking-issues-list",{"type":54,"tag":106,"props":168,"children":169},{},[170],{"type":60,"value":171},"Find error tracking issues linked to the session",{"type":54,"tag":84,"props":173,"children":174},{},[175,184],{"type":54,"tag":106,"props":176,"children":177},{},[178],{"type":54,"tag":110,"props":179,"children":181},{"className":180},[],[182],{"type":60,"value":183},"posthog:vision-observations-list",{"type":54,"tag":106,"props":185,"children":186},{},[187],{"type":60,"value":188},"Check for an existing Replay Vision AI summary",{"type":54,"tag":84,"props":190,"children":191},{},[192,201],{"type":54,"tag":106,"props":193,"children":194},{},[195],{"type":54,"tag":110,"props":196,"children":198},{"className":197},[],[199],{"type":60,"value":200},"posthog:vision-scanners-list",{"type":54,"tag":106,"props":202,"children":203},{},[204,206,212],{"type":60,"value":205},"Find summarizer scanners (",{"type":54,"tag":110,"props":207,"children":209},{"className":208},[],[210],{"type":60,"value":211},"scanner_type=summarizer",{"type":60,"value":213},")",{"type":54,"tag":84,"props":215,"children":216},{},[217,226],{"type":54,"tag":106,"props":218,"children":219},{},[220],{"type":54,"tag":110,"props":221,"children":223},{"className":222},[],[224],{"type":60,"value":225},"posthog:vision-scanners-scan-session",{"type":54,"tag":106,"props":227,"children":228},{},[229],{"type":60,"value":230},"Run a summarizer scanner on the session (slow, optional)",{"type":54,"tag":84,"props":232,"children":233},{},[234,243],{"type":54,"tag":106,"props":235,"children":236},{},[237],{"type":54,"tag":110,"props":238,"children":240},{"className":239},[],[241],{"type":60,"value":242},"posthog:vision-scanners-create",{"type":54,"tag":106,"props":244,"children":245},{},[246],{"type":60,"value":247},"Create a temporary summarizer scanner (ask first)",{"type":54,"tag":84,"props":249,"children":250},{},[251,260],{"type":54,"tag":106,"props":252,"children":253},{},[254],{"type":54,"tag":110,"props":255,"children":257},{"className":256},[],[258],{"type":60,"value":259},"posthog:vision-scanners-delete",{"type":54,"tag":106,"props":261,"children":262},{},[263],{"type":60,"value":264},"Delete a temporary scanner after summarizing",{"type":54,"tag":69,"props":266,"children":268},{"id":267},"workflow",[269],{"type":60,"value":270},"Workflow",{"type":54,"tag":272,"props":273,"children":275},"h3",{"id":274},"step-1-get-recording-metadata-and-person-profile",[276],{"type":60,"value":277},"Step 1 — Get recording metadata and person profile",{"type":54,"tag":63,"props":279,"children":280},{},[281],{"type":60,"value":282},"Start with the recording to get metadata and the person's distinct ID:",{"type":54,"tag":284,"props":285,"children":290},"pre",{"className":286,"code":287,"language":288,"meta":289,"style":289},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","posthog:session-recording-get\n{\n  \"id\": \"\u003Crecording_id>\"\n}\n","json","",[291],{"type":54,"tag":110,"props":292,"children":293},{"__ignoreMap":289},[294,306,316,357],{"type":54,"tag":295,"props":296,"children":299},"span",{"class":297,"line":298},"line",1,[300],{"type":54,"tag":295,"props":301,"children":303},{"style":302},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[304],{"type":60,"value":305},"posthog:session-recording-get\n",{"type":54,"tag":295,"props":307,"children":309},{"class":297,"line":308},2,[310],{"type":54,"tag":295,"props":311,"children":313},{"style":312},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[314],{"type":60,"value":315},"{\n",{"type":54,"tag":295,"props":317,"children":319},{"class":297,"line":318},3,[320,325,331,336,341,346,352],{"type":54,"tag":295,"props":321,"children":322},{"style":312},[323],{"type":60,"value":324},"  \"",{"type":54,"tag":295,"props":326,"children":328},{"style":327},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[329],{"type":60,"value":330},"id",{"type":54,"tag":295,"props":332,"children":333},{"style":312},[334],{"type":60,"value":335},"\"",{"type":54,"tag":295,"props":337,"children":338},{"style":312},[339],{"type":60,"value":340},":",{"type":54,"tag":295,"props":342,"children":343},{"style":312},[344],{"type":60,"value":345}," \"",{"type":54,"tag":295,"props":347,"children":349},{"style":348},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[350],{"type":60,"value":351},"\u003Crecording_id>",{"type":54,"tag":295,"props":353,"children":354},{"style":312},[355],{"type":60,"value":356},"\"\n",{"type":54,"tag":295,"props":358,"children":360},{"class":297,"line":359},4,[361],{"type":54,"tag":295,"props":362,"children":363},{"style":312},[364],{"type":60,"value":365},"}\n",{"type":54,"tag":63,"props":367,"children":368},{},[369,371,377,379,385,387,392],{"type":60,"value":370},"The response includes ",{"type":54,"tag":110,"props":372,"children":374},{"className":373},[],[375],{"type":60,"value":376},"distinct_id",{"type":60,"value":378},", ",{"type":54,"tag":110,"props":380,"children":382},{"className":381},[],[383],{"type":60,"value":384},"person",{"type":60,"value":386},", duration, interaction counts,\nconsole error counts, and viewing status. Use the ",{"type":54,"tag":110,"props":388,"children":390},{"className":389},[],[391],{"type":60,"value":376},{"type":60,"value":393}," to fetch\nthe full person profile:",{"type":54,"tag":284,"props":395,"children":397},{"className":286,"code":396,"language":288,"meta":289,"style":289},"posthog:persons-retrieve\n{\n  \"id\": \"\u003Cperson_uuid_from_recording>\"\n}\n",[398],{"type":54,"tag":110,"props":399,"children":400},{"__ignoreMap":289},[401,409,416,448],{"type":54,"tag":295,"props":402,"children":403},{"class":297,"line":298},[404],{"type":54,"tag":295,"props":405,"children":406},{"style":302},[407],{"type":60,"value":408},"posthog:persons-retrieve\n",{"type":54,"tag":295,"props":410,"children":411},{"class":297,"line":308},[412],{"type":54,"tag":295,"props":413,"children":414},{"style":312},[415],{"type":60,"value":315},{"type":54,"tag":295,"props":417,"children":418},{"class":297,"line":318},[419,423,427,431,435,439,444],{"type":54,"tag":295,"props":420,"children":421},{"style":312},[422],{"type":60,"value":324},{"type":54,"tag":295,"props":424,"children":425},{"style":327},[426],{"type":60,"value":330},{"type":54,"tag":295,"props":428,"children":429},{"style":312},[430],{"type":60,"value":335},{"type":54,"tag":295,"props":432,"children":433},{"style":312},[434],{"type":60,"value":340},{"type":54,"tag":295,"props":436,"children":437},{"style":312},[438],{"type":60,"value":345},{"type":54,"tag":295,"props":440,"children":441},{"style":348},[442],{"type":60,"value":443},"\u003Cperson_uuid_from_recording>",{"type":54,"tag":295,"props":445,"children":446},{"style":312},[447],{"type":60,"value":356},{"type":54,"tag":295,"props":449,"children":450},{"class":297,"line":359},[451],{"type":54,"tag":295,"props":452,"children":453},{"style":312},[454],{"type":60,"value":365},{"type":54,"tag":272,"props":456,"children":458},{"id":457},"step-2-query-same-session-events",[459],{"type":60,"value":460},"Step 2 — Query same-session events",{"type":54,"tag":63,"props":462,"children":463},{},[464],{"type":60,"value":465},"Get the timeline of what the user did during the session:",{"type":54,"tag":284,"props":467,"children":471},{"className":468,"code":469,"language":470,"meta":289,"style":289},"language-sql shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","posthog:execute-sql\nSELECT\n    timestamp,\n    event,\n    properties.$current_url AS url,\n    properties.$browser AS browser,\n    properties.$os AS os,\n    properties.$device_type AS device_type,\n    properties.$screen_width AS screen_width\nFROM events\nWHERE $session_id = '\u003Csession_id>'\nORDER BY timestamp ASC\nLIMIT 200\n","sql",[472],{"type":54,"tag":110,"props":473,"children":474},{"__ignoreMap":289},[475,483,491,499,507,516,525,534,543,552,561,570,579],{"type":54,"tag":295,"props":476,"children":477},{"class":297,"line":298},[478],{"type":54,"tag":295,"props":479,"children":480},{},[481],{"type":60,"value":482},"posthog:execute-sql\n",{"type":54,"tag":295,"props":484,"children":485},{"class":297,"line":308},[486],{"type":54,"tag":295,"props":487,"children":488},{},[489],{"type":60,"value":490},"SELECT\n",{"type":54,"tag":295,"props":492,"children":493},{"class":297,"line":318},[494],{"type":54,"tag":295,"props":495,"children":496},{},[497],{"type":60,"value":498},"    timestamp,\n",{"type":54,"tag":295,"props":500,"children":501},{"class":297,"line":359},[502],{"type":54,"tag":295,"props":503,"children":504},{},[505],{"type":60,"value":506},"    event,\n",{"type":54,"tag":295,"props":508,"children":510},{"class":297,"line":509},5,[511],{"type":54,"tag":295,"props":512,"children":513},{},[514],{"type":60,"value":515},"    properties.$current_url AS url,\n",{"type":54,"tag":295,"props":517,"children":519},{"class":297,"line":518},6,[520],{"type":54,"tag":295,"props":521,"children":522},{},[523],{"type":60,"value":524},"    properties.$browser AS browser,\n",{"type":54,"tag":295,"props":526,"children":528},{"class":297,"line":527},7,[529],{"type":54,"tag":295,"props":530,"children":531},{},[532],{"type":60,"value":533},"    properties.$os AS os,\n",{"type":54,"tag":295,"props":535,"children":537},{"class":297,"line":536},8,[538],{"type":54,"tag":295,"props":539,"children":540},{},[541],{"type":60,"value":542},"    properties.$device_type AS device_type,\n",{"type":54,"tag":295,"props":544,"children":546},{"class":297,"line":545},9,[547],{"type":54,"tag":295,"props":548,"children":549},{},[550],{"type":60,"value":551},"    properties.$screen_width AS screen_width\n",{"type":54,"tag":295,"props":553,"children":555},{"class":297,"line":554},10,[556],{"type":54,"tag":295,"props":557,"children":558},{},[559],{"type":60,"value":560},"FROM events\n",{"type":54,"tag":295,"props":562,"children":564},{"class":297,"line":563},11,[565],{"type":54,"tag":295,"props":566,"children":567},{},[568],{"type":60,"value":569},"WHERE $session_id = '\u003Csession_id>'\n",{"type":54,"tag":295,"props":571,"children":573},{"class":297,"line":572},12,[574],{"type":54,"tag":295,"props":575,"children":576},{},[577],{"type":60,"value":578},"ORDER BY timestamp ASC\n",{"type":54,"tag":295,"props":580,"children":582},{"class":297,"line":581},13,[583],{"type":54,"tag":295,"props":584,"children":585},{},[586],{"type":60,"value":587},"LIMIT 200\n",{"type":54,"tag":63,"props":589,"children":590},{},[591],{"type":60,"value":592},"For sessions with many events, focus on the most informative ones:",{"type":54,"tag":284,"props":594,"children":596},{"className":468,"code":595,"language":470,"meta":289,"style":289},"posthog:execute-sql\nSELECT\n    timestamp,\n    event,\n    properties.$current_url AS url,\n    if(event = '$exception', properties.$exception_values[1], null) AS exception_message,\n    if(event = '$exception', properties.$exception_types[1], null) AS exception_type\nFROM events\nWHERE $session_id = '\u003Csession_id>'\n    AND event IN ('$pageview', '$pageleave', '$autocapture', '$exception', '$rageclick')\nORDER BY timestamp ASC\nLIMIT 100\n",[597],{"type":54,"tag":110,"props":598,"children":599},{"__ignoreMap":289},[600,607,614,621,628,635,643,651,658,665,673,680],{"type":54,"tag":295,"props":601,"children":602},{"class":297,"line":298},[603],{"type":54,"tag":295,"props":604,"children":605},{},[606],{"type":60,"value":482},{"type":54,"tag":295,"props":608,"children":609},{"class":297,"line":308},[610],{"type":54,"tag":295,"props":611,"children":612},{},[613],{"type":60,"value":490},{"type":54,"tag":295,"props":615,"children":616},{"class":297,"line":318},[617],{"type":54,"tag":295,"props":618,"children":619},{},[620],{"type":60,"value":498},{"type":54,"tag":295,"props":622,"children":623},{"class":297,"line":359},[624],{"type":54,"tag":295,"props":625,"children":626},{},[627],{"type":60,"value":506},{"type":54,"tag":295,"props":629,"children":630},{"class":297,"line":509},[631],{"type":54,"tag":295,"props":632,"children":633},{},[634],{"type":60,"value":515},{"type":54,"tag":295,"props":636,"children":637},{"class":297,"line":518},[638],{"type":54,"tag":295,"props":639,"children":640},{},[641],{"type":60,"value":642},"    if(event = '$exception', properties.$exception_values[1], null) AS exception_message,\n",{"type":54,"tag":295,"props":644,"children":645},{"class":297,"line":527},[646],{"type":54,"tag":295,"props":647,"children":648},{},[649],{"type":60,"value":650},"    if(event = '$exception', properties.$exception_types[1], null) AS exception_type\n",{"type":54,"tag":295,"props":652,"children":653},{"class":297,"line":536},[654],{"type":54,"tag":295,"props":655,"children":656},{},[657],{"type":60,"value":560},{"type":54,"tag":295,"props":659,"children":660},{"class":297,"line":545},[661],{"type":54,"tag":295,"props":662,"children":663},{},[664],{"type":60,"value":569},{"type":54,"tag":295,"props":666,"children":667},{"class":297,"line":554},[668],{"type":54,"tag":295,"props":669,"children":670},{},[671],{"type":60,"value":672},"    AND event IN ('$pageview', '$pageleave', '$autocapture', '$exception', '$rageclick')\n",{"type":54,"tag":295,"props":674,"children":675},{"class":297,"line":563},[676],{"type":54,"tag":295,"props":677,"children":678},{},[679],{"type":60,"value":578},{"type":54,"tag":295,"props":681,"children":682},{"class":297,"line":572},[683],{"type":54,"tag":295,"props":684,"children":685},{},[686],{"type":60,"value":687},"LIMIT 100\n",{"type":54,"tag":272,"props":689,"children":691},{"id":690},"step-3-check-for-linked-error-tracking-issues",[692],{"type":60,"value":693},"Step 3 — Check for linked error tracking issues",{"type":54,"tag":63,"props":695,"children":696},{},[697],{"type":60,"value":698},"If the recording has console errors or exceptions, find related error tracking issues:",{"type":54,"tag":284,"props":700,"children":702},{"className":468,"code":701,"language":470,"meta":289,"style":289},"posthog:execute-sql\nSELECT DISTINCT\n    properties.$exception_fingerprint AS fingerprint,\n    properties.$exception_types[1] AS type,\n    properties.$exception_values[1] AS message,\n    count() AS occurrences\nFROM events\nWHERE $session_id = '\u003Csession_id>'\n    AND event = '$exception'\nGROUP BY fingerprint, type, message\nORDER BY occurrences DESC\nLIMIT 10\n",[703],{"type":54,"tag":110,"props":704,"children":705},{"__ignoreMap":289},[706,713,721,729,737,745,753,760,767,775,783,791],{"type":54,"tag":295,"props":707,"children":708},{"class":297,"line":298},[709],{"type":54,"tag":295,"props":710,"children":711},{},[712],{"type":60,"value":482},{"type":54,"tag":295,"props":714,"children":715},{"class":297,"line":308},[716],{"type":54,"tag":295,"props":717,"children":718},{},[719],{"type":60,"value":720},"SELECT DISTINCT\n",{"type":54,"tag":295,"props":722,"children":723},{"class":297,"line":318},[724],{"type":54,"tag":295,"props":725,"children":726},{},[727],{"type":60,"value":728},"    properties.$exception_fingerprint AS fingerprint,\n",{"type":54,"tag":295,"props":730,"children":731},{"class":297,"line":359},[732],{"type":54,"tag":295,"props":733,"children":734},{},[735],{"type":60,"value":736},"    properties.$exception_types[1] AS type,\n",{"type":54,"tag":295,"props":738,"children":739},{"class":297,"line":509},[740],{"type":54,"tag":295,"props":741,"children":742},{},[743],{"type":60,"value":744},"    properties.$exception_values[1] AS message,\n",{"type":54,"tag":295,"props":746,"children":747},{"class":297,"line":518},[748],{"type":54,"tag":295,"props":749,"children":750},{},[751],{"type":60,"value":752},"    count() AS occurrences\n",{"type":54,"tag":295,"props":754,"children":755},{"class":297,"line":527},[756],{"type":54,"tag":295,"props":757,"children":758},{},[759],{"type":60,"value":560},{"type":54,"tag":295,"props":761,"children":762},{"class":297,"line":536},[763],{"type":54,"tag":295,"props":764,"children":765},{},[766],{"type":60,"value":569},{"type":54,"tag":295,"props":768,"children":769},{"class":297,"line":545},[770],{"type":54,"tag":295,"props":771,"children":772},{},[773],{"type":60,"value":774},"    AND event = '$exception'\n",{"type":54,"tag":295,"props":776,"children":777},{"class":297,"line":554},[778],{"type":54,"tag":295,"props":779,"children":780},{},[781],{"type":60,"value":782},"GROUP BY fingerprint, type, message\n",{"type":54,"tag":295,"props":784,"children":785},{"class":297,"line":563},[786],{"type":54,"tag":295,"props":787,"children":788},{},[789],{"type":60,"value":790},"ORDER BY occurrences DESC\n",{"type":54,"tag":295,"props":792,"children":793},{"class":297,"line":572},[794],{"type":54,"tag":295,"props":795,"children":796},{},[797],{"type":60,"value":798},"LIMIT 10\n",{"type":54,"tag":63,"props":800,"children":801},{},[802],{"type":60,"value":803},"If fingerprints are found, search for the corresponding error tracking issues\nto provide links and status:",{"type":54,"tag":284,"props":805,"children":807},{"className":286,"code":806,"language":288,"meta":289,"style":289},"posthog:query-error-tracking-issues-list\n{\n  \"searchQuery\": \"\u003Cexception_type or message>\"\n}\n",[808],{"type":54,"tag":110,"props":809,"children":810},{"__ignoreMap":289},[811,819,826,859],{"type":54,"tag":295,"props":812,"children":813},{"class":297,"line":298},[814],{"type":54,"tag":295,"props":815,"children":816},{"style":302},[817],{"type":60,"value":818},"posthog:query-error-tracking-issues-list\n",{"type":54,"tag":295,"props":820,"children":821},{"class":297,"line":308},[822],{"type":54,"tag":295,"props":823,"children":824},{"style":312},[825],{"type":60,"value":315},{"type":54,"tag":295,"props":827,"children":828},{"class":297,"line":318},[829,833,838,842,846,850,855],{"type":54,"tag":295,"props":830,"children":831},{"style":312},[832],{"type":60,"value":324},{"type":54,"tag":295,"props":834,"children":835},{"style":327},[836],{"type":60,"value":837},"searchQuery",{"type":54,"tag":295,"props":839,"children":840},{"style":312},[841],{"type":60,"value":335},{"type":54,"tag":295,"props":843,"children":844},{"style":312},[845],{"type":60,"value":340},{"type":54,"tag":295,"props":847,"children":848},{"style":312},[849],{"type":60,"value":345},{"type":54,"tag":295,"props":851,"children":852},{"style":348},[853],{"type":60,"value":854},"\u003Cexception_type or message>",{"type":54,"tag":295,"props":856,"children":857},{"style":312},[858],{"type":60,"value":356},{"type":54,"tag":295,"props":860,"children":861},{"class":297,"line":359},[862],{"type":54,"tag":295,"props":863,"children":864},{"style":312},[865],{"type":60,"value":365},{"type":54,"tag":272,"props":867,"children":869},{"id":868},"step-4-synthesize-the-investigation",[870],{"type":60,"value":871},"Step 4 — Synthesize the investigation",{"type":54,"tag":63,"props":873,"children":874},{},[875],{"type":60,"value":876},"Present the findings as a coherent narrative:",{"type":54,"tag":878,"props":879,"children":880},"ol",{},[881,893,903,913,923],{"type":54,"tag":882,"props":883,"children":884},"li",{},[885,891],{"type":54,"tag":886,"props":887,"children":888},"strong",{},[889],{"type":60,"value":890},"Who",{"type":60,"value":892}," — person properties (name, email, country, plan, etc.)",{"type":54,"tag":882,"props":894,"children":895},{},[896,901],{"type":54,"tag":886,"props":897,"children":898},{},[899],{"type":60,"value":900},"What",{"type":60,"value":902}," — sequence of pages visited and key actions taken",{"type":54,"tag":882,"props":904,"children":905},{},[906,911],{"type":54,"tag":886,"props":907,"children":908},{},[909],{"type":60,"value":910},"Problems",{"type":60,"value":912}," — exceptions, console errors, rage clicks, and their frequency",{"type":54,"tag":882,"props":914,"children":915},{},[916,921],{"type":54,"tag":886,"props":917,"children":918},{},[919],{"type":60,"value":920},"Related issues",{"type":60,"value":922}," — linked error tracking issues with their status (active\u002Fresolved)",{"type":54,"tag":882,"props":924,"children":925},{},[926,931],{"type":54,"tag":886,"props":927,"children":928},{},[929],{"type":60,"value":930},"Context",{"type":60,"value":932}," — session duration, device\u002Fbrowser, activity score",{"type":54,"tag":272,"props":934,"children":936},{"id":935},"optional-ai-summary-via-replay-vision",[937],{"type":60,"value":938},"Optional: AI summary via Replay Vision",{"type":54,"tag":63,"props":940,"children":941},{},[942],{"type":60,"value":943},"If the user wants a deeper analysis without reading through events manually,\noffer a Replay Vision summary. Follow \"check-then-scan\" — don't scan blindly,\na scanner can only observe a given session once.",{"type":54,"tag":878,"props":945,"children":946},{},[947,1107,1204,1311],{"type":54,"tag":882,"props":948,"children":949},{},[950,955,957,1019,1023,1025,1031,1033,1039,1041,1047,1048,1054,1056,1062,1064,1070,1071,1077,1078,1084,1085,1091,1092,1098,1099,1105],{"type":54,"tag":886,"props":951,"children":952},{},[953],{"type":60,"value":954},"Check for an existing summary.",{"type":60,"value":956}," A scheduled scanner may already have one:",{"type":54,"tag":284,"props":958,"children":960},{"className":286,"code":959,"language":288,"meta":289,"style":289},"posthog:vision-observations-list\n{\n  \"session_id\": \"\u003Csession_id>\"\n}\n",[961],{"type":54,"tag":110,"props":962,"children":963},{"__ignoreMap":289},[964,972,979,1012],{"type":54,"tag":295,"props":965,"children":966},{"class":297,"line":298},[967],{"type":54,"tag":295,"props":968,"children":969},{"style":302},[970],{"type":60,"value":971},"posthog:vision-observations-list\n",{"type":54,"tag":295,"props":973,"children":974},{"class":297,"line":308},[975],{"type":54,"tag":295,"props":976,"children":977},{"style":312},[978],{"type":60,"value":315},{"type":54,"tag":295,"props":980,"children":981},{"class":297,"line":318},[982,986,991,995,999,1003,1008],{"type":54,"tag":295,"props":983,"children":984},{"style":312},[985],{"type":60,"value":324},{"type":54,"tag":295,"props":987,"children":988},{"style":327},[989],{"type":60,"value":990},"session_id",{"type":54,"tag":295,"props":992,"children":993},{"style":312},[994],{"type":60,"value":335},{"type":54,"tag":295,"props":996,"children":997},{"style":312},[998],{"type":60,"value":340},{"type":54,"tag":295,"props":1000,"children":1001},{"style":312},[1002],{"type":60,"value":345},{"type":54,"tag":295,"props":1004,"children":1005},{"style":348},[1006],{"type":60,"value":1007},"\u003Csession_id>",{"type":54,"tag":295,"props":1009,"children":1010},{"style":312},[1011],{"type":60,"value":356},{"type":54,"tag":295,"props":1013,"children":1014},{"class":297,"line":359},[1015],{"type":54,"tag":295,"props":1016,"children":1017},{"style":312},[1018],{"type":60,"value":365},{"type":54,"tag":1020,"props":1021,"children":1022},"br",{},[],{"type":60,"value":1024},"Look for an observation where ",{"type":54,"tag":110,"props":1026,"children":1028},{"className":1027},[],[1029],{"type":60,"value":1030},"scanner_snapshot.scanner_type",{"type":60,"value":1032}," is ",{"type":54,"tag":110,"props":1034,"children":1036},{"className":1035},[],[1037],{"type":60,"value":1038},"summarizer",{"type":60,"value":1040},"\nand ",{"type":54,"tag":110,"props":1042,"children":1044},{"className":1043},[],[1045],{"type":60,"value":1046},"status",{"type":60,"value":1032},{"type":54,"tag":110,"props":1049,"children":1051},{"className":1050},[],[1052],{"type":60,"value":1053},"succeeded",{"type":60,"value":1055},". If found, read ",{"type":54,"tag":110,"props":1057,"children":1059},{"className":1058},[],[1060],{"type":60,"value":1061},"scanner_result.model_output",{"type":60,"value":1063},"\n(",{"type":54,"tag":110,"props":1065,"children":1067},{"className":1066},[],[1068],{"type":60,"value":1069},"title",{"type":60,"value":378},{"type":54,"tag":110,"props":1072,"children":1074},{"className":1073},[],[1075],{"type":60,"value":1076},"summary",{"type":60,"value":378},{"type":54,"tag":110,"props":1079,"children":1081},{"className":1080},[],[1082],{"type":60,"value":1083},"intent",{"type":60,"value":378},{"type":54,"tag":110,"props":1086,"children":1088},{"className":1087},[],[1089],{"type":60,"value":1090},"outcome",{"type":60,"value":378},{"type":54,"tag":110,"props":1093,"children":1095},{"className":1094},[],[1096],{"type":60,"value":1097},"friction_points",{"type":60,"value":378},{"type":54,"tag":110,"props":1100,"children":1102},{"className":1101},[],[1103],{"type":60,"value":1104},"keywords",{"type":60,"value":1106},") — done,\nno new scan needed.",{"type":54,"tag":882,"props":1108,"children":1109},{},[1110,1115,1117,1178],{"type":54,"tag":886,"props":1111,"children":1112},{},[1113],{"type":60,"value":1114},"Find a summarizer scanner",{"type":60,"value":1116}," if none exists yet:",{"type":54,"tag":284,"props":1118,"children":1120},{"className":286,"code":1119,"language":288,"meta":289,"style":289},"posthog:vision-scanners-list\n{\n  \"scanner_type\": \"summarizer\"\n}\n",[1121],{"type":54,"tag":110,"props":1122,"children":1123},{"__ignoreMap":289},[1124,1132,1139,1171],{"type":54,"tag":295,"props":1125,"children":1126},{"class":297,"line":298},[1127],{"type":54,"tag":295,"props":1128,"children":1129},{"style":302},[1130],{"type":60,"value":1131},"posthog:vision-scanners-list\n",{"type":54,"tag":295,"props":1133,"children":1134},{"class":297,"line":308},[1135],{"type":54,"tag":295,"props":1136,"children":1137},{"style":312},[1138],{"type":60,"value":315},{"type":54,"tag":295,"props":1140,"children":1141},{"class":297,"line":318},[1142,1146,1151,1155,1159,1163,1167],{"type":54,"tag":295,"props":1143,"children":1144},{"style":312},[1145],{"type":60,"value":324},{"type":54,"tag":295,"props":1147,"children":1148},{"style":327},[1149],{"type":60,"value":1150},"scanner_type",{"type":54,"tag":295,"props":1152,"children":1153},{"style":312},[1154],{"type":60,"value":335},{"type":54,"tag":295,"props":1156,"children":1157},{"style":312},[1158],{"type":60,"value":340},{"type":54,"tag":295,"props":1160,"children":1161},{"style":312},[1162],{"type":60,"value":345},{"type":54,"tag":295,"props":1164,"children":1165},{"style":348},[1166],{"type":60,"value":1038},{"type":54,"tag":295,"props":1168,"children":1169},{"style":312},[1170],{"type":60,"value":356},{"type":54,"tag":295,"props":1172,"children":1173},{"class":297,"line":359},[1174],{"type":54,"tag":295,"props":1175,"children":1176},{"style":312},[1177],{"type":60,"value":365},{"type":54,"tag":1179,"props":1180,"children":1181},"ul",{},[1182,1187,1192],{"type":54,"tag":882,"props":1183,"children":1184},{},[1185],{"type":60,"value":1186},"Exactly one → use it.",{"type":54,"tag":882,"props":1188,"children":1189},{},[1190],{"type":60,"value":1191},"More than one → show the user the scanners (name + prompt) and ask which to use.",{"type":54,"tag":882,"props":1193,"children":1194},{},[1195,1197,1202],{"type":60,"value":1196},"None → no summarizer scanner exists. See\n",{"type":54,"tag":886,"props":1198,"children":1199},{},[1200],{"type":60,"value":1201},"No summarizer scanner? Run a temporary one",{"type":60,"value":1203}," below.",{"type":54,"tag":882,"props":1205,"children":1206},{},[1207,1212,1214],{"type":54,"tag":886,"props":1208,"children":1209},{},[1210],{"type":60,"value":1211},"Scan the session",{"type":60,"value":1213}," with the chosen scanner. Warn this is async and takes\nseveral minutes (rasterize + LLM):",{"type":54,"tag":284,"props":1215,"children":1217},{"className":286,"code":1216,"language":288,"meta":289,"style":289},"posthog:vision-scanners-scan-session\n{\n  \"id\": \"\u003Cscanner_id>\",\n  \"session_id\": \"\u003Csession_id>\"\n}\n",[1218],{"type":54,"tag":110,"props":1219,"children":1220},{"__ignoreMap":289},[1221,1229,1236,1273,1304],{"type":54,"tag":295,"props":1222,"children":1223},{"class":297,"line":298},[1224],{"type":54,"tag":295,"props":1225,"children":1226},{"style":302},[1227],{"type":60,"value":1228},"posthog:vision-scanners-scan-session\n",{"type":54,"tag":295,"props":1230,"children":1231},{"class":297,"line":308},[1232],{"type":54,"tag":295,"props":1233,"children":1234},{"style":312},[1235],{"type":60,"value":315},{"type":54,"tag":295,"props":1237,"children":1238},{"class":297,"line":318},[1239,1243,1247,1251,1255,1259,1264,1268],{"type":54,"tag":295,"props":1240,"children":1241},{"style":312},[1242],{"type":60,"value":324},{"type":54,"tag":295,"props":1244,"children":1245},{"style":327},[1246],{"type":60,"value":330},{"type":54,"tag":295,"props":1248,"children":1249},{"style":312},[1250],{"type":60,"value":335},{"type":54,"tag":295,"props":1252,"children":1253},{"style":312},[1254],{"type":60,"value":340},{"type":54,"tag":295,"props":1256,"children":1257},{"style":312},[1258],{"type":60,"value":345},{"type":54,"tag":295,"props":1260,"children":1261},{"style":348},[1262],{"type":60,"value":1263},"\u003Cscanner_id>",{"type":54,"tag":295,"props":1265,"children":1266},{"style":312},[1267],{"type":60,"value":335},{"type":54,"tag":295,"props":1269,"children":1270},{"style":312},[1271],{"type":60,"value":1272},",\n",{"type":54,"tag":295,"props":1274,"children":1275},{"class":297,"line":359},[1276,1280,1284,1288,1292,1296,1300],{"type":54,"tag":295,"props":1277,"children":1278},{"style":312},[1279],{"type":60,"value":324},{"type":54,"tag":295,"props":1281,"children":1282},{"style":327},[1283],{"type":60,"value":990},{"type":54,"tag":295,"props":1285,"children":1286},{"style":312},[1287],{"type":60,"value":335},{"type":54,"tag":295,"props":1289,"children":1290},{"style":312},[1291],{"type":60,"value":340},{"type":54,"tag":295,"props":1293,"children":1294},{"style":312},[1295],{"type":60,"value":345},{"type":54,"tag":295,"props":1297,"children":1298},{"style":348},[1299],{"type":60,"value":1007},{"type":54,"tag":295,"props":1301,"children":1302},{"style":312},[1303],{"type":60,"value":356},{"type":54,"tag":295,"props":1305,"children":1306},{"class":297,"line":509},[1307],{"type":54,"tag":295,"props":1308,"children":1309},{"style":312},[1310],{"type":60,"value":365},{"type":54,"tag":882,"props":1312,"children":1313},{},[1314,1319,1321,1327,1329,1334],{"type":54,"tag":886,"props":1315,"children":1316},{},[1317],{"type":60,"value":1318},"Retrieve the result",{"type":60,"value":1320}," by polling ",{"type":54,"tag":110,"props":1322,"children":1324},{"className":1323},[],[1325],{"type":60,"value":1326},"vision-observations-list",{"type":60,"value":1328}," (step 1) until\nthe new observation reaches ",{"type":54,"tag":110,"props":1330,"children":1332},{"className":1331},[],[1333],{"type":60,"value":1053},{"type":60,"value":1335},".",{"type":54,"tag":272,"props":1337,"children":1339},{"id":1338},"no-summarizer-scanner-run-a-temporary-one",[1340],{"type":60,"value":1201},{"type":54,"tag":63,"props":1342,"children":1343},{},[1344,1346,1351],{"type":60,"value":1345},"If the project has no summarizer scanner, you can still produce a one-off summary\nwith a throwaway scanner — but ",{"type":54,"tag":886,"props":1347,"children":1348},{},[1349],{"type":60,"value":1350},"ask the user's permission before creating anything",{"type":60,"value":1335},{"type":54,"tag":878,"props":1353,"children":1354},{},[1355,1365,1666,1796],{"type":54,"tag":882,"props":1356,"children":1357},{},[1358,1363],{"type":54,"tag":886,"props":1359,"children":1360},{},[1361],{"type":60,"value":1362},"Ask permission",{"type":60,"value":1364}," to create a temporary summarizer scanner just to summarize\nthis one session.",{"type":54,"tag":882,"props":1366,"children":1367},{},[1368,1373,1375],{"type":54,"tag":886,"props":1369,"children":1370},{},[1371],{"type":60,"value":1372},"Create it disabled",{"type":60,"value":1374}," so it never sweeps on a schedule — a disabled scanner\nonly runs when you trigger it on demand, so it won't touch other sessions or\nburn quota in the background:",{"type":54,"tag":284,"props":1376,"children":1378},{"className":286,"code":1377,"language":288,"meta":289,"style":289},"posthog:vision-scanners-create\n{\n  \"name\": \"Temporary on-demand summary\",\n  \"scanner_type\": \"summarizer\",\n  \"scanner_config\": {\n    \"prompt\": \"Summarize what the user was trying to do, whether they succeeded, and any friction they hit.\"\n  },\n  \"query\": { \"kind\": \"RecordingsQuery\" },\n  \"model\": \"gemini-3.6-flash\",\n  \"enabled\": false\n}\n",[1379],{"type":54,"tag":110,"props":1380,"children":1381},{"__ignoreMap":289},[1382,1390,1397,1434,1469,1494,1529,1537,1597,1634,1659],{"type":54,"tag":295,"props":1383,"children":1384},{"class":297,"line":298},[1385],{"type":54,"tag":295,"props":1386,"children":1387},{"style":302},[1388],{"type":60,"value":1389},"posthog:vision-scanners-create\n",{"type":54,"tag":295,"props":1391,"children":1392},{"class":297,"line":308},[1393],{"type":54,"tag":295,"props":1394,"children":1395},{"style":312},[1396],{"type":60,"value":315},{"type":54,"tag":295,"props":1398,"children":1399},{"class":297,"line":318},[1400,1404,1409,1413,1417,1421,1426,1430],{"type":54,"tag":295,"props":1401,"children":1402},{"style":312},[1403],{"type":60,"value":324},{"type":54,"tag":295,"props":1405,"children":1406},{"style":327},[1407],{"type":60,"value":1408},"name",{"type":54,"tag":295,"props":1410,"children":1411},{"style":312},[1412],{"type":60,"value":335},{"type":54,"tag":295,"props":1414,"children":1415},{"style":312},[1416],{"type":60,"value":340},{"type":54,"tag":295,"props":1418,"children":1419},{"style":312},[1420],{"type":60,"value":345},{"type":54,"tag":295,"props":1422,"children":1423},{"style":348},[1424],{"type":60,"value":1425},"Temporary on-demand summary",{"type":54,"tag":295,"props":1427,"children":1428},{"style":312},[1429],{"type":60,"value":335},{"type":54,"tag":295,"props":1431,"children":1432},{"style":312},[1433],{"type":60,"value":1272},{"type":54,"tag":295,"props":1435,"children":1436},{"class":297,"line":359},[1437,1441,1445,1449,1453,1457,1461,1465],{"type":54,"tag":295,"props":1438,"children":1439},{"style":312},[1440],{"type":60,"value":324},{"type":54,"tag":295,"props":1442,"children":1443},{"style":327},[1444],{"type":60,"value":1150},{"type":54,"tag":295,"props":1446,"children":1447},{"style":312},[1448],{"type":60,"value":335},{"type":54,"tag":295,"props":1450,"children":1451},{"style":312},[1452],{"type":60,"value":340},{"type":54,"tag":295,"props":1454,"children":1455},{"style":312},[1456],{"type":60,"value":345},{"type":54,"tag":295,"props":1458,"children":1459},{"style":348},[1460],{"type":60,"value":1038},{"type":54,"tag":295,"props":1462,"children":1463},{"style":312},[1464],{"type":60,"value":335},{"type":54,"tag":295,"props":1466,"children":1467},{"style":312},[1468],{"type":60,"value":1272},{"type":54,"tag":295,"props":1470,"children":1471},{"class":297,"line":509},[1472,1476,1481,1485,1489],{"type":54,"tag":295,"props":1473,"children":1474},{"style":312},[1475],{"type":60,"value":324},{"type":54,"tag":295,"props":1477,"children":1478},{"style":327},[1479],{"type":60,"value":1480},"scanner_config",{"type":54,"tag":295,"props":1482,"children":1483},{"style":312},[1484],{"type":60,"value":335},{"type":54,"tag":295,"props":1486,"children":1487},{"style":312},[1488],{"type":60,"value":340},{"type":54,"tag":295,"props":1490,"children":1491},{"style":312},[1492],{"type":60,"value":1493}," {\n",{"type":54,"tag":295,"props":1495,"children":1496},{"class":297,"line":518},[1497,1502,1508,1512,1516,1520,1525],{"type":54,"tag":295,"props":1498,"children":1499},{"style":312},[1500],{"type":60,"value":1501},"    \"",{"type":54,"tag":295,"props":1503,"children":1505},{"style":1504},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[1506],{"type":60,"value":1507},"prompt",{"type":54,"tag":295,"props":1509,"children":1510},{"style":312},[1511],{"type":60,"value":335},{"type":54,"tag":295,"props":1513,"children":1514},{"style":312},[1515],{"type":60,"value":340},{"type":54,"tag":295,"props":1517,"children":1518},{"style":312},[1519],{"type":60,"value":345},{"type":54,"tag":295,"props":1521,"children":1522},{"style":348},[1523],{"type":60,"value":1524},"Summarize what the user was trying to do, whether they succeeded, and any friction they hit.",{"type":54,"tag":295,"props":1526,"children":1527},{"style":312},[1528],{"type":60,"value":356},{"type":54,"tag":295,"props":1530,"children":1531},{"class":297,"line":527},[1532],{"type":54,"tag":295,"props":1533,"children":1534},{"style":312},[1535],{"type":60,"value":1536},"  },\n",{"type":54,"tag":295,"props":1538,"children":1539},{"class":297,"line":536},[1540,1544,1549,1553,1557,1562,1566,1571,1575,1579,1583,1588,1592],{"type":54,"tag":295,"props":1541,"children":1542},{"style":312},[1543],{"type":60,"value":324},{"type":54,"tag":295,"props":1545,"children":1546},{"style":327},[1547],{"type":60,"value":1548},"query",{"type":54,"tag":295,"props":1550,"children":1551},{"style":312},[1552],{"type":60,"value":335},{"type":54,"tag":295,"props":1554,"children":1555},{"style":312},[1556],{"type":60,"value":340},{"type":54,"tag":295,"props":1558,"children":1559},{"style":312},[1560],{"type":60,"value":1561}," {",{"type":54,"tag":295,"props":1563,"children":1564},{"style":312},[1565],{"type":60,"value":345},{"type":54,"tag":295,"props":1567,"children":1568},{"style":1504},[1569],{"type":60,"value":1570},"kind",{"type":54,"tag":295,"props":1572,"children":1573},{"style":312},[1574],{"type":60,"value":335},{"type":54,"tag":295,"props":1576,"children":1577},{"style":312},[1578],{"type":60,"value":340},{"type":54,"tag":295,"props":1580,"children":1581},{"style":312},[1582],{"type":60,"value":345},{"type":54,"tag":295,"props":1584,"children":1585},{"style":348},[1586],{"type":60,"value":1587},"RecordingsQuery",{"type":54,"tag":295,"props":1589,"children":1590},{"style":312},[1591],{"type":60,"value":335},{"type":54,"tag":295,"props":1593,"children":1594},{"style":312},[1595],{"type":60,"value":1596}," },\n",{"type":54,"tag":295,"props":1598,"children":1599},{"class":297,"line":545},[1600,1604,1609,1613,1617,1621,1626,1630],{"type":54,"tag":295,"props":1601,"children":1602},{"style":312},[1603],{"type":60,"value":324},{"type":54,"tag":295,"props":1605,"children":1606},{"style":327},[1607],{"type":60,"value":1608},"model",{"type":54,"tag":295,"props":1610,"children":1611},{"style":312},[1612],{"type":60,"value":335},{"type":54,"tag":295,"props":1614,"children":1615},{"style":312},[1616],{"type":60,"value":340},{"type":54,"tag":295,"props":1618,"children":1619},{"style":312},[1620],{"type":60,"value":345},{"type":54,"tag":295,"props":1622,"children":1623},{"style":348},[1624],{"type":60,"value":1625},"gemini-3.6-flash",{"type":54,"tag":295,"props":1627,"children":1628},{"style":312},[1629],{"type":60,"value":335},{"type":54,"tag":295,"props":1631,"children":1632},{"style":312},[1633],{"type":60,"value":1272},{"type":54,"tag":295,"props":1635,"children":1636},{"class":297,"line":554},[1637,1641,1646,1650,1654],{"type":54,"tag":295,"props":1638,"children":1639},{"style":312},[1640],{"type":60,"value":324},{"type":54,"tag":295,"props":1642,"children":1643},{"style":327},[1644],{"type":60,"value":1645},"enabled",{"type":54,"tag":295,"props":1647,"children":1648},{"style":312},[1649],{"type":60,"value":335},{"type":54,"tag":295,"props":1651,"children":1652},{"style":312},[1653],{"type":60,"value":340},{"type":54,"tag":295,"props":1655,"children":1656},{"style":312},[1657],{"type":60,"value":1658}," false\n",{"type":54,"tag":295,"props":1660,"children":1661},{"class":297,"line":563},[1662],{"type":54,"tag":295,"props":1663,"children":1664},{"style":312},[1665],{"type":60,"value":365},{"type":54,"tag":882,"props":1667,"children":1668},{},[1669,1674,1676,1771,1774,1776,1781,1783,1788,1790,1795],{"type":54,"tag":886,"props":1670,"children":1671},{},[1672],{"type":60,"value":1673},"Scan this session on demand",{"type":60,"value":1675}," with the new scanner, then poll for the result:",{"type":54,"tag":284,"props":1677,"children":1679},{"className":286,"code":1678,"language":288,"meta":289,"style":289},"posthog:vision-scanners-scan-session\n{\n  \"id\": \"\u003Cnew_scanner_id>\",\n  \"session_id\": \"\u003Csession_id>\"\n}\n",[1680],{"type":54,"tag":110,"props":1681,"children":1682},{"__ignoreMap":289},[1683,1690,1697,1733,1764],{"type":54,"tag":295,"props":1684,"children":1685},{"class":297,"line":298},[1686],{"type":54,"tag":295,"props":1687,"children":1688},{"style":302},[1689],{"type":60,"value":1228},{"type":54,"tag":295,"props":1691,"children":1692},{"class":297,"line":308},[1693],{"type":54,"tag":295,"props":1694,"children":1695},{"style":312},[1696],{"type":60,"value":315},{"type":54,"tag":295,"props":1698,"children":1699},{"class":297,"line":318},[1700,1704,1708,1712,1716,1720,1725,1729],{"type":54,"tag":295,"props":1701,"children":1702},{"style":312},[1703],{"type":60,"value":324},{"type":54,"tag":295,"props":1705,"children":1706},{"style":327},[1707],{"type":60,"value":330},{"type":54,"tag":295,"props":1709,"children":1710},{"style":312},[1711],{"type":60,"value":335},{"type":54,"tag":295,"props":1713,"children":1714},{"style":312},[1715],{"type":60,"value":340},{"type":54,"tag":295,"props":1717,"children":1718},{"style":312},[1719],{"type":60,"value":345},{"type":54,"tag":295,"props":1721,"children":1722},{"style":348},[1723],{"type":60,"value":1724},"\u003Cnew_scanner_id>",{"type":54,"tag":295,"props":1726,"children":1727},{"style":312},[1728],{"type":60,"value":335},{"type":54,"tag":295,"props":1730,"children":1731},{"style":312},[1732],{"type":60,"value":1272},{"type":54,"tag":295,"props":1734,"children":1735},{"class":297,"line":359},[1736,1740,1744,1748,1752,1756,1760],{"type":54,"tag":295,"props":1737,"children":1738},{"style":312},[1739],{"type":60,"value":324},{"type":54,"tag":295,"props":1741,"children":1742},{"style":327},[1743],{"type":60,"value":990},{"type":54,"tag":295,"props":1745,"children":1746},{"style":312},[1747],{"type":60,"value":335},{"type":54,"tag":295,"props":1749,"children":1750},{"style":312},[1751],{"type":60,"value":340},{"type":54,"tag":295,"props":1753,"children":1754},{"style":312},[1755],{"type":60,"value":345},{"type":54,"tag":295,"props":1757,"children":1758},{"style":348},[1759],{"type":60,"value":1007},{"type":54,"tag":295,"props":1761,"children":1762},{"style":312},[1763],{"type":60,"value":356},{"type":54,"tag":295,"props":1765,"children":1766},{"class":297,"line":509},[1767],{"type":54,"tag":295,"props":1768,"children":1769},{"style":312},[1770],{"type":60,"value":365},{"type":54,"tag":1020,"props":1772,"children":1773},{},[],{"type":60,"value":1775},"Poll ",{"type":54,"tag":110,"props":1777,"children":1779},{"className":1778},[],[1780],{"type":60,"value":1326},{"type":60,"value":1782}," until the observation reaches ",{"type":54,"tag":110,"props":1784,"children":1786},{"className":1785},[],[1787],{"type":60,"value":1053},{"type":60,"value":1789}," and\nread ",{"type":54,"tag":110,"props":1791,"children":1793},{"className":1792},[],[1794],{"type":60,"value":1061},{"type":60,"value":1335},{"type":54,"tag":882,"props":1797,"children":1798},{},[1799,1804,1806,1812],{"type":54,"tag":886,"props":1800,"children":1801},{},[1802],{"type":60,"value":1803},"Ask whether to keep or delete the scanner.",{"type":60,"value":1805}," Once you have the observation,\nask the user if they want to keep the temporary scanner or delete it with\n",{"type":54,"tag":110,"props":1807,"children":1809},{"className":1808},[],[1810],{"type":60,"value":1811},"vision-scanners-delete",{"type":60,"value":1813},". Deleting is safe: the summary you just read is also\nemitted as an event that persists after the scanner is gone, so cleaning up the\ntemporary scanner does not lose the result.",{"type":54,"tag":69,"props":1815,"children":1817},{"id":1816},"tips",[1818],{"type":60,"value":1819},"Tips",{"type":54,"tag":1179,"props":1821,"children":1822},{},[1823,1828,1833,1838,1851],{"type":54,"tag":882,"props":1824,"children":1825},{},[1826],{"type":60,"value":1827},"Run steps 1-3 in parallel when possible — they're independent queries.",{"type":54,"tag":882,"props":1829,"children":1830},{},[1831],{"type":60,"value":1832},"If the recording has very few events, the session was likely very short.\nNote this rather than suggesting something is broken.",{"type":54,"tag":882,"props":1834,"children":1835},{},[1836],{"type":60,"value":1837},"Console error count from the recording metadata is a good signal for whether\nto dig into exceptions. If it's 0, skip step 3.",{"type":54,"tag":882,"props":1839,"children":1840},{},[1841,1843,1849],{"type":60,"value":1842},"The ",{"type":54,"tag":110,"props":1844,"children":1846},{"className":1845},[],[1847],{"type":60,"value":1848},"start_url",{"type":60,"value":1850}," from the recording tells you where the user's journey began —\nuse this to frame the narrative.",{"type":54,"tag":882,"props":1852,"children":1853},{},[1854,1856,1861],{"type":60,"value":1855},"If ",{"type":54,"tag":110,"props":1857,"children":1859},{"className":1858},[],[1860],{"type":60,"value":384},{"type":60,"value":1862}," is null on the recording, the user was anonymous.\nPerson properties won't be available, but events still are.",{"type":54,"tag":1864,"props":1865,"children":1866},"style",{},[1867],{"type":60,"value":1868},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1870,"total":1967},[1871,1884,1896,1908,1921,1934,1950],{"slug":1872,"name":1872,"fn":1873,"description":1874,"org":1875,"tags":1876,"stars":23,"repoUrl":24,"updatedAt":1883},"analyzing-expensive-users","analyze expensive users in AI observability","Analyze the most expensive users in AI observability and explain why they cost so much. Use when the user asks about top spenders, expensive users, per-user LLM cost, user-level cost drivers, or patterns behind high AI observability spend.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1877,1878,1881,1882],{"name":18,"slug":19,"type":15},{"name":1879,"slug":1880,"type":15},"Cost Optimization","cost-optimization",{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},"2026-07-28T05:34:11.117757",{"slug":1885,"name":1885,"fn":1886,"description":1887,"org":1888,"tags":1889,"stars":23,"repoUrl":24,"updatedAt":1895},"auditing-endpoints","audit PostHog project endpoints","Audit every endpoint in a PostHog project for staleness, failed materialisations, and unused materialised versions. Use when the user asks \"what endpoints can I clean up?\", \"are any of my endpoints broken?\", \"which materialised versions are still being called?\", or wants a one-shot cleanup pass over the Endpoints product. Produces a prioritised report grouped by issue type, with recommended actions but does not modify anything without explicit confirmation.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1890,1891,1894],{"name":18,"slug":19,"type":15},{"name":1892,"slug":1893,"type":15},"Audit","audit",{"name":9,"slug":8,"type":15},"2026-06-08T08:08:33.693989",{"slug":1897,"name":1897,"fn":1898,"description":1899,"org":1900,"tags":1901,"stars":23,"repoUrl":24,"updatedAt":1907},"auditing-warehouse-source-health","audit PostHog data warehouse source health","Audit the health of a PostHog project's data warehouse sources and syncs — find every broken or degraded source connection, sync schema, and webhook channel. Use when the user asks \"why are my imports failing?\", \"what's broken with my sources?\", \"why is my warehouse data stale?\", or wants a one-shot triage of source\u002Fsync health before deciding where to dig in. Produces a prioritized report grouped by severity, with recommended next steps. For materialized-view health use `auditing-warehouse-view-health`; for a single failing sync use `diagnosing-failed-warehouse-syncs`.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1902,1903,1905,1906],{"name":1892,"slug":1893,"type":15},{"name":1904,"slug":32,"type":15},"Data Warehouse",{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},"2026-06-18T08:22:57.67984",{"slug":1909,"name":1909,"fn":1910,"description":1911,"org":1912,"tags":1913,"stars":23,"repoUrl":24,"updatedAt":1920},"auditing-warehouse-view-health","audit PostHog materialized view health","Audit the health of a PostHog project's materialized views (saved queries) — find every failed materialization and flag unused or stale materialized views that cost storage and compute. Use when the user asks \"which of my views are broken?\", \"why is this materialized view failing?\", \"are any of my views wasting compute?\", or wants a one-shot triage of view health. For source\u002Fsync health use `auditing-warehouse-source-health`.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1914,1915,1916,1919],{"name":1892,"slug":1893,"type":15},{"name":1904,"slug":32,"type":15},{"name":1917,"slug":1918,"type":15},"Performance","performance",{"name":9,"slug":8,"type":15},"2026-06-18T08:25:10.936787",{"slug":1922,"name":1922,"fn":1923,"description":1924,"org":1925,"tags":1926,"stars":23,"repoUrl":24,"updatedAt":1933},"authoring-error-tracking-alerts","author PostHog error tracking alerts","Author error tracking alerts that fire when an issue is created, reopened, or starts spiking. Use when the user asks to set up error notifications, route exceptions to Slack\u002Fwebhook\u002FLinear, or evaluate which error events are worth alerting on. Covers trigger-event selection, integration choice, dedup against existing alerts, and shipping with the canonical message body shape.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1927,1930,1931,1932],{"name":1928,"slug":1929,"type":15},"Alerting","alerting",{"name":21,"slug":22,"type":15},{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},"2026-06-18T08:24:40.318583",{"slug":1935,"name":1935,"fn":1936,"description":1937,"org":1938,"tags":1939,"stars":23,"repoUrl":24,"updatedAt":1949},"authoring-log-alerts","author log alerts in PostHog","Author useful, low-noise log alerts on services in a PostHog project. Use when the user asks to set up alerts for their logs, suggest alerts they should add, or evaluate whether a service is worth monitoring. Covers service triage, baseline characterisation, threshold drafting, back-testing via simulate, and shipping with a notification destination.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1940,1941,1944,1945,1948],{"name":18,"slug":19,"type":15},{"name":1942,"slug":1943,"type":15},"Monitoring","monitoring",{"name":13,"slug":14,"type":15},{"name":1946,"slug":1947,"type":15},"Operations","operations",{"name":9,"slug":8,"type":15},"2026-07-18T05:10:54.430898",{"slug":1951,"name":1951,"fn":1952,"description":1953,"org":1954,"tags":1955,"stars":23,"repoUrl":24,"updatedAt":1966},"building-workflows","build and edit PostHog workflows","Build, edit, test, enable, and monitor PostHog workflows over MCP. Author the action\u002Fedge graph so it runs and opens cleanly in the visual editor, then change drafts surgically with patch operations. Use when asked to build, set up, automate, change, fix, or debug a workflow, campaign, broadcast, drip sequence, or event-triggered automation in the workflows product.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1956,1959,1962,1963],{"name":1957,"slug":1958,"type":15},"Automation","automation",{"name":1960,"slug":1961,"type":15},"MCP","mcp",{"name":9,"slug":8,"type":15},{"name":1964,"slug":1965,"type":15},"Workflow Automation","workflow-automation","2026-07-28T05:34:12.167015",61,{"items":1969,"total":2086},[1970,1977,1983,1990,1997,2004,2012,2019,2033,2048,2058,2076],{"slug":1872,"name":1872,"fn":1873,"description":1874,"org":1971,"tags":1972,"stars":23,"repoUrl":24,"updatedAt":1883},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1973,1974,1975,1976],{"name":18,"slug":19,"type":15},{"name":1879,"slug":1880,"type":15},{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},{"slug":1885,"name":1885,"fn":1886,"description":1887,"org":1978,"tags":1979,"stars":23,"repoUrl":24,"updatedAt":1895},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1980,1981,1982],{"name":18,"slug":19,"type":15},{"name":1892,"slug":1893,"type":15},{"name":9,"slug":8,"type":15},{"slug":1897,"name":1897,"fn":1898,"description":1899,"org":1984,"tags":1985,"stars":23,"repoUrl":24,"updatedAt":1907},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1986,1987,1988,1989],{"name":1892,"slug":1893,"type":15},{"name":1904,"slug":32,"type":15},{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},{"slug":1909,"name":1909,"fn":1910,"description":1911,"org":1991,"tags":1992,"stars":23,"repoUrl":24,"updatedAt":1920},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[1993,1994,1995,1996],{"name":1892,"slug":1893,"type":15},{"name":1904,"slug":32,"type":15},{"name":1917,"slug":1918,"type":15},{"name":9,"slug":8,"type":15},{"slug":1922,"name":1922,"fn":1923,"description":1924,"org":1998,"tags":1999,"stars":23,"repoUrl":24,"updatedAt":1933},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2000,2001,2002,2003],{"name":1928,"slug":1929,"type":15},{"name":21,"slug":22,"type":15},{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},{"slug":1935,"name":1935,"fn":1936,"description":1937,"org":2005,"tags":2006,"stars":23,"repoUrl":24,"updatedAt":1949},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2007,2008,2009,2010,2011],{"name":18,"slug":19,"type":15},{"name":1942,"slug":1943,"type":15},{"name":13,"slug":14,"type":15},{"name":1946,"slug":1947,"type":15},{"name":9,"slug":8,"type":15},{"slug":1951,"name":1951,"fn":1952,"description":1953,"org":2013,"tags":2014,"stars":23,"repoUrl":24,"updatedAt":1966},{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2015,2016,2017,2018],{"name":1957,"slug":1958,"type":15},{"name":1960,"slug":1961,"type":15},{"name":9,"slug":8,"type":15},{"name":1964,"slug":1965,"type":15},{"slug":2020,"name":2020,"fn":2021,"description":2022,"org":2023,"tags":2024,"stars":23,"repoUrl":24,"updatedAt":2032},"check-posthog-loading","inspect PostHog SDK loading across URLs","Inspect how the PostHog JavaScript SDK is loaded across a list of URLs. Use to confirm consistent installation across pages, find pages missing the snippet, detect mismatched API keys or hosts between pages, and verify the load method (head snippet vs deferred vs array.js).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2025,2026,2027,2030,2031],{"name":18,"slug":19,"type":15},{"name":21,"slug":22,"type":15},{"name":2028,"slug":2029,"type":15},"Frontend","frontend",{"name":13,"slug":14,"type":15},{"name":9,"slug":8,"type":15},"2026-05-07T05:56:19.828048",{"slug":2034,"name":2034,"fn":2035,"description":2036,"org":2037,"tags":2038,"stars":23,"repoUrl":24,"updatedAt":2047},"consuming-endpoints-from-client-code","integrate PostHog endpoints into client applications","Wire a PostHog endpoint into a client app or SDK. Covers fetching the OpenAPI spec, generating a typed client with openapi-generator or @hey-api\u002Fopenapi-ts, sending the right auth header, shaping the variables payload (HogQL code_name vs insight breakdown property), handling rate-limit and materialised-endpoint error responses. Use when the user says \"how do I call my endpoint\", \"generate a client for this\", or \"what auth header do I use\".\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2039,2042,2043,2044],{"name":2040,"slug":2041,"type":15},"API Development","api-development",{"name":2028,"slug":2029,"type":15},{"name":9,"slug":8,"type":15},{"name":2045,"slug":2046,"type":15},"SDK","sdk","2026-06-08T08:08:34.929454",{"slug":2049,"name":2049,"fn":2050,"description":2051,"org":2052,"tags":2053,"stars":23,"repoUrl":24,"updatedAt":2057},"copying-endpoints-across-projects","copy PostHog endpoints across projects","Copy a PostHog endpoint (a saved HogQL\u002Finsight query exposed as an API route) to another project in the same organization, or duplicate it under a new name in the same project. Use when the user wants to duplicate an endpoint, promote an endpoint from staging to production, replicate an endpoint's query\u002Fvariables\u002Ffreshness config in another workspace, or clone an endpoint to iterate on it. Unlike feature flags and experiments, endpoints have NO native cross-project copy tool — this skill covers the read-then-recreate flow (endpoint-get then endpoint-create), the active-project switching it requires, name-collision checks, and the safe defaults (land unmaterialised in the target, verify with endpoint-run). Does not cover editing endpoint versions (see managing-endpoint-versions) or authoring a brand-new endpoint from scratch (see creating-an-endpoint).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2054,2055,2056],{"name":2040,"slug":2041,"type":15},{"name":1946,"slug":1947,"type":15},{"name":9,"slug":8,"type":15},"2026-07-15T05:29:58.442727",{"slug":2059,"name":2059,"fn":2060,"description":2061,"org":2062,"tags":2063,"stars":23,"repoUrl":24,"updatedAt":2075},"creating-ai-subscription","schedule recurring AI-generated PostHog reports","Create a recurring AI-generated PostHog report — schedule a free-text prompt to run on a cron, with the LLM-synthesized markdown delivered to email or Slack on each tick. Use when the user wants a recurring AI summary of X on any cadence (daily, weekly, monthly, yearly) rather than a one-off report. (To attach an AI summary to an existing insight\u002Fdashboard subscription instead of a free-text prompt, see `managing-subscriptions` and its `summary_enabled` option.)\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2064,2065,2068,2069,2072],{"name":1957,"slug":1958,"type":15},{"name":2066,"slug":2067,"type":15},"Email","email",{"name":9,"slug":8,"type":15},{"name":2070,"slug":2071,"type":15},"Reporting","reporting",{"name":2073,"slug":2074,"type":15},"Slack","slack","2026-06-09T07:32:27.935712",{"slug":2077,"name":2077,"fn":2078,"description":2079,"org":2080,"tags":2081,"stars":23,"repoUrl":24,"updatedAt":2085},"creating-an-endpoint","create PostHog API endpoints","Create a PostHog endpoint with the right shape on the first try — covers query kind choice, name conventions, what to expose as variables (HogQL code_name vs insight breakdown), data_freshness_seconds, and whether to materialise on day one. Use when the user says \"create an endpoint\", \"expose this query as an API\", \"turn this insight into an endpoint\", or asks for help structuring a new endpoint. Steers away from common mistakes: materialising a query with cohort breakdowns or compare mode, inline-only variables on a materialised endpoint, unbounded date ranges, ambiguous names.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":8},[2082,2083,2084],{"name":18,"slug":19,"type":15},{"name":2040,"slug":2041,"type":15},{"name":9,"slug":8,"type":15},"2026-06-08T08:08:29.624498",231]