Skip to content

SANJAIRATHINAM-R/chatbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Here’s a complete README.md file for your chatbot project, ready to use:

markdown Copy Edit

Flash - AI Chat Assistant πŸ’¬βš‘

Flash is a desktop-based AI chatbot built with Python, using Tkinter for the GUI. It supports:

  • Predefined conversation patterns
  • Web search using Bing Search API
  • Wikipedia summaries
  • Natural language conversation via Groq's LLaMA3 API

πŸ–₯️ Features

  • Friendly conversation with pre-programmed responses
  • search <query> β†’ uses Bing to get a short web snippet
  • wiki <query> β†’ fetches summary from Wikipedia
  • Free-form questions are answered using Groq's LLaMA3 AI model

πŸ”§ Requirements

  • Python 3.7 or higher
  • Internet connection
  • API keys:
    • Bing Search API (from Azure)
    • Groq API (for LLaMA3)

Install dependencies using:

pip install -r requirements.txt
πŸ“ Project Structure
graphql
Copy
Edit
flash_chatbot/
β”œβ”€β”€ flash_chatbot.py       # Main Python GUI chatbot app
β”œβ”€β”€ requirements.txt       # Required Python packages
└── README.md              # This file
πŸ” Setting API Keys
Replace the placeholders in flash_chatbot.py:

python
Copy
Edit
BING_API_KEY = "YOUR_BING_API_KEY"
GROQ_API_KEY = "YOUR_GROQ_API_KEY"
You can get a Bing key from Azure Cognitive Services
Get a Groq key from https://console.groq.com/

▢️ How to Run
Clone or download the project

Install Python requirements:

bash
Copy
Edit
pip install -r requirements.txt
Run the chatbot:

bash
Copy
Edit
python flash_chatbot.py
πŸ’‘ Usage Examples
Command	What it does
hi / hello	Greets the user
wiki Python	Shows Wikipedia info on Python
search latest AI news	Returns top web result via Bing
tell me a joke	Responds with a random joke
what is the capital of France?	Groq LLaMA3 answers it

πŸ› οΈ Tech Stack
tkinter – GUI

requests – API calls

beautifulsoup4 – Web scraping (Wikipedia)

Groq API – LLaMA3 natural conversation

Bing Search API – Search engine results

πŸ“œ License
This project is for educational and personal use only.

🀝 Contributing
Feel free to fork and improve! PRs are welcome.

πŸ‘¨β€πŸ’» Developer
Made with ❀️ by [Your Name Here]

yaml
Copy
Edit

---

### πŸ”„ What to Do Next:
1. Save this as a file called `README.md` inside your project folder.
2. (Optional) Replace `[Your Name Here]` with your actual name or GitHub profile link.

Let me know if you'd like a version with images, badges (for GitHub), or setup for `.env` files.







About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages