chatbot-template/docs/01-quick-start.md

2.8 KiB

Quick Start

The chatbot template is a web application built using Next.js and the AI SDK that can be used as a starting point for building your own AI applications. The template is designed to be easily customizable and extendable, allowing you to add new features and integrations as needed.

Deploying to Vercel is the quickest way to get started with the chatbot template, 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:

Deploy to Vercel

To deploy the chatbot template to Vercel, click the button below to enter the 1-click deploy flow.

Deploy with Vercel

During the flow, you will be prompted to create and connect to a postgres database and blob store. You will also need to provide environment variables for the application.

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 pull

After linking the project, you can start the development server by running:

pnpm dev

The chatbot template will be available at http://localhost:3000.