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.
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.
npm install
in your terminal..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 databaseConnect
tab and click Generate Token
. (your Application Token begins with AstraCS:...
)ASTRA_DB_NAMESPACE
: (Optional) The existing Astra Namespace/Keyspace in a vector-enabled DBnpm run seed
in your terminal.To start the development server, run npm run dev
in your terminal. Open http://localhost:3000 to view the chatbot in your browser.
Starter project for creating a chatbot using Astra DB and OpenAI.
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.
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.
npm install
in your terminal..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 databaseConnect
tab and click Generate Token
. (your Application Token begins with AstraCS:...
)ASTRA_DB_NAMESPACE
: (Optional) The existing Astra Namespace/Keyspace in a vector-enabled DBnpm run seed
in your terminal.To start the development server, run npm run dev
in your terminal. Open http://localhost:3000 to view the chatbot in your browser.