# πŸ€– Digital-FTE β€” Abdullah Junior ![Digital-FTE Banner](./digital-fte-banner.png) > **"Your life and business on autopilot. A self-evolving, cloud-native AI Employee that never sleeps."** [![Python CI](https://github.com/AbdullahMalik17/Digital-FTE/actions/workflows/python-ci.yml/badge.svg)](https://github.com/AbdullahMalik17/Digital-FTE/actions/workflows/python-ci.yml) [![Python](https://img.shields.io/badge/Python-79.6%25-blue?style=flat-square&logo=python)](https://github.com/AbdullahMalik17/Digital-FTE) [![TypeScript](https://img.shields.io/badge/TypeScript-13%25-3178C6?style=flat-square&logo=typescript)](https://github.com/AbdullahMalik17/Digital-FTE) [![License](https://img.shields.io/badge/License-MIT-green?style=flat-square)](https://opensource.org/licenses/MIT) [![Stars](https://img.shields.io/github/stars/AbdullahMalik17/Digital-FTE?style=flat-square)](https://github.com/AbdullahMalik17/Digital-FTE/stargazers) [![Commits](https://img.shields.io/github/commit-activity/m/AbdullahMalik17/Digital-FTE?style=flat-square)](https://github.com/AbdullahMalik17/Digital-FTE/commits/main) [![Security: A Β· Skills Directory](https://www.skillsdirectory.com/api/skills/abdullahmalik17-digital-fte-orchestrator/badge)](https://www.skillsdirectory.com/skills/abdullahmalik17-digital-fte-orchestrator) [![Skills Directory Author](https://img.shields.io/badge/Skills%20Directory-12%20Skills%20(Grade%20A)-10b981?style=flat-square&logo=claude&logoColor=white)](https://skillsdirectory.com/authors/abdullahmalik17) [![Snyk Security](https://snyk.io/test/github/AbdullahMalik17/Digital-FTE/badge.svg)](https://snyk.io/test/github/AbdullahMalik17/Digital-FTE) [![Badges Registry](https://img.shields.io/badge/Badges%20Registry-37%20Found-blueviolet?style=flat-square)](./BADGES.md) [![Built for Hackathon](https://img.shields.io/badge/Built%20for-AI%20Employee%20Hackathon%202026-purple?style=flat-square)](https://github.com/AbdullahMalik17/Digital-FTE) - **Docs**: Run `npx mintlify dev docs` (see `docs/README.md`) and add your deployed docs URL here. --- ## 🎬 What Is This? **Digital-FTE** is an open-source autonomous AI agent system that acts as a 24/7 Digital Employee for your personal life and business. It watches your Gmail, WhatsApp, and LinkedIn β€” drafts replies, creates invoices, posts to social media, and executes tasks β€” all with **human approval** before any action is taken. It uses a **Dual-Agent Architecture** (Cloud Sentry + Local Executive) connected by an **Obsidian Vault** as its central nervous system. The system can also **debug and evolve itself** β€” making it one of the first self-evolving AI employee implementations in open source. ``` πŸ“¬ Email Arrives β†’ πŸ€– Cloud Agent Drafts Reply β†’ πŸ“‚ Saved to Vault β†’ πŸ“± You Approve on Phone β†’ ⚑ Local Agent Executes β†’ βœ… Done ``` --- ## ✨ Key Features - **πŸ“§ Gmail Watcher** β€” Monitors inbox, categorizes emails, drafts context-aware replies - **🏒 Odoo Accounting** β€” Auto-creates invoices, logs expenses from email receipts - **πŸ“± Social Media Autopilot** β€” Posts to Facebook, Instagram, Twitter/X with analytics - **🧠 Smart Orchestrator** β€” Routes tasks to the best AI model (Claude 3.5, Gemini 1.5 Pro, etc.) - **πŸ” Human-in-the-Loop** β€” Nothing executes without your approval. Ever. - **πŸ”„ Self-Evolution Engine** β€” Catches its own errors and writes its own patches - **πŸ“‚ Obsidian Vault Sync** β€” Git-synced knowledge base as the system's memory - **🐳 Docker Ready** β€” One command deployment with docker-compose - **πŸ§ͺ Full Test Suite** β€” Unit, integration, and E2E tests included --- ## πŸ—οΈ Architecture πŸ“– **Detailed Technical Architecture & Multi-Agent Map:** [docs/ARCHITECTURE.md](docs/ARCHITECTURE.md) The system runs two agents in parallel: ### ☁️ Cloud Agent (The "Sentry") - **Lives:** On any cloud server or always-on machine - **Watches:** Gmail (IMAP), LinkedIn API, WhatsApp Web - **Does:** Reads incoming messages, drafts responses using AI, writes proposals to the Vault - **Cannot:** Access financial credentials or execute anything β€” read-only by design ### πŸ’» Local Agent (The "Executive") - **Lives:** On your personal machine - **Syncs:** Git-pulls the Vault every 60 seconds - **Does:** Notifies you of pending tasks, waits for your approval, then executes via MCP servers - **Has access to:** Odoo, social media APIs, local files, sensitive credentials ### 🧠 The Orchestrator The brain that routes every task to the right tool and AI model based on complexity and cost. ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ DIGITAL FTE LOOP β”‚ β”‚ β”‚ β”‚ πŸ“¬ Input β†’ ☁️ Cloud Agent β†’ πŸ“‚ Vault (Git) β”‚ β”‚ ↓ β”‚ β”‚ βœ… You Approve β†’ πŸ’» Local Agent β”‚ β”‚ ↓ β”‚ β”‚ ⚑ MCP Execution β†’ πŸ“ Archive to Done β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` --- ## πŸ”Œ Integrations & Verified Agent Skills (via MCP) | Service / Agent Skill | What It Does | Skills Directory Security | |---|---|:---:| | **Digital FTE Orchestrator** | Main task processing loop & autonomous supervisor | [![Security: A](https://www.skillsdirectory.com/api/skills/abdullahmalik17-digital-fte-orchestrator/badge)](https://www.skillsdirectory.com/skills/abdullahmalik17-digital-fte-orchestrator) | | **Gmail Watcher** | Reads, categorizes, drafts context-aware replies | [![Security: A](https://www.skillsdirectory.com/api/skills/abdullahmalik17-watching-gmail/badge)](https://www.skillsdirectory.com/skills/abdullahmalik17-watching-gmail) | | **WhatsApp Monitor** | Watches WhatsApp Web & processes incoming tasks | [![Security: A](https://www.skillsdirectory.com/api/skills/abdullahmalik17-watching-whatsapp/badge)](https://www.skillsdirectory.com/skills/abdullahmalik17-watching-whatsapp) | | **LinkedIn Poster** | Posts content & manages schedule via Playwright | [![Security: A](https://www.skillsdirectory.com/api/skills/abdullahmalik17-posting-linkedin/badge)](https://www.skillsdirectory.com/skills/abdullahmalik17-posting-linkedin) | | **Twitter / X Poster** | Posts tweets/threads & monitors mentions via API v2 | [![Security: A](https://www.skillsdirectory.com/api/skills/abdullahmalik17-posting-twitter/badge)](https://www.skillsdirectory.com/skills/abdullahmalik17-posting-twitter) | | **Facebook Poster** | Publishes posts & fetches analytics via Meta Graph API | [![Security: A](https://www.skillsdirectory.com/api/skills/abdullahmalik17-posting-facebook/badge)](https://www.skillsdirectory.com/skills/abdullahmalik17-posting-facebook) | | **Instagram Poster** | Publishes media posts & stories via Meta Graph API | [![Security: A](https://www.skillsdirectory.com/api/skills/abdullahmalik17-posting-instagram/badge)](https://www.skillsdirectory.com/skills/abdullahmalik17-posting-instagram) | | **Calendar Manager** | Schedules meetings & verifies availability via Google Calendar | [![Security: A](https://www.skillsdirectory.com/api/skills/abdullahmalik17-managing-calendar/badge)](https://www.skillsdirectory.com/skills/abdullahmalik17-managing-calendar) | | **Service Supervisor** | Manages background watchers as supervised child processes | [![Security: A](https://www.skillsdirectory.com/api/skills/abdullahmalik17-managing-services/badge)](https://www.skillsdirectory.com/skills/abdullahmalik17-managing-services) | | **Filesystem Watcher** | Monitors local vault drop folders for new incoming items | [![Security: A](https://www.skillsdirectory.com/api/skills/abdullahmalik17-watching-filesystem/badge)](https://www.skillsdirectory.com/skills/abdullahmalik17-watching-filesystem) | | **Odoo ERP** | Creates invoices, logs vendor bills, financial summaries | [![Built for Hackathon](https://img.shields.io/badge/Status-Integrated-blue?style=flat-square)](#) | | **Playwright Automation** | Headless browser execution for web actions | [![Built for Hackathon](https://img.shields.io/badge/Status-Integrated-blue?style=flat-square)](#) | > πŸ›‘οΈ *All 12 agent skills authored by AbdullahMalik17 have been independently audited and verified with **Grade A** security on [Skills Directory](https://skillsdirectory.com/authors/abdullahmalik17).* Check [BADGES.md](./BADGES.md) for the complete multi-project badge registry. --- ## πŸš€ Quick Start ### Prerequisites - Python 3.10+ - Node.js 18+ - Docker (optional but recommended) - An Obsidian vault (for the Vault sync) ### 1. Clone the repo ```bash git clone https://github.com/AbdullahMalik17/Digital-FTE.git cd Digital-FTE ``` ### 2. Install dependencies ```bash pip install -r requirements.txt ``` ### 3. Configure environment ```bash cp .env.example .env # Fill in your API keys (see Configuration section below) ``` ### 4. Start the system ```bash # Start the local agent python src/local_agent.py # In a separate terminal, start the watchers python src/service_manager.py ``` ### 5. (Optional) Docker deployment ```bash docker-compose up --build ``` --- ## βš™οΈ Configuration Edit your `.env` file with the following: ```env # AI Models OPENAI_API_KEY=your_key ANTHROPIC_API_KEY=your_key GOOGLE_API_KEY=your_key # Gmail GMAIL_CLIENT_ID=your_id GMAIL_CLIENT_SECRET=your_secret # Odoo (Accounting) ODOO_URL=https://your-odoo-instance.com ODOO_USERNAME=your_email ODOO_PASSWORD=your_password # Social Media META_ACCESS_TOKEN=your_token FACEBOOK_PAGE_ID=your_page_id INSTAGRAM_ACCOUNT_ID=your_account_id TWITTER_API_KEY=your_key TWITTER_API_SECRET=your_secret TWITTER_BEARER_TOKEN=your_token ``` --- ## πŸ“‚ Vault Structure Your Obsidian Vault is organized by task state: | Folder | Purpose | |---|---| | `Needs_Action/` | New incoming triggers awaiting AI draft | | `Pending_Approval/` | Drafted tasks waiting for your approval | | `In_Progress/` | Tasks being actively executed | | `Done/` | Permanent archive of every completed action | | `Logs/Audit/` | Full JSONL audit trail of every AI call | | `Plans/` | Long-term strategic goals and breakdowns | --- ## πŸ§ͺ Testing ```bash # Run full test suite pytest tests/ # Individual test modules pytest tests/test_odoo_integration.py # Odoo connection + invoices pytest tests/test_social_media_apis.py # Meta + Twitter API tokens pytest tests/e2e_gold_phase_test.py # Full Gmail β†’ Odoo β†’ WhatsApp flow ``` --- ## 🌱 Self-Evolution Engine One of the most unique features of Digital-FTE is its **Guardian system**: 1. If any script fails, the traceback is automatically captured 2. The Guardian sends the error + context to the AI 3. The AI writes a patch and proposes it in the Vault 4. You approve β†’ the patch is applied automatically This means the system gets smarter and more stable over time with minimal manual intervention. --- ## πŸ—ΊοΈ Roadmap - [ ] WhatsApp Business API (replacing Web scraping) - [ ] Voice interface integration - [ ] Multi-user support (team FTE) - [ ] LangFuse observability dashboard - [ ] Mobile app for approvals (React Native) - [ ] Plugin marketplace for custom MCP connectors --- ## 🀝 Contributing Contributions are very welcome! This is an actively maintained open-source project. 1. Fork the repo 2. Create a feature branch (`git checkout -b feature/amazing-feature`) 3. Commit your changes (`git commit -m 'Add amazing feature'`) 4. Push and open a Pull Request Please open an issue first for major changes so we can discuss direction. --- ## πŸ‘¨πŸ’» Author **Muhammad Abdullah Athar** (AbdullahMalik17) Agentic AI Developer | Full-Stack Engineer | Panaversity Agentic AI Program πŸ“ Bahawalpur, Pakistan - 🌐 [Portfolio](https://portfolio-ai-assistant-of-malik.vercel.app/) - πŸ’Ό [LinkedIn](https://www.linkedin.com/in/muhammad-abdullah-athar) - πŸ“§ [muhammadabdullah51700@gmail.com](mailto:muhammadabdullah51700@gmail.com) --- ## πŸ“„ License This project is licensed under the MIT License. --- ⭐ **If this project inspires you or saves you time, please give it a star β€” it helps more developers discover it!**