devanshb26/promotional-email-intelligence
0
๐ง Email Intelligence Dashboard
An AI-powered analytics dashboard for promotional email data. Analyze discount trends, urgency tactics, brand strategies, and more.
๐ฏ Features
- ๐ฌ Interactive Chat: Ask questions about your email data in natural language
- ๐ Visual Analytics: Automated insights with interactive Plotly charts
- ๐ Data Explorer: Browse and filter your email database
- ๐ Brand Insights: Compare strategies across brands
- โก Real-time Analysis: LLM-powered conversational queries
๐ ๏ธ Built With
- Streamlit - Interactive web interface
- LangChain - AI agent orchestration
- Google Gemini - Large language model
- SQLite - Local database
- Plotly - Data visualizations
๐ก Example Questions
- "Which brands use the most urgency?"
- "Show me discount trends over time"
- "Compare average discounts by brand"
- "Which brands should I unsubscribe from?"
๐ Usage
- Navigate to the Chat tab
- Type your question or click a quick start button
- Get AI-powered insights and visualizations
- Explore the Overview and Data Explorer tabs for more details
Note: This demo uses a pre-populated sample database. To analyze your own emails, you'll need to run the email extraction pipeline locally.
Project Setup
This project uses Python and a virtual environment to manage dependencies.
Setup Instructions
1๏ธโฃ Clone the repository
git clone git@github.com:thisismedha/customerintelligence.git cd customerintelligence
2๏ธโฃ Create a virtual environment
python3 -m venv venv
3๏ธโฃ Activate the virtual environment
macOS / Linux
source venv/bin/activate
Windows (PowerShell)
venv\Scripts\Activate.ps1
You should see (venv) in your terminal.
4๏ธโฃ Install dependencies
pip install -r requirements.txt
Deactivate the environment
deactivate
