A simple chatbot implementation using OpenAI's API.
- Python 3.x
- PyCharm IDE (recommended)
- OpenAI API key
-
Clone the repository and open it in PyCharm.
-
Set up a virtual environment (venv):
- In PyCharm, go to
File → Settings → Project → Python Interpreter - Click the gear icon and select "Add"
- Choose "Virtual Environment" and select the location and base interpreter
- For detailed instructions, visit: PyCharm Virtual Environment Setup
- In PyCharm, go to
-
Install dependencies:
pip install -r requirements.txt
-
Run the data manager:
python data_manager.py
Note: You can modify the data as needed.
-
Configure the Run Configuration in PyCharm:
-
Create a
.envfile in the root directory with your OpenAI API key:OPENAI_API_KEY=your_api_key_here
-
Click the Run button in PyCharm or use the following command in terminal:
python app/main.py
-
Access the application at:
http://127.0.0.1:8000/
The application interface provides a clean chat interface where you can interact with the OpenAI-powered chatbot.
Make sure to keep your API key confidential and never commit the .env file to version control.
Feel free to submit issues and enhancement requests.




