Writingweeknote · 4 March 2024 · 2 min read

Writing index

AI needs more than chat

Diving into AI Generative UI with React Server Components

This week I dug into AI driven Generative UI and how AI is driving a fundamental shift in user interfaces, away from traditional Command and Control interactions to Goal and Intent based interactions.

The traditional command-and-control UI patterns, where people mostly toggle controls to achieve desired outcomes, are being challenged by new intent-based interactions. This new paradigm enables people to express what they want using natural language, usually in the form of a chat prompt and following conversation.

Yet, current chat-based interactions suffer from requiring users to write out their problems as prose text, yet literacy research deems it likely that half the population in rich countries is not articulate enough to get good results from one of the current AI bots. It would seem GUIs still have a place.

Indeed there appears a lot of innovation in UI design due to ai much of it around helping define the users intent & end goal. Visual information is often easier to understand and faster to interact with than text. I believe future AI systems will likely have a hybrid user interface that combines elements of both intent-based and command-based interfaces while still retaining many GUI elements.

On a practical level I started researching how to build AI generative user interfaces with Vercel’s AI SDK 3.0. The SDK opens up the possibility to build such UI interactions through streaming of React Server Components.

To get an understanding of how it works I’ve started re-architecting my AI CV Chat application to use the new ai/rsc package of AI SDK 3.0. I currently have the existing functionality replicated with server streaming of React components. Next week I hope to start building some AI driven generative UI!