AI Learning Path Generator is a Node.js web application that uses OpenAI's GPT-4 to create personalized learning paths for users. It interacts conversationally to gather your goals, skill level, time commitment, and preferences, then generates a detailed curriculum with resources, milestones, and actionable steps.
- Conversational AI for personalized learning path generation
- Gathers user goals, experience, time, and learning style
- Provides structured, actionable learning plans
- Suggests resources, timelines, and assessments
- Clean, modern chat UI
- Node.js (v16+ recommended)
- An OpenAI API key (get one here)
- Clone the repository:
git clone <repo-url> cd ai-passport-photo-app
- Install dependencies:
npm install
- Create a
.envfile in the root directory and add your OpenAI API key:OPENAI_API_KEY=your_openai_api_key_here
Start the server:
node index.jsThe app will run at http://localhost:5000
- Open your browser and go to http://localhost:5000
- Type "start" or your learning goal to begin
- The AI will guide you through questions and generate a custom learning path
index.js- Main server filecontrollers/chatController.js- Handles chat and OpenAI logicmodels/conversationModel.js- In-memory conversation storageviews/index.html- Frontend chat UIpublic/- Static assets (if any)
OPENAI_API_KEY- Your OpenAI API key (required)
This project is for educational purposes and uses in-memory storage. For production, connect to a database for conversation history.
