正在加载视频...

视频加载失败

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 次观看 • 2 年前 •via X (Twitter)

11 条评论

Rhys 的头像
Rhys2 年前

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

Rhys 的头像
Rhys2 年前

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

Rhys 的头像
Rhys2 年前

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

Rhys 的头像
Rhys2 年前

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

Rhys 的头像
Rhys2 年前

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

Tanmay 的头像
Tanmay2 年前

@vercel Isnt this just props filling pre built ui?

Rhys 的头像
Rhys2 年前

@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

Philipp Tsipman 的头像
Philipp Tsipman2 年前

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

Rhys 的头像
Rhys2 年前

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

Spencer 的头像
Spencer2 年前

@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.

Rhys 的头像
Rhys2 年前

@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

相关视频