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!