CreateWithAIHub

Template Vercel

Chatbot (Vercel AI Chatbot template)

Vercel's open-source Next.js and AI SDK template for building a full chatbot app with auth and saved history.

Chatbot templateOfficialFreeOpen source
Visit website ↗
Save

What it is

Chatbot, formerly AI Chatbot, is a free open-source template from Vercel for building chat applications. It combines Next.js App Router, the AI SDK, shadcn/ui, Auth.js, Neon Postgres for chat history and Vercel Blob for files, and routes model calls through Vercel AI Gateway. It is a starting point for developers who want a working chat app to customise rather than build from scratch.

What it's useful for

Launching a branded chat assistant with login and saved conversations, then swapping models or adding tools.

Key features

  • Next.js App Router with Server Components and Server Actions
  • AI SDK for text, structured output and tool calls
  • Multiple model providers via Vercel AI Gateway
  • Chat history in Neon Postgres and file storage in Vercel Blob
  • Auth.js authentication and shadcn/ui components

How to use it

Before you start

  • Vercel CLI (recommended for pulling environment variables)
  • pnpm
Install Vercel CLI
npm i -g vercel
Install dependencies
pnpm install
Set up database
pnpm db:migrate
Start dev server
pnpm dev

Commands are copied from the official documentation. Check the docs for the latest version before running them.

Limitations to know

  • Non-Vercel deployments need an AI_GATEWAY_API_KEY
  • Running locally requires the environment variables defined in .env.example

MCP servers for this

Hugging Face's hosted MCP server that lets agents search models, datasets, Spaces and papers and call Gradio Spaces.

Free plan + paidOpen source

Skills for this

Anthropic skill for generative art in p5.js with seeded randomness and an interactive viewer for exploring parameters.

FreeOpen source

Related resources

Vercel's provider-agnostic TypeScript toolkit for AI apps and agents, with UI hooks for React and other frameworks.

FreeOpen source

AWS's managed service for calling 100+ foundation models from Anthropic, OpenAI, Meta, Mistral, DeepSeek, Amazon and others in your AWS account.

Paid

Open-source frontend stack for putting agents in front of users: chat, generative UI, shared state and human-in-the-loop.

FreeOpen source

DeepSeek's MIT-licensed open-weight reasoning and chat models, also served through an OpenAI- and Anthropic-compatible API.

Free plan + paidOpen source

Type to search. Use ↑ ↓ and Enter.