Deploying
The fastest way to create and deploy your Chat SDK project.
Deploying to Vercel is the quickest way to get started with the Chat SDK, as it automatically sets up the project by connecting to integrations and deploys it to the cloud. You can then later develop the project locally and push changes to the Vercel project.
Pre-requisites
- Vercel account and Vercel CLI
- GitHub/GitLab/Bitbucket account
Deploy to Vercel
You can deploy your own version of the Next.js AI Chatbot to Vercel with one click:
During the flow, you will be prompted to create and connect to a postgres database and blob store. You will also need to provide the AUTH_SECRET environment variable that is used to set the seed for authentication.
After deploying the project, you can access the chatbot template by visiting the URL provided by Vercel.
Local Development
To develop the chatbot template locally, you can clone the repository and link it to your Vercel project. This will allow you to pull the environment variables from the Vercel project and use them locally.
git clone https://github.com/<username>/<repository>
cd <repository>
pnpm install
vercel link
vercel env pullAfter linking the project, you can start the development server by running:
pnpm devThe chatbot template will be available at http://localhost:3000.