Skip to content

AJCubed/pumpkin-aid

Repository files navigation

Flask-OpenAI-Chatbot

A Flask chatbot application that can schedule hospital appointments.

Features

  • 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.

Getting Started

Prerequisites

  • Python 3.7+ installed on your system.
  • Flask 2.0.1 and OpenAI Python SDK installed.
  • Set up your OpenAI API key.

Installation

  1. Clone this repository to your local machine

  2. Navigate to the project directory

cd pumpkin-aid
  1. Install the required Python packages:
pip install -r requirements.txt

This command will install all the necessary Python packages and dependencies required for your chatbot application.

  1. 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"
  1. Usage Now that you've completed the setup, you can use your Chatbot App: a. Start the Flask app:
flask run

b. 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •