Personal AI Employee Hackathon 0 โ Building Autonomous FTEs in 2026
An autonomous email processing system that monitors Gmail, applies intelligent priority scoring, extracts tasks, creates action plans, and flags sensitive operations for human approval using the Ralph Wiggum pattern (ACT โ INFORM โ WAIT).
The AI Employee Vault autonomously:
- ๐ง Monitors your Gmail inbox for important/starred emails
- ๐ฏ Scores priority (HIGH/MEDIUM/LOW/IGNORE) based on keywords
- ๐ Extracts tasks, deadlines, and people mentioned
- ๐ Creates actionable plans with checklists
- โ๏ธ Drafts professional reply emails
โ ๏ธ Flags financial transactions for human approval- ๐ Updates a live dashboard with activity logs
- โ Follows strict rules defined in Company Handbook
No emails are sent automatically - all replies require human approval (Bronze Tier safety feature).
graph TB
A[Gmail Inbox] -->|OAuth| B[Gmail Watcher]
B -->|Poll every 5 min| C{New Email?}
C -->|Yes| D[Needs_Action/]
D --> E[AI Agent]
E --> F[Priority Scorer]
F --> G[Task Extractor]
G --> H[Reply Drafter]
H --> I{Financial?}
I -->|Yes| J[Flag HITL]
I -->|No| K[Create Plan]
J --> K
K --> L[Update Dashboard]
L --> M[Move to Done/]
M --> N[Human Reviews]
- โ Gmail Watcher - OAuth authentication, polls every 5 minutes
- โ Priority Scoring - Keyword-based urgency detection
- โ Task Extraction - Automatic action item identification
- โ Reply Drafting - Professional email responses
- โ HITL Protection - Financial operations require approval
- โ Dashboard - Live system status and activity logs
- โ Ralph Wiggum Loop - ACT โ INFORM โ WAIT autonomy pattern
- โ Folder Workflow - Needs_Action โ Plans โ Done pipeline
- ๐ OAuth 2.0 authentication (no password storage)
- ๐ Local data storage only (no external APIs except Gmail)
- ๐ Read-only Gmail scope (cannot send emails)
- ๐ Automatic HITL flags for financial keywords
- ๐ All sensitive files in .gitignore
- Python 3.13+
- Gmail account
- Google Cloud Project with Gmail API enabled
- Clone the repository:
git clone https://github.com/AnamShergill/Hackathon_0-Bronze-Tier.git
cd Hackathon_0-Bronze-Tier- Install dependencies:
pip install google-api-python-client google-auth-oauthlib google-auth-httplib2 watchdog python-dotenv playwright pyyaml-
Set up Gmail API:
- Go to Google Cloud Console
- Create a new project
- Enable Gmail API
- Create OAuth 2.0 credentials
- Download as
credentials.jsonand place in project root
-
Start the Gmail Watcher:
python Watchers/gmail_watcher.py- Browser opens for OAuth (first run only)
- Polls Gmail every 5 minutes
- Creates
.mdfiles inNeeds_Action/
- Process emails:
python Skills/email_processor.py- Applies priority scoring
- Extracts tasks and deadlines
- Creates plans in
Plans/ - Drafts replies (requires approval)
- Moves processed emails to
Done/
- Check the dashboard:
cat Dashboard.mdAI_Employee_Vault/
โโโ Needs_Action/ # Incoming emails from watcher
โโโ Plans/ # Action plans and draft replies
โโโ Done/ # Processed emails with <COMPLETE> markers
โโโ Pending_Approval/ # Items awaiting human approval
โโโ Approved/ # Human-approved items
โโโ Skills/ # Agent skill definitions
โ โโโ 01_EMAIL_PROCESSOR.md
โ โโโ 02_EMAIL_REPLY_DRAFTER.md
โ โโโ 03_TASK_EXTRACTOR.md
โ โโโ 04_PRIORITY_SCORER.md
โ โโโ 05_DASHBOARD_UPDATER.md
โ โโโ 06_ARCHIVE_CLEANER.md
โ โโโ email_processor.py
โโโ Watchers/ # External system monitors
โ โโโ gmail_watcher.py
โ โโโ base_watcher.py
โโโ Dashboard.md # Live system status
โโโ Company_Handbook.md # Rules of engagement
โโโ CLAUDE.md # AI agent system prompt
โโโ demo_guide.md # Comprehensive demo guide
โโโ TROUBLESHOOTING.md # Debug guide
โโโ orchestrator.py # Main coordination script
-
Send email to yourself with:
- Subject:
URGENT: Payment Due $500 - Body:
Please process this payment by tomorrow.
- Subject:
-
In Gmail:
- DON'T open it (keep unread)
- Click the star icon โญ
-
Wait up to 5 minutes for watcher to detect
-
Run processor:
python Skills/email_processor.py- Check results:
ls Plans/ # Action plan created
ls Done/ # Email moved here
cat Dashboard.md # Updated with activityThe system automatically assigns priorities:
| Priority | Triggers | Example |
|---|---|---|
| HIGH | Urgent keywords + $ amounts + deadlines | "URGENT: Invoice $500 due tomorrow" |
| MEDIUM | Questions, requests, updates | "Can you send me the report?" |
| LOW | Informational, confirmations | "Your order has shipped" |
| IGNORE | Promotional, no-reply senders | "Newsletter: Weekly deals" |
Per Company_Handbook.md, these operations require human approval:
โ Auto-approve:
- Reading emails
- Creating plans
- Updating dashboard
- Financial transactions ($, โฌ, ยฃ, payment, invoice)
- Sending emails with attachments
- Adding new recipients (CC/BCC)
Example HITL flag:
requires_hitl: true
hitl_reason: "Financial transaction ($500) requires human approval"Check:
- Email is unread (bold in Gmail)
- Email is starred (yellow star icon)
- Email is in Inbox (not Sent/Spam)
- Email is recent (last 24 hours)
Debug:
python debug_gmail.pySee TROUBLESHOOTING.md for detailed guide.
- demo_guide.md - Comprehensive demo and usage guide
- TROUBLESHOOTING.md - Debug and fix common issues
- Company_Handbook.md - Rules and authorization levels
- CLAUDE.md - AI agent system prompt
- Structured markdown files with YAML frontmatter
- Ralph Wiggum pattern for clear autonomy boundaries
- Keyword-based priority scoring (no ML needed)
- Folder-based workflow (simple and debuggable)
- HITL flags for financial operations
- HTML email content extraction
- Gmail's 24-hour query limitation
- No automatic email sending (by design)
- Manual loop execution required
- Autonomy requires constraints (HITL approval builds trust)
- Transparency is critical (dashboard + activity logs)
- Simple > Complex (files easier than database)
- Security first (limited OAuth scopes)
- ๐ฑ WhatsApp Business API watcher
- ๐ง MCP email sender with approval workflow
- ๐ Automatic loop trigger on new files
- ๐งต Conversation threading
- ๐ Multi-channel (Slack, Discord, Telegram)
- ๐ง Advanced NLP (sentiment, entity extraction)
- ๐ Calendar integration
- ๐ณ Payment processing with HITL
- ๐ค Team collaboration
- ๐ฑ Mobile app
- ๐ค Voice interface
- ๐ฎ Proactive suggestions
This is a hackathon project demonstrating Bronze Tier capabilities. Contributions welcome!
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
MIT License - See LICENSE file for details
Built for Personal AI Employee Hackathon 0 โ Building Autonomous FTEs in 2026
Special thanks to:
- Google Gmail API team
- Python community
- Claude AI for development assistance
Anam Shergill
- GitHub: @AnamShergill
- Project: Hackathon_0-Bronze-Tier
Bronze Tier Complete โ
- Folder structure โ
- Core markdown files โ
- Python project + dependencies โ
- Gmail Watcher running โ
- Agent skills created โ
- Ralph Wiggum loop functional โ
Ready for Silver Tier! ๐
Last Updated: March 18, 2026
Version: Bronze Tier v1.0
Status: Production Ready