组件会杀死页面。
Components will kill pages

原始链接: https://bitsandbytes.dev/posts/components-will-kill-pages

## AI驱动的网页未来 互联网正处于重大转变的边缘,从传统的网站导航转向AI驱动的交互。像ChatGPT这样的工具正在培养对即时答案的需求,绕过了逐页访问网站的必要性。这带来了一个挑战:当用户可能根本*不去*他们的网站时,品牌如何保持对其用户体验的控制? 解决方案在于为“AI优先”的方法做好准备。不要优化网站*内部*的用户旅程,而是专注于构建高质量、可重用的UI组件,并以机器可读的格式(如JSON)呈现。这使得AI聊天机器人能够理解和渲染品牌化的视觉元素*直接在聊天界面内*,从而提供无缝的体验,而无需将用户重定向。 像json-render和Kumo这样的库促进了这一点,使AI能够使用品牌现有的组件动态构建UI。未来不是关于导航页面,而是关于提问并获得定制的、交互式的响应——这使得对这些组件的投资对于保持领先地位至关重要。

相关文章

原文

The internet is changing. That is undeniable. For the first time in over 20 years websites are also about to drastically change. We are familiar with browsing the internet website by website, one page at a time. Lately with tools such as ChatGPT becoming available, our TikTok attention spans demand immediate results and ChatGPT delivers just that. You open a window, type in a text input anything you want to know and – boom, an answer appears catered specifically to you. Our remaining brain cells slam their glasses together to celebrate the quick dopamine hit, accessing information at minimal effort. Times are changing.

Frontend engineers have been solving problems at the user journey level for the longest time, optimizing how users navigate from page to page – or feature to feature. We’ve asked ourselves thought provoking and hotly contested questions such as “What should the signup funnel include” and “how do we get the user to the value add the quickest” many times in the past twenty years. Now I’m saying none of that will even matter. Will it even be a user signing up for your product, or AI on their behalf?

Snapping back to ChatGPT and how it’s shaping how users think about interfacing with the internet. In a world where we can type anything into a text box and get the information back instantly we are circumventing the need to visit websites altogether. Bots will continue to scrape your vast amount of pages that exist but users will continue to grow more lazy. Obviously it’s not advantageous to AI chat applications to link users out to websites, they want to keep them on their app just like X penalizes links in posts and mobile app developers seldomly link outside of their app. What if there was a way to still introduce visual components to users through chat interfaces that let them interact with the brand?

Let’s take Cloudflare for example. For all the Workflows I have deployed on the platform it would be kind of gnarly for AI to try to visualize for me how they may work (steps, retries, try/catch, etc.. trust me). If AI wants to own the internet then having a method for chat applications to understand components exposed from the website in question (e.g. Cloudflare) and know how to call for and render it inline to the chat response – that would be something else. No requirements to redirect the user out of the app and to that website, and still providing a best-in-class user experience. AI chat applications win, and so does the brand that gets to keep ownership of how it tells the story of its product to its users.

With libraries like json-render and component libraries like Kumo you can have UI components be represented in JSON such that AI knows how to create generative UI’s. An application can understand what components are available from the pool of components within Kumo and using json-render AI can understand which components support children, what props they have, and how to stitch them together to give unique responses. For example if I ask for one of my aforementioned workflows to be visualized to me and Kumo had a FlowDiagram component that knew how to construct it, ChatGPT could use this information to respond to the user with an interactive workflow viewer with Cloudflare’s brand.

Imagine your own product. You likely won’t expect users 5 years from today to navigate 5 pages deep, apply filters and sort data just to try to derive the answer themselves… will you? My hope is that you will embrace the change and have a first party experience where people can ask a question and get an answer. Users can trigger actions with a few words and get results in seconds. AI will be the new steering wheel of the internet, it won’t be navigating pages.

Now is the time to invest in high quality components. If you’re not using an AI first component library or thinking about how AI could consume or create user interfaces with your branding then now is the time. You’re not behind (yet) but in today’s world where the world changes every month, it’s best to be ahead.

联系我们 contact @ memedata.com