Skip to content

khadiza1216/AIChatBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ€–AI ChatBot (Groq Streaming)

A modern desktop AI chatbot built using Python, Tkinter, and Groq API with real-time streaming responses. This project demonstrates a clean UI, smooth user experience, and asynchronous AI response handling.

✨ Features

  • 🧠 AI-powered chatbot using Groq LLMs
  • ⚑ Real-time streaming responses
  • 🎨 Modern & clean Tkinter UI
  • 🧡 Multithreading for smooth performance
  • ⌨️ Press Enter to send messages
  • ❌ Exit commands: quit, exit, bye

πŸ› οΈ Tech Stack

  • Language: Python
  • GUI: Tkinter
  • AI API: Groq
  • Threading: Python threading module

πŸ–₯️ User Interface

  • Dark-themed modern layout
  • Scrollable chat window
  • Distinct labels for YOU and AI
  • Smooth auto-scroll behavior

πŸ“‚ Project Structure

  • Main Python file containing:

    • UI design
    • Message handling
    • Streaming AI response logic
  • Color theme configuration

  • Thread-safe UI updates

πŸš€ How It Works

  1. User types a message
  2. Message is displayed instantly
  3. AI response is streamed token-by-token
  4. UI updates in real time without freezing

πŸ” API Key Setup

To run this project, add your Groq API key in the code:

  • Create a Groq account
  • Generate an API key
  • Paste it inside the Groq client initialization

🎯 Use Cases

  • Desktop AI assistant
  • AI chatbot demo
  • Learning Tkinter + API integration
  • Streaming AI response projects

🌱 Future Improvements

  • Chat history saving
  • Voice input/output
  • Multiple model selection
  • Theme switcher (Light/Dark)
  • Markdown rendering

πŸ‘€ Author

Khadiza Akter

Aspiring Python & Java Developer

Passionate about AI, UI design, and real-time applications

Happy Coding πŸš€

About

A modern AI chatbot built with Python and Tkinter, integrated with the Groq API to deliver real-time streaming AI responses through a clean and interactive user interface.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages