PostHog / posthog

🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
https://posthog.com
Other
19.44k stars 1.14k forks source link

PostHog AI: A chat-style UI for building simplified insights #21961

Open corywatilo opened 2 months ago

corywatilo commented 2 months ago

The clunkiest part of using PostHog is the insight creation UI. There are a ton of toggles and controls that can't be buried too deeply, and getting meaningful data often requires a series of clicks and keystrokes to build exactly what you're looking for... and that's only if you know how to ask it in the first place.

So what could a ChatGPT-like UX look like for PostHog?

Choose an example prompt or type your own question.

image

And you could very quickly get to a simplified answer.

image

You don't need all the controls when you can phrase it more easily, but there are some simplified controls for small visualization changes.

At any point, you could hit the Open insight button to get the existing insights experience and taxonomy filters. (We'd also probably have a way to see/modify the HogQL directly.)

Modify the insight by using a contextual prompt, or type something else.

image

Maybe you're asking about a specific data point.

image

Or maybe you want to watch a playlist of these users.

Here's us switching to the supported Session replay prompts.

image

Here's the playlist and inline player

image

This is an example of a relatively simple query that takes far too long to assemble using a mouse and is much easier to create using a simple phrase.

And if we can also automatically select the right event from a list of events that are named the same thing (eg: Email vs email), that would make the experience even more magical. ;)

And here's a narrated demo of above:

https://www.loom.com/share/b5288e5d4e1249dcb74057ccc849bc2f

raquelmsmith commented 1 month ago

This is cool 😎