Back to Templates

RAGBot Starter
This project is a starter for creating a chatbot using Astra DB and OpenAI. It's designed to be easy to deploy and use, with a focus on performance and usability.
Features
- Astra DB Integration: Store and retrieve data from your Astra DB database with ease.
- OpenAI Integration: Leverage the power of OpenAI to generate intelligent responses.
- Easy Deployment: Deploy your chatbot to Vercel with just a few clicks.
- Customizable: Modify and extend the chatbot to suit your needs.
Getting Started
Prerequisites
- An Astra DB account. You can create one here.
- An Astra Vector Database
- An OpenAI account. You can create one here.
Deployment
Easily deploy your chatbot to Vercel by clicking the button below:
Configure the Astra DB integration and add your OPENAI_API_KEY
environment variable.
Note: Before you deploying to prod, you will want to remove seed script (npm run seed
) from the build step.
Local Development
- Clone this repository to your local machine.
- Install the dependencies by running
npm install
in your terminal. - Set up the following environment variables in your IDE or
.env
file:OPENAI_API_KEY
: Your API key for OpenAIASTRA_DB_API_ENDPOINT
: Your Astra DB vector database endpointASTRA_DB_APPLICATION_TOKEN
: The generated app token for your Astra database- To create a new token go to your database's
Connect
tab and clickGenerate Token
. (your Application Token begins withAstraCS:...
)
- To create a new token go to your database's
ASTRA_DB_NAMESPACE
: (Optional) The existing Astra Namespace/Keyspace in a vector-enabled DB
- Populate your database with sample data by running
npm run seed
in your terminal.
Running the Project
To start the development server, run npm run dev
in your terminal. Open http://localhost:3000 to view the chatbot in your browser.
Related Templates
Liftoff – AI Mock Interview Simulator
Liftoff is an interview preparation tool that provides AI feedback on your mock interviews, built with OpenAI Whisper and GPT.
qrGPT – AI QR Code Generator
QrGPT is an AI tool for you to generate beautiful QR codes using AI with one click. Powered by Vercel and Replicate.

Nuxt AI Chatbot
An AI chatobot bult with Nuxt, gpt-4 and Vercel.
