🧠 Chatbot Desktop App (Tkinter + OpenAI GPT-4o-mini)
A beautiful, customizable AI chatbot built with Python, Tkinter, and CustomTkinter, using OpenAI's gpt-4o-mini model. This app provides a smooth desktop UI for chatting with GPT, complete with theme switching, scrolling chat history, loading animation, and exit confirmation.
✅ Chat with GPT-4o-mini using OpenAI API
✅ Modern GUI with CustomTkinter
✅ Light/Dark theme switching
✅ Scrollable chat history panel
✅ "Loading..." animation while processing
✅ Exit confirmation dialog
✅ Keyboard shortcut support (Enter to send)
✅ Cleanly separated UI, threading, and API logic
✅ Smooth animated typing effect for responses
✅ remember the chat,like your name,age,etc



Python 3.8+
OpenAI Python SDK (openai)
customtkinter
#Install with:
pip install openai,customtkinter
Create a config.txt file in the same directory and add your OpenAI API key:
your-openai-api-key
python your_script_name.py
Type a message and press Enter or click the arrow button to get a response.
Use the theme selector to switch between Light and Dark modes.
Click EXIT to safely close the app.
Make sure your OpenAI account has access to the gpt-4o-mini model.
If the app doesn't run in fullscreen, try maximizing the window manually or adjust the geometry() settings in the code.
This project is open-source under the MIT License.
Made BY Vaibhav-coder-king