Maheen001 commited on
Commit
c3bc172
Β·
verified Β·
1 Parent(s): c4e553b

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +290 -5
README.md CHANGED
@@ -1,12 +1,297 @@
1
  ---
2
- title: Lifeadmin
3
- emoji: πŸ“Š
4
- colorFrom: red
5
- colorTo: purple
6
  sdk: gradio
7
  sdk_version: 6.0.1
8
  app_file: app.py
9
- pinned: false
 
 
 
 
 
10
  ---
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: LifeAdmin AI - Autonomous Life Management Agent
3
+ emoji: πŸ€–
4
+ colorFrom: purple
5
+ colorTo: blue
6
  sdk: gradio
7
  sdk_version: 6.0.1
8
  app_file: app.py
9
+ pinned: true
10
+ license: mit
11
+ tags:
12
+ - mcp-in-action-track-enterprise
13
+ - mcp-in-action-track-consumer
14
+ - mcp-in-action-track-creative
15
  ---
16
 
17
+ # πŸ€– LifeAdmin AI - Your Autonomous Life Management Agent
18
+
19
+ > **πŸ† Hugging Face MCP Birthday Hackathon Submission**
20
+ > **Track 2:** MCP in Action
21
+ > **Tags:**
22
+ > - mcp-in-action-track-enterprise
23
+ - mcp-in-action-track-consumer
24
+ - mcp-in-action-track-creative
25
+
26
+ ---
27
+
28
+ ## πŸ“Ί Demo Video
29
+
30
+ [**▢️ Watch Demo Video**](YOUR_YOUTUBE_VIDEO_LINK)
31
+
32
+
33
+ ## πŸ“± Social Media
34
+
35
+ **LinkedIn Post:** [Link to your LinkedIn post]
36
+
37
+
38
+ ## 🎯 Overview
39
+
40
+ **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.
41
+
42
+ ### The Problem
43
+
44
+ Professionals waste **4-6 hours weekly** on repetitive admin tasks:
45
+ - Manual form filling
46
+ - Document organization
47
+ - Calendar management
48
+ - Email composition
49
+ - Deadline tracking
50
+ - File searching
51
+
52
+ ### Our Solution
53
+
54
+ An **autonomous AI agent** that:
55
+ βœ… Understands complex requests through natural language
56
+ βœ… Plans multi-step workflows autonomously
57
+ βœ… Executes tasks using 7+ MCP tools
58
+ βœ… Learns from past interactions via persistent memory
59
+ βœ… Provides real-time feedback on reasoning process
60
+
61
+ ## ✨ Key Features
62
+
63
+ ### πŸ€– **Autonomous Agent Capabilities**
64
+
65
+ #### 1. **Intelligent Planning**
66
+ - Analyzes user requests and breaks them into actionable tasks
67
+ - Selects appropriate MCP tools for each subtask
68
+ - Handles dependencies and sequential execution
69
+
70
+ #### 2. **Contextual Reasoning**
71
+ - Uses RAG (Retrieval-Augmented Generation) to search uploaded documents
72
+ - Leverages conversation history from persistent memory
73
+ - Makes intelligent decisions based on available context
74
+
75
+ #### 3. **Multi-Step Execution**
76
+ - Executes complex workflows autonomously
77
+ - Provides real-time thought traces showing reasoning
78
+ - Handles errors gracefully with fallback strategies
79
+
80
+ ### πŸ”§ **MCP Tool Suite (7 Tools)**
81
+
82
+ 1. **πŸ“„ OCR Text Extraction** - Extract text from images and scanned documents
83
+ 2. **πŸ“‘ PDF Analysis** - Summarize PDFs and extract metadata (dates, amounts, entities)
84
+ 3. **πŸ“‹ Smart Form Filler** - Auto-fill DOCX/XLSX forms with intelligent field matching
85
+ 4. **βœ‰οΈ Email Drafter** - Generate context-aware professional emails
86
+ 5. **πŸ“… Calendar Generator** - Create ICS calendar events from natural language
87
+ 6. **πŸ—‚οΈ File Organizer** - Organize files by type, date, or size
88
+ 7. **πŸ” RAG Search** - Semantic document search with vector embeddings
89
+
90
+ ### πŸ’¬ **Three Interaction Modes**
91
+
92
+ #### 1. **Manual Dashboard** - Granular Control
93
+ Direct access to each MCP tool with visual interface for precise control.
94
+
95
+ #### 2. **LifeAdmin Coach** - Conversational AI
96
+ Chat with an AI assistant that:
97
+ - Answers questions about uploaded documents
98
+ - Automatically calls appropriate tools
99
+ - Provides summarization and insights
100
+ - Tracks conversation history
101
+
102
+ #### 3. **Voice Agent** - Hands-Free Operation
103
+ Speak commands naturally and watch the agent:
104
+ - Transcribe speech (Groq Whisper)
105
+ - Plan and execute tasks
106
+ - Respond with synthesized speech (ElevenLabs)
107
+
108
+ ## πŸ—οΈ Architecture
109
+
110
+ ### **Tech Stack**
111
+
112
+ ```
113
+ Frontend: Gradio 6.0
114
+ Agent: Custom autonomous agent with planning & reflection
115
+ MCP: 7 custom MCP tool servers (local fallback mode)
116
+ RAG: ChromaDB + Sentence Transformers (all-MiniLM-L6-v2)
117
+ Memory: SQLite persistent storage
118
+ LLMs: OpenAI GPT-4, Groq Llama 3.3, Hyperbolic (fallback chain)
119
+ Voice: Groq Whisper (STT), ElevenLabs (TTS)
120
+ ```
121
+
122
+ ### **Agent Architecture**
123
+
124
+ ```
125
+ User Request
126
+ ↓
127
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
128
+ β”‚ Agent Core β”‚
129
+ β”‚ - Planning β”‚ ←→ [Memory Store]
130
+ β”‚ - Reasoning β”‚ ←→ [RAG Engine]
131
+ β”‚ - Execution β”‚
132
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
133
+ ↓
134
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
135
+ β”‚ MCP Client β”‚
136
+ β”‚ Tool Router β”‚
137
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
138
+ ↓
139
+ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
140
+ β”‚ MCP Tool Servers (7) β”‚
141
+ β”‚ β€’ OCR β€’ PDF β€’ Forms β”‚
142
+ β”‚ β€’ Email β€’ Calendar β€’ Files β”‚
143
+ β”‚ β€’ RAG β”‚
144
+ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
145
+ ```
146
+
147
+ ### **Key Technical Decisions**
148
+
149
+ 1. **Local MCP Execution** - All tools run locally with async fallback for reliability
150
+ 2. **Multi-Provider LLM** - Graceful degradation across OpenAI β†’ Groq β†’ Hyperbolic
151
+ 3. **RAG Integration** - Document context enhances agent decision-making
152
+ 4. **Persistent Memory** - SQLite stores conversations and user preferences
153
+ 5. **Async-First Design** - Non-blocking I/O for responsive UX
154
+
155
+
156
+
157
+ ## 🎬 Real-World Use Cases
158
+
159
+ ### **Use Case 1: Automated Form Filling**
160
+ ```
161
+ User uploads membership form + provides data
162
+ Agent: Plans extraction β†’ Fills form β†’ Returns completed document
163
+ Time saved: 15 minutes β†’ 30 seconds
164
+ ```
165
+
166
+ ### **Use Case 2: Document Analysis**
167
+ ```
168
+ User: "What are the key deadlines in my PDF?"
169
+ Agent: Searches RAG β†’ Extracts dates β†’ Summarizes deadlines
170
+ Output: Structured deadline list with context
171
+ ```
172
+
173
+ ### **Use Case 3: Email Workflow**
174
+ ```
175
+ User: "Draft a follow-up email for my membership application"
176
+ Agent: Retrieves application context β†’ Generates professional email β†’ Offers editing
177
+ Result: Publication-ready email in seconds
178
+ ```
179
+
180
+ ### **Use Case 4: Calendar Management**
181
+ ```
182
+ User: "Create a meeting next Tuesday at 2pm"
183
+ Agent: Parses natural language β†’ Generates ICS file β†’ Ready for import
184
+ Integration: Works with Google Calendar, Outlook, Apple Calendar
185
+ ```
186
+
187
+ ## πŸ“– How to Use
188
+
189
+ ### **1. Manual Dashboard**
190
+
191
+ 1. Upload files (PDF, images, documents)
192
+ 2. Select a tool (OCR, PDF, Forms, etc.)
193
+ 3. Configure parameters
194
+ 4. Execute and download results
195
+
196
+ ### **2. LifeAdmin Coach**
197
+
198
+ 1. Upload documents in Manual Dashboard first
199
+ 2. Switch to Coach tab
200
+ 3. Ask questions like:
201
+ - "What documents have I uploaded?"
202
+ - "Summarize my PDF"
203
+ - "What's on my calendar?"
204
+ - "Draft an email about X"
205
+
206
+ ### **3. Voice Agent**
207
+
208
+ 1. Upload files (optional)
209
+ 2. Click microphone or type command
210
+ 3. Click "Execute Command"
211
+ 4. Watch agent reasoning in real-time
212
+ 5. Receive voice + text response
213
+
214
+ ## πŸ† Why LifeAdmin AI?
215
+
216
+ ### **Judging Criteria Alignment**
217
+
218
+ #### βœ… **Design/Polished UI-UX**
219
+ - Clean, modern interface with Gradio 6
220
+ - Responsive mobile design
221
+ - Intuitive tab-based navigation
222
+ - Real-time feedback and progress indicators
223
+ - Professional gradient theming
224
+
225
+ #### βœ… **Functionality**
226
+ - **Autonomous agents:** Full planning-reasoning-execution cycle
227
+ - **MCP integration:** 7 custom MCP tools
228
+ - **Advanced features:** RAG, persistent memory, multi-modal I/O
229
+ - **Gradio 6 features:** SSR, mobile support, async operations
230
+
231
+ #### βœ… **Creativity**
232
+ - Novel combination of voice + chat + manual control
233
+ - Intelligent form-filling with fuzzy matching
234
+ - Thought trace visualization for transparency
235
+ - Context-aware tool selection
236
+
237
+ #### βœ… **Documentation**
238
+ - Comprehensive README with architecture diagrams
239
+ - Demo video showing all features
240
+ - Clear setup instructions
241
+ - Code comments and docstrings
242
+
243
+ #### βœ… **Real-World Impact**
244
+ - **Target users:** 100M+ professionals worldwide
245
+ - **Time savings:** 4-6 hours/week per user
246
+ - **Pain points addressed:** Forms, emails, documents, scheduling
247
+ - **Scalability:** Cloud-ready architecture
248
+
249
+ ###πŸš€ **Quick Start**
250
+ Try it Online
251
+ πŸ‘‰ Open LifeAdmin AI on Hugging Face
252
+ https://huggingface.co/spaces/MCP-1st-Birthday/LifeAdmin-AI
253
+
254
+ Run Locally
255
+ bash# Clone repository
256
+ git clone https://github.com/MCP-1st-Birthday/LifeAdmin-AI.git
257
+ cd LifeAdmin-AI
258
+
259
+ # Install dependencies
260
+ pip install -r requirements.txt
261
+
262
+ # Set up API keys (at least one required)
263
+ export OPENAI_API_KEY="your_key"
264
+ export GROQ_API_KEY="your_key"
265
+ export ELEVENLABS_API_KEY="your_key"
266
+ export HYPERBOLIC_API_KEY="your_key"
267
+
268
+ # Launch app
269
+ python app.py
270
+ Visit http://localhost:7860
271
+
272
+ ## 🀝 Team
273
+
274
+ **Solo Developer:** Maheen Touqeer
275
+ **HuggingFace:** https://huggingface.co/Maheentouqeer1
276
+ **LinkedIn:** https://www.linkedin.com/in/maheen-touqeer-3b5b03289/
277
+
278
+
279
+ ## πŸ™ Acknowledgments
280
+
281
+ Built for **MCP's 1st Birthday Hackathon** hosted by:
282
+ - **Anthropic** - For the amazing Claude API and MCP protocol
283
+ - **Gradio Team** - For Gradio 6 and excellent documentation
284
+ - **Hugging Face** - For hosting infrastructure and community
285
+ - **Sponsor APIs** - OpenAI, Groq, ElevenLabs, Hyperbolic
286
+
287
+ Special thanks to the MCP community for inspiration and support! πŸŽ‰
288
+
289
+ ---
290
+
291
+ ## πŸ“ž Contact & Feedback
292
+
293
+ **Questions?** Reach out on Hugging Face Space Community
294
+
295
+ **Found it useful?** ⭐ Star this Space and share with your network!
296
+
297
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference