1 Using generative AI in web apps
This chapter covers
- What generative AI web applications are and what they can do
- How generative AI compares to traditional AI
- How generative AI apps work
- Handling the concerns and implications of AI
Generative AI web apps are web applications that integrate advanced AI models—most commonly large language models (LLMs)—to create original text, images, audio, or video. By generating content dynamically rather than relying solely on predefined logic or static data, these apps deliver personalized, adaptive, and highly interactive user experiences. This shift fundamentally changes how we build and engage with digital products, enabling conversational interfaces, intelligent automation, and entirely new categories of applications.
This book teaches you how to harness these capabilities and build scalable, production-ready generative AI web apps. You’ll learn how to integrate AI features using popular models and providers such as OpenAI and Google AI while developing your applications with React, Next.js, and the Vercel AI SDK. Toward the end, you’ll see how to work with the Model Context Protocol to access external tools and data sources in a secure and standardized way.