Video wird geladen...
Video konnte nicht geladen werden
Ok I'm convinced, Generative UI is the future I built this today using Vercel's AI SDK & PostHog, it allows you to talk with your analytics data All you do is describe in natural language what you'd like to see and then talk with the results
233,794 Aufrufe • vor 2 Jahren •via X (Twitter)
11 Kommentare

Since it's a chat, all you need to do to make an edit is ask for it - here's me asking to modify a chart without having to specify the time range again or what other properties to add, it just understands from the history

Imagine the power this unlocks - You could create custom client dashboards to give this ability to your users It also lets everyone on your team take a deeper role into analytics, they don't have to understand SQL they just have to ask a question

If there's interest I can put this on a website for people to use with their own PostHog data For now though, it's open source and super easy to run locally - the repo is available at

This is also the first Generative UI project that I've seen which uses real data which is an accomplishment I'm really proud of For the Vercel stock price one, it was a super helpful learning resource but it was ChatGPT making up values - this one really works

Here's the source code if you want to play around with it yourself!

@vercel Isnt this just props filling pre built ui?

@vercel In this case it’s conversion your natural language into SQL (HogQL for PostHog) queries, running them, and then determining how to render the results Along with that it’s loading all the data from the results into your conversation so you can talk about it

@vercel This is awesome! Thank you for open-sourcing it! 🙏 And... just submitted the first issue. :)

@vercel 🫡 thanks for opening up an issue, put out a commit that I think will fix it

@vercel How is this generative UI? It looks like generative charts, which I think would be a killer app. Add a csv or data set and ask it in natural language to create a beautiful chart that represents the data.

@vercel I was mainly just going off of for the wording I think it’s v0 of Generative UI where it starts out with us passing premade components combined with chat and eventually turns into dynamic
