Skip to content

opqclick/PythonGPTChatBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Conversational Chatbot using OpenAI API

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.

Installation

  1. Clone the repository "git clone https://github.com/opqclick/PythonGPTChatBot.git"
  2. Install the required dependencies "pip install openai"
  3. Obtain an OpenAI API key from the OpenAI Developer Dashboard
  4. Create a file named hidden.txt in the root directory of the project, and paste your API key in it.
  5. Run the program "python main.py"

Usage

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.

Example Conversation

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!

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgments

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages