File size: 9,426 Bytes
a3d5221
c3bc172
 
 
 
a3d5221
 
 
c3bc172
 
 
 
 
 
a3d5221
 
c3bc172
 
 
 
 
f359666
c3bc172
 
 
 
 
268d6a2
c3bc172
 
 
 
268d6a2
c3bc172
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f359666
c3bc172
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f359666
c3bc172
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a3d5221
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
---
title: LifeAdmin AI - Autonomous Life Management Agent
emoji: πŸ€–
colorFrom: purple
colorTo: blue
sdk: gradio
sdk_version: 6.0.1
app_file: app.py
pinned: true
license: mit
tags:
  - mcp-in-action-track-enterprise
  - mcp-in-action-track-consumer
  - mcp-in-action-track-creative
---

# πŸ€– LifeAdmin AI - Your Autonomous Life Management Agent

> **πŸ† Hugging Face MCP Birthday Hackathon Submission**  
> **Track 2:** MCP in Action 
> **Tags:**
  - mcp-in-action-track-enterprise
  - mcp-in-action-track-consumer
  - mcp-in-action-track-creative

## πŸ“Ί Demo Video

**▢️ Watch Demo Video** https://drive.google.com/file/d/1Hdo_hHE-tohYYDmbmX5NJuZY1hrBKcW-/view?usp=sharing


## πŸ“± Social Media

**LinkedIn Post:** https://www.linkedin.com/posts/maheen-touqeer-3b5b03289_mcp1stbirthday-aiagents-mcp-activity-7400925160662405121-4n97?utm_source=share&utm_medium=member_desktop&rcm=ACoAAEYb6nkB0latOGw2UbEtSUJfOzMNGaP4OPs


## 🎯 Overview

**LifeAdmin AI** is an autonomous AI agent that revolutionizes how professionals manage life administration tasks. Built with Gradio 6 and powered by the Model Context Protocol (MCP), it demonstrates advanced autonomous reasoning, planning, and execution capabilities.

### The Problem

Professionals waste **4-6 hours weekly** on repetitive admin tasks:
- Manual form filling
- Document organization
- Calendar management
- Email composition
- Deadline tracking
- File searching

### Our Solution

An **autonomous AI agent** that:
βœ… Understands complex requests through natural language  
βœ… Plans multi-step workflows autonomously  
βœ… Executes tasks using 7+ MCP tools  
βœ… Learns from past interactions via persistent memory  
βœ… Provides real-time feedback on reasoning process  

## ✨ Key Features

### πŸ€– **Autonomous Agent Capabilities**

#### 1. **Intelligent Planning**
- Analyzes user requests and breaks them into actionable tasks
- Selects appropriate MCP tools for each subtask
- Handles dependencies and sequential execution

#### 2. **Contextual Reasoning**
- Uses RAG (Retrieval-Augmented Generation) to search uploaded documents
- Leverages conversation history from persistent memory
- Makes intelligent decisions based on available context

#### 3. **Multi-Step Execution**
- Executes complex workflows autonomously
- Provides real-time thought traces showing reasoning
- Handles errors gracefully with fallback strategies

### πŸ”§ **MCP Tool Suite (7 Tools)**

1. **πŸ“„ OCR Text Extraction** - Extract text from images and scanned documents
2. **πŸ“‘ PDF Analysis** - Summarize PDFs and extract metadata (dates, amounts, entities)
3. **πŸ“‹ Smart Form Filler** - Auto-fill DOCX/XLSX forms with intelligent field matching
4. **βœ‰οΈ Email Drafter** - Generate context-aware professional emails
5. **πŸ“… Calendar Generator** - Create ICS calendar events from natural language
6. **πŸ—‚οΈ File Organizer** - Organize files by type, date, or size
7. **πŸ” RAG Search** - Semantic document search with vector embeddings

### πŸ’¬ **Three Interaction Modes**

#### 1. **Manual Dashboard** - Granular Control
Direct access to each MCP tool with visual interface for precise control.

#### 2. **LifeAdmin Coach** - Conversational AI
Chat with an AI assistant that:
- Answers questions about uploaded documents
- Automatically calls appropriate tools
- Provides summarization and insights
- Tracks conversation history

#### 3. **Voice Agent** - Hands-Free Operation
Speak commands naturally and watch the agent:
- Transcribe speech (Groq Whisper)
- Plan and execute tasks
- Respond with synthesized speech (ElevenLabs)

## πŸ—οΈ Architecture

### **Tech Stack**

```
Frontend:  Gradio 6.0 
Agent:     Custom autonomous agent with planning & reflection
MCP:       7 custom MCP tool servers (local fallback mode)
RAG:       ChromaDB + Sentence Transformers (all-MiniLM-L6-v2)
Memory:    SQLite persistent storage
LLMs:      OpenAI GPT-4, Hyperbolic, Groq Llama 3.3  (fallback chain)
Voice:     Groq Whisper (STT), ElevenLabs (TTS)
```

### **Agent Architecture**

