This repository accompanies the Build an Neo4j-backed Chatbot using TypeScript course on Neo4j GraphAcademy.
It was originally Next.js project bootstrapped with create-next-app
. We added:
For a complete walkthrough of this repository, enrol now.
To set config, create a .env.local
with connection details for your Neo4j Sandbox instance and an OpenAI API Key.
You can also configure the name and description of the chatbot, and the initial greeting message.
NEO4J_URI=bolt://12.34.56.789:7687
NEO4J_USERNAME=neo4j
NEO4J_PASSWORD=your-generated-password
OPENAI_API_KEY=sk-...
NEXT_PUBLIC_CHATBOT_NAME=Ebert
NEXT_PUBLIC_CHATBOT_DESCRIPTION="The Movie Recommendation Chatbot"
NEXT_PUBLIC_CHATBOT_GREETING="Hello, I'm **Ebert**, your movie recommendation bot! How can I help you today?"
To run the application, you must install the dependencies listed in package.json
.
npm i
Then run the npm run dev
command to start the app on http://localhost:3000/.
npm run dev