An intelligent astronomy AI agent that answers deep space questions with structured scientific responses, real NASA images, and trending research — completely free.
🚀 Live Demo · 📖 Documentation · 🐛 Report Bug · ✨ Request Feature
AstroBot is a full-stack AI agent web application built for astronomy enthusiasts, students, and researchers. Ask any question about the universe — from black holes to the Big Bang — and AstroBot responds with structured scientific answers, real NASA space imagery, and the latest research trends.
This project was built as Day 1 of a 120-day AI/ML engineering transformation — starting from zero and building toward production-grade AI systems.
"The cosmos is within us. We are made of star-stuff." — Carl Sagan
| Feature | Description |
|---|---|
| 🤖 AI Agent | Powered by Groq + LLaMA 3.3 70B — structured responses with derivations |
| 🖼️ NASA Images | Real space photos fetched live from NASA Image Library |
| 🌠 APOD | NASA Astronomy Picture of the Day in sidebar |
| 📰 Trending Research | Latest 2023-2025 astronomy discoveries and missions |
| 💬 Chat Memory | Full conversation history within each session |
| 🆓 100% Free | No paid APIs required — Groq free tier + NASA free APIs |
| 📱 Responsive | Works on desktop and mobile browsers |
Backend
- Python 3.10+
- Flask 3.0
- Groq SDK (LLaMA 3.3 70B Versatile)
Frontend
- HTML5 / CSS3 / Vanilla JavaScript
- Marked.js (Markdown rendering)
- Custom space-themed UI
APIs (All Free)
- Groq API — AI responses via LLaMA 3.3 70B
- NASA Image and Video Library — Space images
- NASA APOD API — Picture of the Day
- Python 3.10 or higher
- pip (Python package manager)
- A free Groq API key from console.groq.com
git clone https://github.com/tanmayakumar9070-ctrl/astrobot.git
cd astrobot- Go to console.groq.com
- Sign in / Sign up
- Click API Keys → Create API Key
- Copy the key
Create a file called config.py in the project folder:
GROQ_API_KEY = "paste_your_groq_key_here"
⚠️ config.pyis in.gitignore— it will never be pushed to GitHub.
pip install -r requirements.txtpython Astrobot.pyhttp://localhost:5000
🎉 AstroBot is live!
astrobot/
│
├── Astrobot.py # Flask backend — API routes, AI agent logic
├── requirements.txt # Python dependencies
├── config.py # 🔒 Your API key (NOT pushed to GitHub)
├── .gitignore # Protects secrets from being committed
├── README.md # You are here
│
└── templates/
└── index.html # Frontend — UI, chat interface, styling
User Question
│
▼
Flask Backend (Astrobot.py)
│
├──► Groq API (LLaMA 3.3 70B)
│ │
│ ▼
│ Structured Response
│ (Answer + Derivation +
│ Implications + Insights)
│
└──► NASA Image Library API
│
▼
Relevant Space Images
│
▼
Combined Response
sent to Frontend
Every AstroBot answer follows this format:
🔭 CORE ANSWER — Scientific answer with real data
📐 MATHEMATICAL DERIVATION — Physics, equations, step by step
🌌 LATEST DISCOVERIES — JWST, EHT, LIGO, Gaia findings 2023-2025
🧠 DEEP IMPLICATIONS — Philosophy, humanity, unsolved paradoxes
💡 KEY INSIGHTS — 5 surprising facts
🔗 EXPLORE FURTHER — Papers and missions to investigate
- Groq + LLaMA 3.3 AI agent
- NASA image integration
- Structured scientific responses
- APOD sidebar
- Conversation memory
- AstroBot v2 — RAG system with astronomy knowledge base
- Web search integration for real-time discoveries
- Agentic reasoning — multi-step space research
- Voice input support
- Mobile app (Android APK)
Day 1 of 120 — Foundation Phase
Status: Active Development
Next: Add RAG pipeline (Day 65-80)
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add AmazingFeature') - Push to branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Distributed under the MIT License.
Tanmaya Kumar Sahoo
Built as part of a 120-day AI/ML Engineering transformation — from zero to production-grade AI systems.
⭐ Star this repo if you found it useful!
Made with ❤️ and curiosity about the cosmos