An AI-powered autonomous productivity and roadmap management agent built using Python, FastAPI, SQLite, APScheduler, Telegram Bot API, and optional LLM integration.
Unlike traditional reminder apps, this system is designed to:
- understand long-term goals
- break goals into executable tasks
- dynamically plan schedules
- adapt to user behavior
- optimize workloads
- send intelligent reminders
- track productivity patterns
- autonomously adjust future plans
This project focuses on building a real agentic productivity system rather than a simple automation tool.
Most reminder applications only send fixed notifications.
This project aims to create a personal AI productivity agent capable of:
- observing user behavior
- tracking progress
- managing workloads
- dynamically replanning schedules
- adapting task timing
- helping maintain consistency
- reducing burnout
- acting like an intelligent productivity coach
Instead of:
"Remind me at 7 PM"
The user provides:
"I want to master DSA in 3 months while balancing college."
The agent then:
- creates a roadmap
- distributes workload
- generates daily plans
- tracks completion
- adjusts schedules dynamically
- sends intelligent reminders
- Task creation
- Roadmap storage
- Daily scheduling
- Reminder notifications
- Task completion tracking
- Background scheduler
- Missed task detection
- Retry reminders
- Productivity tracking
- Completion history
- Dynamic rescheduling
- User activity analysis
- Adaptive task timing
- Intelligent workload balancing
- Priority optimization
- AI-generated planning
- Smart reminders
- Burnout detection
- Long-term memory
- Calendar integration
- Natural language planning
- AI coaching
- Multi-goal management
- Autonomous replanning engine
Goal:
Master DSA in 3 months
Available Time:
4 hours daily
Weakness:
Inconsistency
The system:
- Breaks DSA into topics
- Estimates learning workload
- Generates roadmap
- Creates daily schedules
- Sends reminders
- Tracks progress
- Detects missed tasks
- Adapts future schedules
if current_time == task_time: send_notification()
while goal_not_completed: observe_user_behavior() analyze_progress() optimize_schedule() generate_today_plan() send_notifications() evaluate_completion() adapt_future_tasks()
This is not just:
- a CRUD app
- a reminder system
- a chatbot wrapper
This project introduces:
- agent loops
- memory systems
- adaptive scheduling
- planning engines
- workload optimization
- autonomous reasoning workflows
| Technology | Purpose | Cost |
|---|---|---|
| Python | Core language | Free |
| FastAPI | Backend framework | Free |
| SQLite | Database | Free |
| SQLAlchemy | ORM | Free |
| APScheduler | Background scheduling | Free |
| Telegram Bot API | Notifications | Free |
| Pydantic | Data validation | Free |
| dotenv | Environment variables | Free |
| Uvicorn | ASGI server | Free |
| Gemini API (optional) | AI reasoning | Free tier |
| Render / Railway (optional) | Deployment | Free tier |
User
↓
Telegram Bot / API
↓
FastAPI Backend
↓
Planning Engine
↓
Task Manager
↓
Memory & Tracking System
↓
Scheduler Engine
↓
Adaptive Reminder Agent
| Component | Purpose |
|---|---|
| Goal Parser | Understands user goals |
| Planning Engine | Creates roadmap |
| Scheduler | Generates daily tasks |
| Memory System | Stores user behavior |
| Adaptation Engine | Replans schedules |
| Notification System | Sends reminders |
| Tracking Engine | Monitors completion |
| AI Layer | Performs reasoning |
adaptive-ai-productivity-agent/
│
├── app/
│ ├── main.py
│ ├── database.py
│ ├── models.py
│ ├── scheduler.py
│ ├── telegram_bot.py
│ │
│ ├── routes/
│ │ ├── task_routes.py
│ │ ├── roadmap_routes.py
│ │ └── user_routes.py
│ │
│ ├── services/
│ │ ├── planning_service.py
│ │ ├── reminder_service.py
│ │ ├── tracking_service.py
│ │ ├── adaptation_service.py
│ │ └── ai_service.py
│ │
│ ├── agents/
│ │ └── productivity_agent.py
│ │
│ └── utils/
│ └── helpers.py
│
├── requirements.txt
├── .env
├── README.md
└── tasks.db
git clone <repository-url> cd adaptive-ai-productivity-agent
python -m venv venv venv\Scripts\activate
python3 -m venv venv
source venv/bin/activatepip install -r requirements.txt
Create a .env file.
TELEGRAM_BOT_TOKEN=your_bot_token CHAT_ID=your_chat_id
uvicorn app.main:app --reload
POST /goals
{
"goal": "Master DSA",
"duration": "3 months",
"daily_hours": 4
}GET /daily-plan
PUT /tasks/{id}/complete
The scheduler continuously monitors:
- pending tasks
- roadmap progress
- missed schedules
- user consistency
Example:
while True: observe_user_activity() analyze_progress() generate_daily_plan() send_notifications() update_memory() sleep(60)
⏰ DSA Session Time
Today's Tasks:
- Recursion Revision
- 5 Problems
- Linked List Intro
You usually study better at 10 PM.
Would you like to shift your schedule?
GOAL_CREATED
↓
ROADMAP_GENERATED
↓
TASK_SCHEDULED
↓
NOTIFIED
↓
WAITING_RESPONSE
┌──────────────┬──────────────┬─────────────┐
↓ ↓ ↓
COMPLETED SNOOZED IGNORED
↓
RETRYING
↓
RESCHEDULED
- Missed reminders
- Duplicate notifications
- Burnout detection
- Unrealistic schedules
- Time conflicts
- Dynamic workload balancing
- User inactivity
- Retry limits
- Server restart recovery
- Roadmap delays
- FastAPI setup
- Database integration
- Task APIs
- Scheduler engine
- Telegram notifications
- Completion tracking
- Retry logic
- Activity logs
- Progress monitoring
- Roadmap generation
- Daily planning
- Priority handling
- Workload distribution
- Adaptive scheduling
- Productivity analysis
- AI-generated suggestions
- Burnout handling
- Long-term memory
- Natural language planning
- AI coaching
- Calendar integration
- Autonomous replanning
| Version | Estimated Time |
|---|---|
| MVP | 5–7 days |
| Tracking System | 2 weeks |
| Adaptive Agent | 1 month |
| Advanced AI Productivity Agent | 2+ months |
This project teaches:
- backend engineering
- system design
- scheduling systems
- async workflows
- database architecture
- AI integration
- agent engineering
- memory systems
- adaptive workflows
- productivity modeling
- React dashboard
- Mobile application
- Voice assistant
- WhatsApp integration
- Calendar sync
- AI productivity coach
- Multi-user support
- Team collaboration agents
This project is open-source and intended for educational, research, and portfolio purposes.