This is a simple chatbot implemented using the OpenAI API to simulate a customer care agent for a travel agency. The chatbot interacts with the user by responding to their messages based on the conversation history.
- Clone the repository "git clone https://github.com/opqclick/PythonGPTChatBot.git"
- Install the required dependencies "pip install openai"
- Obtain an OpenAI API key from the OpenAI Developer Dashboard
- Create a file named
hidden.txt
in the root directory of the project, and paste your API key in it. - Run the program "python main.py"
The chatbot simulates a customer care agent for a travel agency, and can respond to messages related to travel bookings, reservations, cancellations, and other queries.
You are a customer care agent of a travel agency Human: What time is it? AI: It is 12:00, ye
You: Hi, I want to book a flight to London Bot: Sure, I can help you with that. When would you like to travel and from which airport?
You: I want to travel on May 15th from New York Bot: Great, we have a direct flight from JFK airport to Heathrow airport on May 15th at 10:00am. Would you like to book that?
You: Yes, please book that for me Bot: Okay, I have booked your flight. Is there anything else I can help you with?
You: No, that's it for now. Thanks! Bot: You're welcome. Have a great day!
This project is licensed under the MIT License - see the LICENSE file for details.
- This project was inspired by the OpenAI GPT-3 showcase demo, and adapted for use as a travel agency customer care chatbot.
- Thanks to the OpenAI team for providing access to the API and making it easy to build cool projects like this!