A simple terminal-based AI chatbot built with Python and the Groq API. The chatbot remembers previous conversations between The User and Bot by storing chat history in a JSON file. Bot response to the User by revewing the previous conversations and gives the concise Answers..
- 💬 Multi-turn conversations
- 🧠 Conversation memory
- 💾 Persistent chat history
- 🔐 Secure API key using
.env - ⚡ Powered by Groq API
- 🤖 Uses the
openai/gpt-oss-120bmodel
- Python
- Groq Python SDK
- python-dotenv
- JSON
chatbot_Groq_proj/
│
├── chat_history/
│ └── history.json
├── .env
├── .gitignore
├── First_Chatbot.py
├── requirements.txt
└── README.md
git clone https://github.com/your-username/your-repository.gitcd chatbot_Groq_projpython -m venv .venvWindows:
.venv\Scripts\activatepip install -r requirements.txtCreate a .env file:
GROQ_API_KEY=your_api_key_here
python First_Chatbot.pyYou: Hello
Bot: Hello! How can I help you today?
You: What is Python?
Bot: Python is a popular programming language...
You: quit
Goodbye!
- Streaming responses
- Multiple chat sessions
- Voice input
- GUI using Tkinter
- Web version using Flask/FastAPI
- Tool calling (Weather, Calculator, Search)
Prince Prem