AI Chatbot SaaS
Multi-tenant Next.js starter template

Launch your own
AI chatbot platform

A production-ready, self-hostable foundation for developers and agencies building customizable, multi-tenant website chatbot products.

Everything you need to ship

Authentication, workspaces, bot management, an embeddable widget, and AI provider abstraction.

Multi-tenant workspaces

Clerk Organizations give every customer their own isolated workspace. Users can only access their organization's data.

Bot management

Create, configure, and delete chatbots per workspace. Each bot has its own greeting, theme, system prompt, and allowed domains.

Embeddable widget

A Shadow DOM chat widget that installs with one script tag. Host-page CSS cannot break it, and message rendering uses safe text APIs.

Secure by default

Origin allowlisting, CORS protection, Vary: Origin headers, and workspace-scoped server-side authorization on every request.

Mock + OpenAI providers

Run the entire product in mock mode with no API key. Switch to OpenAI with one environment variable when you are ready.

Rate limiting built in

In-memory rate limiter for development. Optional Upstash Redis adapter for serverless deployments.

Modern stack, editable source

Built with the tools you already know and can extend.

Next.js 16

App Router

TypeScript

Strict mode

Clerk

Organizations

Prisma 7

PostgreSQL

Tailwind CSS 4

Utility-first

Zod

Validation

Vitest

32 tests

Upstash

Optional rate limits

Ready to build?

Sign up and create your first workspace. Runs in mock AI mode by default, so you can test everything without an API key.