A Streamlit-powered dashboard for KGen that uses AI to analyze Twitter mentions, generate smart replies, visualize trends, and engage users with games-all in one interactive app. Powered by Groq API and TextBlob.
- 🤖 AI Chatbot: Chat with KGen Bot using Groq’s Llama3 model
- 🧠 Sentiment Analysis: Detects tweet sentiment using TextBlob
- 📊 Word Cloud: Visualizes trending words from tweets
- 🎮 Trivia & Games: Play Twitter trivia and sentiment guessing
- 📈 Feedback Tracker: See your engagement progress
- 🔒 Secure: API keys are never committed
-
Clone the Repository
git clone https://github.com/YOUR-USERNAME/kgen-engagement-dashboard.git cd kgen-engagement-dashboard
-
Create a Virtual Environment (Recommended)
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
-
Install Dependencies
pip install -r requirements.txt
-
Create a
.env
file in the project root (same folder asapp.py
):GROQ_API_KEY=your_groq_api_key_here
Never share or commit your
.env
file!
- Go to Groq Cloud Console
- Log in or sign up for an account
- Click Create API Key
- Copy your new API key and paste it into your
.env
file as shown above
streamlit run app.py
- The dashboard will open in your browser at
http://localhost:8501
- Select tweets, chat with the bot, play games, and visualize engagement!
kgen-engagement-dashboard/
├── app.py
├── modules/
│ ├── reply_generator.py
│ ├── sentiment.py
│ └── twitter_predefined_texts.py
├── config/
│ └── tone_profile.json
├── data/
│ └── feedback_log.csv
├── requirements.txt
└── .env # <-- You create this!
.env
andvenv/
are in.gitignore
and should never be committed- If you accidentally commit secrets, remove them from git history
Pull requests and suggestions are welcome! For major changes, please open an issue first.
MIT
Enjoy building with KGen Engagement Dashboard! 🚀