A web chatbot built with NextJS using openAI API.
First, create a .env
file in root directory:
OPENAI_API_KEY=<YOUR_OPENAI_API_KEY>
CHAT_PROMPT=<YOUR_INITIAL_PROMPT_FOR_CHATBOT>
Then, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 with your browser to see the result.