File size: 2,120 Bytes
183a7ce
eb9958d
 
81badfc
eb9958d
 
73b1549
eb9958d
 
 
183a7ce
 
eb9958d
81badfc
73b1549
81badfc
 
 
73b1549
eb9958d
73b1549
 
eb9958d
 
81badfc
eb9958d
09bdbf7
eb9958d
 
 
 
 
09bdbf7
 
 
eb9958d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
09bdbf7
eb9958d
 
73b1549
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
---
title: Email Thread Analyzer with AI Q&A
emoji: 📧
colorFrom: blue
colorTo: indigo
sdk: gradio
sdk_version: 3.50.2
app_file: app.py
pinned: true
license: mit
---

# Email Thread Analyzer with AI Q&A

An advanced tool for analyzing email threads, searching for relevant conversations, and generating Q&A pairs based on email content.

## Features

- Microsoft Graph API integration for secure email access
- Email thread organization and visualization
- Keyword-based search for finding relevant threads
- Q&A generation based on thread content
- Data visualization for email analytics
- Export functionality for thread data and Q&A

## Authentication

1. Click on the "Authentication" tab
2. Click "Get Authentication URL" button
3. Open the URL in a new browser tab and authenticate with Microsoft
4. After successful authentication, you'll be redirected. Copy the authorization code from the URL
5. Paste the code in the "Authorization Code" field and click "Submit"

## Usage

### Email Extraction

1. Select a mail folder from the dropdown
2. Configure extraction parameters (max emails, batch size, date range)
3. Click "Extract Emails" to fetch and organize email threads

### Thread Analysis

1. Click on the "Thread Analysis" tab
2. Click "Generate Analytics" to visualize email metrics
3. Explore the thread size distribution, activity timeline, and participant charts

### Search

1. Click on the "Search" tab
2. Enter a search query and click "Search"
3. Select a thread from the results and click "View Thread" to see details

### Q&A

1. Select a thread using the Search tab
2. Click "Generate Q&A" to create AI-powered questions and answers
3. Explore the generated Q&A pairs and summary
4. Export the thread data with Q&A for further analysis

## Privacy & Security

- All processing happens within the application
- Authentication is handled securely through Microsoft's OAuth2 flow
- No email data is stored persistently outside of your session

## Technical Details

This application uses:
- MSAL for Microsoft authentication
- Plotly for data visualization
- Microsoft Graph API for email access