This project is the final result from Chapter 10 Building a Blog with a Custom Chatbot where we build a blog with a custom chatbot to allow users to ask questions and have conversation about the content of the blog posts.
First install all required packages by running:
npm install
Then rename .env.template
to .env
and in the file paste in your OpenAI API key:
OPENAI_API_KEY=<paste key here>
and also paste your Assistant ID
from the OpenAI platform:
ASSISTANT_ID=<paste Assistant ID here>
Then run the development server:
npm run dev
Open http://localhost:3000 with your browser to view the website.