Skip to content

dsimps89/AI-Chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

AI-Chatbot

AI Chatbot that prompts a user

OpenAI Chatbot Script

This script demonstrates a basic interaction with the OpenAI GPT-3.5 model to create a simple chatbot. The script uses user data to generate prompts and engage in a conversation with the chatbot.

Prerequisites

  • Python 3.x
  • OpenAI Python library (pip install openai)

Getting Started

  1. Clone this repository to your local machine.

  2. Install the required dependencies using the following command:

  3. Set your OpenAI API key:

Replace "YOUR_API_KEY" in the script with your actual OpenAI API key.

  1. Modify the get_user_data() function:

Replace the sample user data with your actual data or user input retrieval logic.

  1. Run the script:

Usage

  • The script generates prompts based on user data and interacts with the OpenAI GPT-3.5 model to simulate a conversation.

  • Enter your input when prompted, and the chatbot will provide responses generated by the model.

  • To exit the conversation, type "exit" as your input.

License

This script is provided under the MIT License. Please see the LICENSE file for more details.

Disclaimer

The script is provided "as is" without warranty of any kind, express or implied. Use the script at your own risk.

Contributing

If you'd like to contribute to this script or repository, feel free to open a pull request or issue.

Contact

If you have any questions or concerns about this script or its usage, please contact [Your Contact Information].

About

AI Chatbot that prompts a user

Resources

License

Stars

Watchers

Forks

Packages

No packages published