feat(insights): AI analysis
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
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
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%) |
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