Skip to main content
Next.js AI Chatbot is a production-ready template for building conversational AI applications. It combines Next.js App Router, the Vercel AI SDK, NextAuth.js authentication, and Vercel Postgres into a complete, deployable product.

Quick Start

Get your chatbot running locally in minutes

Deploy to Vercel

One-click deployment to production

Core Features

Explore chat, artifacts, and model selection

API Reference

Full API documentation for every endpoint

What’s included

Multi-model AI chat

Switch between GPT-4o mini, GPT-4o, and DeepSeek R1 reasoning — all powered by the Vercel AI SDK

AI artifacts

Generate and edit text documents, code snippets, spreadsheets, and images alongside the conversation

Persistent history

Chat history is saved to Vercel Postgres (Neon) and surfaced in a collapsible sidebar

File uploads

Attach files to your messages using Vercel Blob storage

Authentication

Email/password sign-up and sign-in via NextAuth.js with session-based auth

Chat visibility

Mark conversations as public or private, and share public chats with a link

Tech stack

LayerTechnology
FrameworkNext.js 15 (App Router)
AIVercel AI SDK 4, OpenAI GPT-4o, DeepSeek R1
AuthNextAuth.js v5
DatabaseDrizzle ORM + Vercel Postgres (Neon)
File storageVercel Blob
UIshadcn/ui, Radix UI, Tailwind CSS
DeploymentVercel