```
User Request
    ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  Agent Core     β”‚
β”‚  - Planning     β”‚ ←→ [Memory Store]
β”‚  - Reasoning    β”‚ ←→ [RAG Engine]
β”‚  - Execution    β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚   MCP Client       β”‚
β”‚   Tool Router      β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
         ↓
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚  MCP Tool Servers (7)           β”‚
β”‚  β€’ OCR  β€’ PDF  β€’ Forms          β”‚
β”‚  β€’ Email  β€’ Calendar  β€’ Files   β”‚
β”‚  β€’ RAG                          β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
```

### **Key Technical Decisions**

1. **Local MCP Execution** - All tools run locally with async fallback for reliability
2. **Multi-Provider LLM** - Graceful degradation across OpenAI β†’ Hyperbolic β†’ Groq
3. **RAG Integration** - Document context enhances agent decision-making
4. **Persistent Memory** - SQLite stores conversations and user preferences
5. **Async-First Design** - Non-blocking I/O for responsive UX

## 🎬 Real-World Use Cases

### **Use Case 1: Automated Form Filling**
```
User uploads membership form + provides data
Agent: Plans extraction β†’ Fills form β†’ Returns completed document
Time saved: 15 minutes β†’ 30 seconds
```

### **Use Case 2: Document Analysis**
```
User: "What are the key deadlines in my PDF?"
Agent: Searches RAG β†’ Extracts dates β†’ Summarizes deadlines
Output: Structured deadline list with context
```

### **Use Case 3: Email Workflow**
```
User: "Draft a follow-up email for my membership application"
Agent: Retrieves application context β†’ Generates professional email β†’ Offers editing
Result: Publication-ready email in seconds
```

### **Use Case 4: Calendar Management**
```
User: "Create a meeting next Tuesday at 2pm"
Agent: Parses natural language β†’ Generates ICS file β†’ Ready for import
Integration: Works with Google Calendar, Outlook, Apple Calendar
```

## πŸ“– How to Use

### **1. Manual Dashboard**

1. Upload files (PDF, images, documents)
2. Select a tool (OCR, PDF, Forms, etc.)
3. Configure parameters
4. Execute and download results

### **2. LifeAdmin Coach**

1. Upload documents in Manual Dashboard first
2. Switch to Coach tab
3. Ask questions like:
   - "What documents have I uploaded?"
   - "Summarize my PDF"
   - "What's on my calendar?"
   - "Draft an email about X"

### **3. Voice Agent**

1. Upload files (optional)
2. Click microphone or type command
3. Click "Execute Command"
4. Watch agent reasoning in real-time
5. Receive voice + text response

## πŸ† Why LifeAdmin AI?

### **Judging Criteria Alignment**

#### βœ… **Design/Polished UI-UX** 
- Clean, modern interface with Gradio 6
- Responsive mobile design
- Intuitive tab-based navigation
- Real-time feedback and progress indicators
- Professional gradient theming

#### βœ… **Functionality** 
- **Autonomous agents:** Full planning-reasoning-execution cycle
- **MCP integration:** 7 custom MCP tools
- **Advanced features:** RAG, persistent memory, multi-modal I/O
- **Gradio 6 features:** SSR, mobile support, async operations

#### βœ… **Creativity** 
- Novel combination of voice + chat + manual control
- Intelligent form-filling with fuzzy matching
- Thought trace visualization for transparency
- Context-aware tool selection

#### βœ… **Documentation** 
- Comprehensive README with architecture diagrams
- Demo video showing all features
- Clear setup instructions
- Code comments and docstrings

#### βœ… **Real-World Impact** 
- **Target users:** 100M+ professionals worldwide
- **Time savings:** 4-6 hours/week per user
- **Pain points addressed:** Forms, emails, documents, scheduling
- **Scalability:** Cloud-ready architecture

###πŸš€ **Quick Start**
Try it Online
πŸ‘‰ Open LifeAdmin AI on Hugging Face
https://huggingface.co/spaces/MCP-1st-Birthday/LifeAdmin-AI

Run Locally
bash# Clone repository
git clone https://github.com/MCP-1st-Birthday/LifeAdmin-AI.git
cd LifeAdmin-AI

# Install dependencies
pip install -r requirements.txt

# Set up API keys (at least one required)
export OPENAI_API_KEY="your_key"        
export GROQ_API_KEY="your_key"          
export ELEVENLABS_API_KEY="your_key"    
export HYPERBOLIC_API_KEY="your_key" 

# Launch app
python app.py
Visit http://localhost:7860

## 🀝 Team

**Solo Developer:** Maheen Touqeer  
**HuggingFace:** https://huggingface.co/Maheentouqeer1
**LinkedIn:**  https://www.linkedin.com/in/maheen-touqeer-3b5b03289/


## πŸ™ Acknowledgments

Built for **MCP's 1st Birthday Hackathon** hosted by:
- **Anthropic** - For the amazing Claude API and MCP protocol
- **Gradio Team** - For Gradio 6 and excellent documentation
- **Hugging Face** - For hosting infrastructure and community
- **Sponsor APIs** - OpenAI, Groq, ElevenLabs, Hyperbolic

Special thanks to the MCP community for inspiration and support! πŸŽ‰


## πŸ“ž Contact & Feedback

**Questions?** Reach out on Hugging Face Space Community

**Found it useful?** ⭐ Star this Space and share with your network!

Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference