posthog icon indicating copy to clipboard operation
posthog copied to clipboard

feat(insights): AI analysis

Open anirudhpillai opened this issue 1 month ago â€ĸ 2 comments

Problem

Building on top of https://github.com/PostHog/posthog/pull/41908

Changes

  • Featured flagged, will test with just our org for now

  • Very basic prompts for now, will improve those in follow up PR. Just want to get plumbing out now.

  • Moved suggestion logic to backend

  • AI generated suggestions

  • AI analysis section with triggers the analysis

  • First the insight query/results are analysed and explained to user

  • Then we fetch suggestions to recommend user what else to look into to understand things better

image image image image image image

How did you test this code?

đŸ‘ī¸

👉 Stay up-to-date with PostHog coding conventions for a smoother review.

Changelog: (features only) Is this feature complete?

Not yet

anirudhpillai avatar Dec 10 '25 12:12 anirudhpillai

Size Change: +286 B (+0.01%)

Total Size: 3.66 MB

â„šī¸ View Unchanged
Filename Size Change
frontend/dist/toolbar.js 3.66 MB +286 B (+0.01%)

compressed-size-action

github-actions[bot] avatar Dec 10 '25 12:12 github-actions[bot]

Visual regression: Storybook UI snapshots updated

Changes: 2 snapshots (2 modified, 0 added, 0 deleted)

What this means:

  • Snapshots have been automatically updated to match current rendering
  • Next CI run will switch to CHECK mode to verify stability
  • If snapshots change again, CHECK mode will fail (indicates flapping)

Next steps:

  • Review the changes to ensure they're intentional
  • Approve if changes match your expectations
  • If unexpected, investigate component rendering

Review snapshot changes →

posthog-bot avatar Dec 10 '25 12:12 posthog-bot