Next.js Chat + Auth Template

A production-ready chat template with Google OAuth authentication, conversation persistence, and full ChatBotKit platform agent integration built with Next.js, shadcn/ui, and next-auth.

nextjs
app-router
template
3179

This template connects your Next.js application to ChatBotKit platform agents rather than raw LLM calls. Selecting an agent gives you its full configured capability set - skills, datasets, guardrails, model choice, and third-party service auth - without any additional application code.

The architecture uses Next.js server actions so API keys never reach the client. Authenticated users are automatically mapped to ChatBotKit contacts by email, giving you full conversation history and persistence. A slide-out sidebar exposes previous conversations.

This is the recommended starting point for any authenticated chat product that wants to delegate intelligence and configuration to the ChatBotKit platform.

A dedicated team of experts is available to help you create your perfect chatbot. Reach out via or chat for more information.