Back to Templates

This is a demo of AI generated summaries of customer reviews for an e-commerce storefront.
The demo takes a set of customer reviews, and uses an LLM to create summaries of those reviews. It then displays the summary and the reviews in a demo UI.
The benefit of such an AI summary is that the user can get a quick overview of the sentiment of reviewers of the product without reading them all.
A deployed version can be found here.
Install the template on Vercel
Getting Started
First, run the development server:
pnpm dev
AI key
This demo requires an API key for Perplexity's inference API. This can be installed via Vercel's AI Marketplace.
Any other LLM model can be connected via minimal changes to lib/ai-summary.ts
through Vercel's AI SDK.
Related Templates
RAGBot Starter — An Astra DB and OpenAI chatbot
Starter project for creating a chatbot using Astra DB and OpenAI.

Next.js AI Chatbot
A full-featured, hackable Next.js AI chatbot built by Vercel

Next.js OpenAI Doc Search Starter
Template for building your own custom ChatGPT style doc search powered by Next.js, OpenAI, and Supabase.
