An intelligent command-line assistant powered by Google's Gemini-Pro API, designed to interact using prompt engineering principles. Built to answer questions, summarize text, create stories or poems, and provide actionable advice — all from your terminal!
- 🔍 Answer Factual Questions – Instantly retrieve answers from the Gemini AI model.
- 📚 Text Summarization – Get concise summaries of long paragraphs or articles.
- ✨ Creative Content Generation – Write poems, stories, or novel ideas with style.
- 💡 Advice & Tips – Study hacks, stress management, time organization — just ask!
- 📥 User Feedback Logger – Logs all prompts, AI responses, and user feedback into
feedback_log.txt.
- Language: Python 3
- API: Google AI Studio (Gemini-Pro)
- Libraries:
git clone https://github.com/your-username/Gemini-AI-Assistant-CLI.git
cd Gemini-AI-Assistant-CLIpip install -r requirements.txtCreate a .env file in the root directory and add your API key:
GEMINI_API_KEY=your_gemini_api_key_hereGet your key from 👉 https://aistudio.google.com/app/apikey
python assistant.py| Category | Prompt Example |
|---|---|
| Q&A | “What is gravity?” |
| Summarize | “Summarize: [text]” |
| Creative | “Write a poem about courage.” |
| Advice | “Give study tips for exams.” |
You can choose from suggested prompts or enter your own custom query.
Gemini-AI-Assistant-CLI/
├── assistant.py
├── .env # Not tracked in Git
├── feedback_log.txt # All AI responses + feedback
├── requirements.txt
├── .gitignore
└── README.md
Every interaction is saved:
=== New Interaction ===
Category : summarize
User Prompt : Summarize the following paragraph...
AI Response : The main idea is...
Feedback : yes
Saket Chaudhary 🔗 LinkedIn 📧 saketrishu64821@gmail.com
This project is open-source and available under the MIT License.