A desktop application for automating WhatsApp communications, scheduling, conflict detection, and coordination across training centers, instructors, coordinators, and students.
Project Management Automation (PMA) is a modular desktop software application built with Python and CustomTkinter. Designed originally to streamline large-scale educational operations (such as eYouth training programs), it automates end-to-end communication pipelines via WhatsApp Web:
- Instructor Session Operations: Automated schedule-based reminders and session status tracking.
- Coordinator Management: Smart slot analysis, wage calculation, and assignment conflict detection with bilingual messaging (Arabic and English).
- Student Group Invites: Automated onboarding with personalized WhatsApp group invite links, progress tracking, and batch throttling.
- Anti-Ban Architecture: Humanized pacing, randomized delay intervals, and configurable daily limits to safeguard WhatsApp accounts.
- Automated Triggers: Sends reminders scheduled around session times:
- Day-Before Reminder (
-24h) - Pre-Session Alert (
-15m) - Waiting Room & Attendance Checks
- Post-Session Wrap-Up & Feedback
- Day-Before Reminder (
- Dynamic Template Engine: Personalizes messages using placeholders (
{name},{group_code},{time}, etc.). - Live Status Tracking: Visual indicators (
Not Sent,Sending,Sent,Failed,Acknowledged,Confirmed).
- Smart Column Auto-Detection: Intelligently maps Excel header variations via canonical aliasing.
- Assignment Conflict Detection: Automatically flags coordinators scheduled for overlapping days and time slots.
- Financial & Slot Analytics: Calculates per-coordinator slot counts and estimated earnings.
- Bilingual Arabic Messages: Formats clear schedule summaries with Arabic weekday mapping and center details.
- Automated Invitations: Bulk-dispatches customized group links to students.
- Resume & Persistence: Saves progress to JSON (
group_invite_progress.json) to safely resume paused or multi-day runs. - Daily Batch Quotas: Enforces daily sending quotas to prevent spam detection.
- Randomized Delays: Simulates realistic typing and human pacing (20–40s for coordinators, 45–90s for students).
- Phone Number Normalization: Automatically standardizes international and Egyptian formats (
010...,+2010...) into clean E.164.
- Clean CustomTkinter interface with smooth navigation.
- Interactive Tour Guide: Built-in onboarding walkthrough for first-time users.
- Live console and status dots for transparency during active runs.
- Standalone executable support via PyInstaller.
graph TD
A[Excel Session Data / XLSX] --> B[Data Parser & Phone Normalizer]
B --> C[Conflict Detector & Validator]
C --> D[Desktop GUI - CustomTkinter]
subgraph Core Automation Engines
D --> E[Instructor Schedule Manager]
D --> F[Coordinator Dispatcher]
D --> G[Student Group Inviter]
end
E --> H[Message Engine]
F --> H
G --> H
H -->|Random Delays & Anti-Ban| I[PyWhatKit + PyAutoGUI]
I --> J[WhatsApp Web Browser]
H --> K[Excel Audit Reports & Progress Logs]
ProjectManagementAutomation/
│
├── main.py # Main entry point & Instructor dashboard
├── app_config.py # UI themes, color palettes, and global configs
├── engine.py # MessageEngine (WhatsApp Web driver, batching, delays)
├── schedule_manager.py # ScheduleMixin for timed automated triggers
├── ui_components.py # Custom reusable UI widgets (StatusDot, StyledButtons)
│
├── coordinator_ui.py # Coordinator workflow interface & dialogs
├── coordinator_logic.py # Coordinator message generation & conflict detection
├── coordinator_parser.py # Smart Excel/CSV reader with column alias auto-detection
│
├── group_invite_ui.py # Student group invite GUI
├── group_invite_logic.py # Group invite queue, batching, and progress persistence
├── centers_ui.py # Training centers management interface
├── centers_logic.py # Center directory and room assignment logic
│
├── template_utils.py # Template parsing, placeholder substitution, gender styling
├── report_generator.py # PDF/Excel export utility
├── db_manager.py # SQLite persistence manager
│
├── templates.json # Instructor message templates
├── coordinator_templates.json # Coordinator Arabic message templates
├── group_invite_templates.json # Student invite templates
├── triggers.json # Schedule trigger definitions
├── schedules.json # Cached schedule data
│
├── requirements.txt # Python dependencies
└── main.spec # PyInstaller packaging specification
- Python 3.10 or higher
- Google Chrome (or default browser logged into WhatsApp Web)
- Windows OS (recommended for PyAutoGUI automation hooks)
git clone https://github.com/osamaelfeky307/ProjectManagementAutomation.git
cd ProjectManagementAutomationpython -m venv .venv
.\.venv\Scripts\Activate.ps1pip install -r requirements.txt
pip install pyautoguipython main.py- Load Sessions: Click Browse File and select your session Excel sheet (
.xlsx). - Review & Map: Columns are automatically detected. Verify mappings and resolve any highlighted schedule conflicts.
- Choose Workflow:
- Instructor Messaging: Run immediate batches or enable background scheduled triggers.
- Coordinator Workflow: Generate customized Arabic slot assignment messages with wage estimations.
- Group Invites: Send group join links with daily batch limits.
- Export Reports: Download processed audit logs and confirmation reports as
.xlsx.
The parser supports flexible column naming, recognizing aliases automatically:
| Field | Example Accepted Headers |
|---|---|
| Instructor / Coordinator Name | Instructor, Name, الاسم, Main Coordinator, Coordinator |
| Phone Number | Phone, Mobile, WhatsApp, رقم الهاتف, Contact |
| Group Code | Group, Group Code, كود الجروب, Batch |
| Session Day & Time | Day, اليوم, Time, الميعاد, Slot |
| Center / Room | Center, السنتر, Room, القاعة, Branch |
To compile into a standalone .exe using PyInstaller:
pyinstaller main.specThe compiled binary will be generated in the dist/ directory.
- Local Storage: All contacts, schedules, and configuration files are stored locally on your machine.
- WhatsApp Terms of Service: Always adhere to WhatsApp's Terms of Service. Use moderate delay settings and obtain consent from recipients to minimize account risk.
Osama Elfeky
- GitHub: @osamaelfeky307
- Project: ProjectManagementAutomation
This project is licensed under the MIT License.