Dobby Chatbot
Dobby Chatbot is an AI-powered chatbot that mimics the speech and personality of Dobby, the house-elf from Harry Potter. The bot uses OpenAI's API to generate responses based on a predefined personality description and maintains conversation history using a JSON file.
- Responds in the unique style of Dobby from Harry Potter.
- Utilizes OpenAI's API for generating intelligent responses.
- Saves conversation history in a JSON file.
- Easy to use.
- OpenAI API key
- Required dependencies (listed in
requirements.txt
)
- Install dependencies:
pip install -r requirements.txt
- Set up your OpenAI API key:
- Insert your personal key in OpenAI_API_Key.txt and the right path in:
with open('path/OpenAI_API_Key.txt', 'r') as file: api_key = file.read() openai.api_key = api_key client = OpenAI(api_key=api_key)
Run the chatbot script Dobbybot.ipynb: The chatbot will start interacting with you as Dobby!
This project is licensed under the MIT License.
Enjoy chatting with Dobby! ✨