Skip to content

Vaibhav-coder-king/Chat_bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Chat_bot

🧠 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.

🚀 Features

✅ 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

📷 Preview

image image image

🛠️ Requirements

Python 3.8+

OpenAI Python SDK (openai)

customtkinter

#Install with:

pip install openai,customtkinter

🔑 Setup

Create a config.txt file in the same directory and add your OpenAI API key:

your-openai-api-key

🧺 Usage

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.

⚠️ Notes

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.

📄 License

This project is open-source under the MIT License.

🙋‍♂️ Author

Made BY Vaibhav-coder-king

About

It is my first project uploaded on github, A CHAT_BOT

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages