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

2 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages