# Next.js AI Chatbot ## Docs - [Chat](https://mintlify.wiki/Wikedhart18/nextjs-ai-chatbot/api-reference/chat.md): Endpoints for sending messages, streaming AI responses, deleting chats, and uploading files. - [Documents](https://mintlify.wiki/Wikedhart18/nextjs-ai-chatbot/api-reference/documents.md): Endpoints for creating, retrieving, and managing versioned AI-generated documents (artifacts). - [History](https://mintlify.wiki/Wikedhart18/nextjs-ai-chatbot/api-reference/history.md): Endpoint for retrieving the authenticated user's chat history. - [Database Queries](https://mintlify.wiki/Wikedhart18/nextjs-ai-chatbot/api-reference/queries.md): Reference for all exported query functions in lib/db/queries.ts, grouped by entity. - [Database Schema](https://mintlify.wiki/Wikedhart18/nextjs-ai-chatbot/api-reference/schema.md): Complete reference for all database tables, columns, types, and relationships in the Next.js AI Chatbot. - [Votes](https://mintlify.wiki/Wikedhart18/nextjs-ai-chatbot/api-reference/votes.md): Endpoints for submitting and retrieving message votes, and for retrieving AI-generated document suggestions. - [AI models](https://mintlify.wiki/Wikedhart18/nextjs-ai-chatbot/configuration/ai-models.md): Understand how language and image models are configured, and how to change the default chat model. - [Authentication](https://mintlify.wiki/Wikedhart18/nextjs-ai-chatbot/configuration/authentication.md): How to create an account, sign in, sign out, and what to expect when your session expires. - [Database](https://mintlify.wiki/Wikedhart18/nextjs-ai-chatbot/configuration/database.md): Set up a Vercel Postgres (Neon) database, run migrations, and understand the application schema. - [Environment variables](https://mintlify.wiki/Wikedhart18/nextjs-ai-chatbot/configuration/environment-variables.md): Configure the required and optional environment variables for the Next.js AI Chatbot. - [Adding models](https://mintlify.wiki/Wikedhart18/nextjs-ai-chatbot/customization/adding-models.md): Add a new AI model or provider to your chatbot using the Vercel AI SDK's customProvider pattern. - [Artifact types](https://mintlify.wiki/Wikedhart18/nextjs-ai-chatbot/customization/artifact-types.md): Understand how the artifact system works and how server-side handlers and client-side renderers are structured for each artifact type. - [Custom tools](https://mintlify.wiki/Wikedhart18/nextjs-ai-chatbot/customization/custom-tools.md): Add new AI tools that the model can call during a conversation, from simple data-fetching tools to streaming artifact tools. - [Deployment](https://mintlify.wiki/Wikedhart18/nextjs-ai-chatbot/deployment.md): Deploy the Next.js AI Chatbot to Vercel with one click or manually. - [Artifacts](https://mintlify.wiki/Wikedhart18/nextjs-ai-chatbot/features/artifacts.md): A side-by-side editor panel for substantial content the AI creates and updates — text documents, code, spreadsheets, and images. - [Chat](https://mintlify.wiki/Wikedhart18/nextjs-ai-chatbot/features/chat.md): Send messages, attach files, vote on responses, edit conversation history, and manage chat visibility. - [Model selection](https://mintlify.wiki/Wikedhart18/nextjs-ai-chatbot/features/model-selection.md): Choose between three AI models optimized for speed, capability, and advanced reasoning. - [Next.js AI Chatbot](https://mintlify.wiki/Wikedhart18/nextjs-ai-chatbot/introduction.md): An open-source full-stack AI chatbot template built with Next.js, the Vercel AI SDK, and Postgres — featuring multi-model support, persistent chat history, and AI-powered document artifacts. - [Quickstart](https://mintlify.wiki/Wikedhart18/nextjs-ai-chatbot/quickstart.md): Run the Next.js AI Chatbot locally in under five minutes. ## OpenAPI Specs - [openapi](https://mintlify.wiki/Wikedhart18/nextjs-ai-chatbot/api-reference/openapi.json)