Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Next.js demo template that uses an LLM to summarize e-commerce customer reviews and display them in a demo UI.
Open-source Next.js chatbot starter from Vercel Labs that demonstrates the Vercel AI Gateway with the AI SDK.

Open-source AI chatbot template built with Next.js, the AI SDK by Vercel, and Groq for streaming chat responses.

A Next.js example using the Vercel AI SDK's streamText function to automatically handle multiple tool call roundtrips in one chat turn.
Customer Reviews AI Summary is a Next.js demo template that feeds a set of customer reviews into a large language model and renders the generated summary alongside the original reviews in a demo UI.
Customer Reviews AI Summary is a Next.js demo template for e-commerce storefronts that takes a set of customer reviews as input, sends them to a large language model, and displays the resulting summary together with the underlying reviews in a demo interface. The stated benefit is that a shopper can grasp the overall sentiment of reviewers without reading every review. It is published as a Vercel template and a live deployment is hosted at review-summary.vercel.app.
lib/ai-summary.ts, using Vercel's AI SDK.lib/ai-summary.ts to point the summarization step at a different model provider.A set of customer reviews is sent to an LLM through an inference API key, and the model returns a summary of reviewer sentiment. The demo UI then renders that summary and the original reviews together. To run it locally, start the development server with pnpm dev after configuring the Perplexity API key.
It takes a set of customer reviews, sends them to a large language model, and displays the generated summary next to the original reviews in a demo interface, so a viewer can read one short overview instead of every individual review.
Yes. The demo requires an API key for Perplexity's inference API, which can be obtained through Vercel's AI Marketplace integration. Without a configured key the summarization step has no model to call.
Yes. The template states that any other LLM can be connected through Vercel's AI SDK with minimal changes to lib/ai-summary.ts, so the summarization logic is not locked to Perplexity.
Install the template on Vercel or clone the repository, provide a Perplexity inference API key, and run the development server with the pnpm dev command. A deployed version is also available at review-summary.vercel.app for previewing first.
