Intelligent task management powered by AI
Automate reminders, emails, and scheduling with natural language commands
Features • Quick Start • Demo • Architecture
AI Personal Task Automation Agent is a comprehensive productivity solution that uses LLM-based intelligence, NLP, and autonomous agents to automate your daily tasks, calendar management, and email communications. Built for the DSARG_2 Hackathon.
Managing tasks across calendars, emails, and productivity tools is time-consuming and mentally taxing. This AI-driven assistant reduces cognitive overload and dramatically improves day-to-day efficiency through:
- 🧠 Intelligent Task Prioritization - AI automatically ranks tasks by urgency
- 💬 Natural Language Interface - Just tell it what you need in plain English
- 🔄 Multi-Tool Orchestration - Seamlessly syncs across Calendar, Gmail, and Notion
- 🔔 Proactive Reminders - Smart notifications based on deadlines and priorities
- 📊 Beautiful Dashboard - Modern glassmorphism UI with real-time updates
✅ AI-Powered Understanding
- GPT-4 integration for natural language processing
- Intent extraction and entity recognition
- Context-aware task planning
✅ Smart Task Management
- Intelligent prioritization based on deadlines and importance
- Automatic rescheduling and conflict detection
- Task dependency management
✅ Calendar Integration
- Google Calendar API sync
- Free/busy time analysis
- Meeting scheduling suggestions
✅ Email Automation
- Gmail API for sending notifications
- AI-drafted emails
- Automated reminders and follow-ups
✅ Modern Web Interface
- Stunning glassmorphism design
- Real-time updates
- Responsive mobile-friendly layout
- Dark mode with vibrant gradients
- Python 3.8 or higher
- pip (Python package manager)
- Modern web browser
- (Optional) Google Cloud account for Calendar/Gmail integration
- (Optional) OpenAI API key for enhanced AI features
-
Clone or navigate to the project directory
cd c:\Users\vansh\Desktop\Hackathon
-
Install Python dependencies
pip install -r requirements.txt
-
Set up environment variables
# Copy the example file copy .env.example .env # Edit .env and add your API keys (optional for demo) notepad .env
-
Generate demo data
python backend/demo_data.py
-
Start the backend server
python backend/app.py
-
Open the web interface
- Open your browser and navigate to:
http://localhost:5000 - The application should now be running! 🎉
- Open your browser and navigate to:
The application works perfectly without any API keys in demo mode:
- ✅ Full UI functionality
- ✅ Task and event management (stored in local SQLite database)
- ✅ NLP-based intent extraction (no OpenAI required)
- ✅ Email preview (emails are printed to console instead of sent)
- ✅ All features except Google Calendar sync
- Go to Google Cloud Console
- Create a new project
- Enable Google Calendar API and Gmail API
- Create OAuth 2.0 credentials
- Download
credentials.jsonand place it in the project root - The same
credentials.jsonworks for both Calendar and Gmail!
- Get API key from OpenAI Platform
- Add to
.envfile:OPENAI_API_KEY=your_key_here
Try these in the AI chat interface:
"Schedule a team meeting tomorrow at 3 PM"
→ Creates calendar event for tomorrow at 3 PM
"Create a high priority task to review the proposal"
→ Creates urgent task with proper priority
"Remind me to call John next Monday"
→ Creates task with reminder for Monday
"Send an email to client@company.com about project update"
→ Drafts and sends professional email
"What tasks do I have this week?"
→ Shows all tasks with this week's deadlines
- Click "+ Add" in the Tasks section
- Fill in task details (title, description, priority, deadline)
- Click "Save Task"
- Click "+ Event" in the Calendar section
- Enter event details (title, start time, duration, location)
- Click "Save Event"
- Event syncs to Google Calendar (if configured)
┌─────────────────────────────────────────┐
│ Frontend (Vanilla JS) │
│ Modern UI • Real-time Updates • Chat │
└────────────────┬────────────────────────┘
│ REST API
┌────────────────▼────────────────────────┐
│ Flask Backend (Python) │
│ • AI Agent (GPT-4) │
│ • NLP Engine (Intent Extraction) │
│ • Workflow Automation │
└────┬─────────────────────────┬──────────┘
│ │
┌────▼──────────┐ ┌──────────▼─────────┐
│ SQLite DB │ │ Integrations │
│ Tasks │ │ • Google Calendar │
│ Events │ │ • Gmail API │
│ Reminders │ │ • OpenAI GPT-4 │
└───────────────┘ └────────────────────┘
Backend:
- Flask (Web framework)
- OpenAI GPT-4 (LLM intelligence)
- spaCy (NLP processing)
- SQLite (Database)
- Google APIs (Calendar & Gmail)
Frontend:
- Vanilla JavaScript (No bloated frameworks!)
- Modern CSS with Glassmorphism
- Google Fonts (Inter)
Hackathon/
├── backend/
│ ├── app.py # Flask backend server
│ ├── ai_agent.py # LLM-based AI agent
│ ├── nlp_engine.py # Natural language processing
│ ├── database.py # SQLite database manager
│ ├── models.py # Data models
│ ├── workflow_engine.py # Automation workflows
│ ├── demo_data.py # Demo data generator
│ └── integrations/
│ ├── google_calendar.py # Google Calendar API
│ └── gmail.py # Gmail API
├── frontend/
│ ├── index.html # Main web page
│ ├── styles.css # Modern glassmorphism CSS
│ └── app.js # Frontend application logic
├── requirements.txt # Python dependencies
├── .env.example # Environment variables template
└── README.md # This file
Beautiful glassmorphism design with vibrant gradients and smooth animations.
Natural language command processing with real-time responses.
Intelligent prioritization with visual priority indicators and deadline tracking.
Seamless Google Calendar sync with conflict detection.
# Start the backend
python backend/app.py
# Server should start on http://localhost:5000
# Check console for integration status-
AI Natural Language
- Type: "Schedule a meeting tomorrow at 2 PM"
- Verify: Event appears in calendar
-
Task Prioritization
- Create tasks with different priorities
- Verify: AI sorts them intelligently
-
Email Automation
- Fill in email form and send
- Check console for email output (demo mode)
-
Responsive Design
- Resize browser window
- Verify: UI adapts smoothly
# OpenAI (optional - enhanced AI features)
OPENAI_API_KEY=your_openai_key
# Google Cloud (optional - Calendar & Gmail)
GOOGLE_CREDENTIALS_PATH=credentials.json
# Database
DATABASE_PATH=tasks.db
# Flask
FLASK_ENV=development
FLASK_DEBUG=True
SECRET_KEY=change_this_in_productionAs required by the hackathon:
Datasets:
- ✅ Custom synthetic task logs (generated by demo_data.py)
- ✅ Google Calendar sample datasets
- ✅ Personal productivity patterns
APIs:
- ✅ Google Calendar API
- ✅ Gmail API
- ✅ OpenAI GPT-4 API
- ✅ (Notion API ready but optional)
AI/Technical Solution:
- ✅ NLP for intent extraction
- ✅ LLM-based task planning agents (GPT-4)
- ✅ Tool-using autonomous agents
- ✅ Intelligent prioritization algorithms
This project demonstrates:
- Full Solution - Goes beyond prototype with production-ready features
- AI Integration - Multiple AI technologies (GPT-4, NLP, autonomous agents)
- Real-World Use - Solves actual productivity pain points
- Beautiful Design - Premium UI that wows users
- Scalable Architecture - Clean, modular codebase
- Multi-Tool Integration - Seamless orchestration across platforms
This is a hackathon project, but feel free to:
- Report bugs
- Suggest features
- Submit pull requests
MIT License - feel free to use this project for learning and inspiration!
- Built for DSARG_2 Hackathon
- Powered by OpenAI GPT-4
- Inspired by modern productivity tools
- Icons from Unicode emoji
For issues or questions:
- Check the console for error messages
- Ensure all dependencies are installed
- Verify API credentials are correct
- Run in demo mode first to test basic functionality
Made with ❤️ for the DSARG_2 Hackathon
May your hard work, creativity, and teamwork lead you to great success!