A Flask chatbot application that can schedule hospital appointments.
- Utilize OpenAI's GPT-3.5 Turbo for intelligent responses.
- User-friendly chatbot interface built with HTML and Flask.
- Store chat history for each conversation in text files.
- Python 3.7+ installed on your system.
- Flask 2.0.1 and OpenAI Python SDK installed.
- Set up your OpenAI API key.
-
Clone this repository to your local machine
-
Navigate to the project directory
cd pumpkin-aid- Install the required Python packages:
pip install -r requirements.txtThis command will install all the necessary Python packages and dependencies required for your chatbot application.
- Configure your OpenAI API key: In order to use OpenAI's GPT-3.5 Turbo for intelligent responses in your chatbot, you'll need to configure your OpenAI API key in the app.py file. Follow these steps: Create a .env file outside the app folder Paste in your API key; it should look like this:
OPENAI_API_KEY = "sk-zqn9OVmS71IvKsg10nFiTsgRykFJxlMij3WPbmeegvhzPB2p"- Usage Now that you've completed the setup, you can use your Chatbot App: a. Start the Flask app:
flask runb. Open your web browser and go to http://localhost:5000 to interact with the chatbot. Tell it about your symptoms and when you'd like to schedule an appointment, and watch as the database updates with your new info.