Skip to content

vansh-agarwal/Agent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿค– AI Personal Task Automation Agent

Status License Python

Intelligent task management powered by AI

Automate reminders, emails, and scheduling with natural language commands

Features โ€ข Quick Start โ€ข Demo โ€ข Architecture


๐ŸŽฏ Overview

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.

Why This Matters

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

โœจ Features

Full Solution (Not Just Prototype!)

โœ… 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

๐Ÿš€ Quick Start

Prerequisites

  • 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

Installation

  1. Clone or navigate to the project directory

    cd c:\Users\vansh\Desktop\Hackathon
  2. Install Python dependencies

    pip install -r requirements.txt
  3. Set up environment variables

    # Copy the example file
    copy .env.example .env
    
    # Edit .env and add your API keys (optional for demo)
    notepad .env
  4. Generate demo data

    python backend/demo_data.py
  5. Start the backend server

    python backend/app.py
  6. Open the web interface

    • Open your browser and navigate to: http://localhost:5000
    • The application should now be running! ๐ŸŽ‰

๐ŸŽฎ Demo Mode

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

To Enable Full Features

Google Calendar & Gmail

  1. Go to Google Cloud Console
  2. Create a new project
  3. Enable Google Calendar API and Gmail API
  4. Create OAuth 2.0 credentials
  5. Download credentials.json and place it in the project root
  6. The same credentials.json works for both Calendar and Gmail!

OpenAI (for enhanced AI)

  1. Get API key from OpenAI Platform
  2. Add to .env file: OPENAI_API_KEY=your_key_here

๐Ÿ’ก Usage Examples

Natural Language Commands

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

Manual Task Creation

  1. Click "+ Add" in the Tasks section
  2. Fill in task details (title, description, priority, deadline)
  3. Click "Save Task"

Calendar Events

  1. Click "+ Event" in the Calendar section
  2. Enter event details (title, start time, duration, location)
  3. Click "Save Event"
  4. Event syncs to Google Calendar (if configured)

๐Ÿ—๏ธ Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚          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    โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜   โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Technology Stack

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)

๐Ÿ“‚ Project Structure

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

๐ŸŽจ Screenshots

Main Dashboard

Beautiful glassmorphism design with vibrant gradients and smooth animations.

AI Chat Interface

Natural language command processing with real-time responses.

Task Management

Intelligent prioritization with visual priority indicators and deadline tracking.

Calendar Integration

Seamless Google Calendar sync with conflict detection.


๐Ÿงช Testing & Verification

Automated Tests

# Start the backend
python backend/app.py

# Server should start on http://localhost:5000
# Check console for integration status

Manual Testing Scenarios

  1. AI Natural Language

    • Type: "Schedule a meeting tomorrow at 2 PM"
    • Verify: Event appears in calendar
  2. Task Prioritization

    • Create tasks with different priorities
    • Verify: AI sorts them intelligently
  3. Email Automation

    • Fill in email form and send
    • Check console for email output (demo mode)
  4. Responsive Design

    • Resize browser window
    • Verify: UI adapts smoothly

๐Ÿ”ง Configuration

Environment Variables (.env)

# 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_production

๐ŸŽ“ Datasets & APIs Used

As 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

๐Ÿ† Hackathon Highlights

This project demonstrates:

  1. Full Solution - Goes beyond prototype with production-ready features
  2. AI Integration - Multiple AI technologies (GPT-4, NLP, autonomous agents)
  3. Real-World Use - Solves actual productivity pain points
  4. Beautiful Design - Premium UI that wows users
  5. Scalable Architecture - Clean, modular codebase
  6. Multi-Tool Integration - Seamless orchestration across platforms

๐Ÿค Contributing

This is a hackathon project, but feel free to:

  • Report bugs
  • Suggest features
  • Submit pull requests

๐Ÿ“„ License

MIT License - feel free to use this project for learning and inspiration!


๐Ÿ™ Acknowledgments

  • Built for DSARG_2 Hackathon
  • Powered by OpenAI GPT-4
  • Inspired by modern productivity tools
  • Icons from Unicode emoji

๐Ÿ“ง Support

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!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors