Harvey is a versatile chatbot script designed for interactive conversations. It intelligently answers user questions using a combination of pre-existing knowledge and the Wolfram Alpha computational engine. The script features a user-friendly chat interface built with Tkinter, and it saves detailed conversation logs for future reference.
Harvey can provide insightful answers to user queries based on its internal knowledge base. Additionally, it leverages Wolfram Alpha to gather more detailed information when needed.
The script boasts a simple yet effective chat interface created using Tkinter. Users can input questions, receive responses, and engage in seamless conversations.
Every interaction with Harvey is logged meticulously. This ensures that users can review past conversations and facilitates improvements to the chatbot's capabilities.
-
Run the Script:
python harvey_chatbot.py
-
Ask Questions:
- Enter questions in the chat interface.
- Press 'Send' or simply hit Enter.
-
Receive Responses:
- Harvey responds based on its knowledge base and additional information from Wolfram Alpha.
-
Conversation Logs:
- All interactions are logged in the
conversation_logs
directory, providing a detailed record of the conversation history.
- All interactions are logged in the
Ensure you have the following Python libraries installed:
- wolframalpha: Install using
pip install wolframalpha
- pyttsx3: Install using
pip install pyttsx3
- Tkinter: Included with most Python installations.
-
Wolfram Alpha App ID:
- Update the Wolfram Alpha app ID in the script:
wolfram_app_id = 'L98HQH-R6YE48VKHH'
.
- Update the Wolfram Alpha app ID in the script:
-
Knowledge Base:
- Customize the knowledge base by editing the
knowledge_base.json
file.
- Customize the knowledge base by editing the
Mayank Sharma
Feel free to explore, modify, and enhance Harvey to suit your specific requirements. Happy chatting!