Next.js Chat + Auth + Stripe Template
A production-ready chat template with Google OAuth authentication, conversation persistence, Stripe subscription billing, and full ChatBotKit platform integration built with shadcn/ui.
This template extends the chat + auth template with a complete Stripe SaaS billing layer. Users must have an active subscription to access the chat, with support for monthly and yearly plans, free trials, and a self-serve billing portal.
The architecture adds subscription gating to the protected chat route via middleware, with server actions for creating Stripe Checkout sessions and portal links. A webhook handler keeps subscription state in sync with the platform.
This is the recommended starting point for any SaaS product that wants to monetise AI chat access while keeping all platform intelligence - skills, datasets, guardrails, and model selection - managed through ChatBotKit without touching application code.
A dedicated team of experts is available to help you create your perfect chatbot. Reach out via or chat for more information.