CoolFace
Apppublic

devanshb26/promotional-email-intelligence

sourceHugging Faceupdated 8mo agoView on Hugging Face
0likes
App README

๐Ÿ“ง 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

  1. 1.Navigate to the Chat tab
  2. 2.Type your question or click a quick start button
  3. 3.Get AI-powered insights and visualizations
  4. 4.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