Skip to content

ChatBot Application using Tkinter and Groq API. This repository features a simple chat app built with Python's Tkinter, integrating the Groq API for AI-powered interactions. Highlights: GUI with chat display and input field, Groq API for responses, customizable design, and user-friendly with common exit commands (bye, exit, end).

License

Notifications You must be signed in to change notification settings

RelangiTarunKumar333/RTK-s-BotFriend

Repository files navigation

ChatBot Application using Tkinter and Groq API

This repository contains a simple graphical chat application built with Python's Tkinter library. The application connects to a chatbot service using the Groq API, allowing users to interact with an AI-powered bot.

Features

  • Graphical User Interface: Designed with Tkinter, featuring a chat display, user input field, and send button.
  • Groq API Integration: Communicates with the Groq chatbot service to generate responses.
  • Customizable Design: Includes different styles and layouts for the chat window.
  • User-Friendly: Easy to use, with support for common exit commands (bye, exit, end).

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/your-repo-name.git
    cd your-repo-name
  2. Create a virtual environment (optional but recommended):

    python -m venv venv
    source venv/bin/activate  # On Windows, use `venv\Scripts\activate`
  3. Install the required packages:

    pip install -r requirements.txt
  4. Set up the Groq API key:

    • Obtain your API key from Groq.
    • Set the environment variable GROQ_API_KEY with your key:
      export GROQ_API_KEY="your_groq_api_key"  # On Windows, use `set` instead of `export`

Usage

  1. Run the application:

    python app.py
  2. Interact with the chatbot:

    • Type your message in the input field and press Enter or click the "Send" button.
    • The bot will respond, and the conversation will be displayed in the chat window.
    • To end the conversation, type "bye", "exit", or "end".

File Structure

  • app.py: The main script containing the Tkinter application and Groq API integration.
  • requirements.txt: List of Python packages required for the application.
  • .gitignore: Git ignore file for excluding unnecessary files from version control.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Acknowledgements

  • Tkinter - Python's standard GUI library.
  • Groq - AI chatbot service used for generating responses.

Feel free to customize the design and functionality as per your needs. Contributions are welcome!

About

ChatBot Application using Tkinter and Groq API. This repository features a simple chat app built with Python's Tkinter, integrating the Groq API for AI-powered interactions. Highlights: GUI with chat display and input field, Groq API for responses, customizable design, and user-friendly with common exit commands (bye, exit, end).

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages