
Scaffold your chat apps with create-chat-sdk
Quick Answer
The create-chat-sdk CLI simplifies bot development by scaffolding a complete Next.js project with platform and state adapters in one command.
Quick Take
The create-chat-sdk CLI simplifies bot development by scaffolding a complete Next.js project with platform and state adapters in one command. Users can easily select their desired integrations, such as Slack and Discord with Redis, and automate the setup process, making it ideal for both developers and CI environments.
Key Points
- Scaffold a complete Next.js project with a single command using create-chat-sdk.
- Select platform adapters like Slack and Discord, and state adapters like Redis.
- CLI automates dependency installation and configuration for seamless setup.
- Supports scripting for CI environments, allowing non-interactive setups.
- Documentation available for comprehensive guidance on building and deploying chat bots.
📖 Reader Mode
~1 min readCreating a new Chat SDK bot now takes a single command.
create-chat-sdk scaffolds a complete Next.js project with your chosen platform adapters, a state adapter, environment variables, and a webhook route.
npm create chat-sdk@latest vercel-bot
The CLI walks you through selecting your platform adapters (e.g., Slack and Discord) and a state adapter (e.g., Redis), then installs the dependencies for you.
Everything wired up:
src/lib/bot.tswithonNewMentionandonSubscribedMessagehandlers, a populated.env.example, and a pre-configurednext.config.ts.Pick your stack: combine any of the official or vendor-official platform and state adapters into a single project. The CLI installs only what you select.
Fully scriptable: every prompt can be skipped with flags, so
create-chat-sdkworks with your AI agents and in CI. Coding agents are automatically detected, so the CLI runs non-interactively when they scaffold your application.
For example, scaffold a Slack and Discord bot with Redis in one command:
npm create chat-sdk@latest -- vercel-bot -d 'My Vercel bot' --adapter slack discord redis -yq
Read the documentation to get started.
The Complete Guide to Chat SDK
Learn how Chat SDK works end-to-end: from core concepts to building your first bot to deploying it across Slack, Teams, and more.
Read the guide
— Originally published at vercel.com
Want this in your inbox every morning?
Daily brief at your local 8am — bilingual EN/中文, free.
More from Vercel AI
See more →
The Agent Stack
The Agent Stack by Vercel AI provides essential building blocks for creating production-grade agents, enabling seamless integration across multiple AI models and secure operations. It features components like AI Gateway for model routing, Workflow SDK for durable execution, and Vercel Connect for scoped access, streamlining agent development and deployment across various platforms.

