# muhammadwaheedairi/personal-ai-employee architecture

> Architecture diagram of the GitHub repository muhammadwaheedairi/personal-ai-employee, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-14). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/muhammadwaheedairi/personal-ai-employee
- Repository: https://github.com/muhammadwaheedairi/personal-ai-employee

## Overview

Personal AI Employee is a vault-centered assistant: watchers collect email, messages, and dropped files into action items; Claude skills plan and handle domain-specific work; sensitive actions wait for human approval before execution. The local orchestrator starts watchers and schedules briefings. The README documents additional MCP integrations, cloud/local separation, and business capabilities. Some of these capabilities are represented by unsampled skill or server paths, so their links reflect README documentation rather than inspected implementation.

Main entry points: [`AI_Employee_Vault`](https://github.com/muhammadwaheedairi/personal-ai-employee/tree/main/AI_Employee_Vault) (Obsidian Vault), [`main.py`](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/main.py) (CLI Entry), [`orchestrator.py`](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/orchestrator.py) (Local Orchestrator), [`watchers/whatsapp_watcher.py`](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/watchers/whatsapp_watcher.py) (WhatsApp Intake)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_runtime["Runtime and Control"]
  node_main["CLI Entry<br/>[main.py]"]
  node_orchestrator["Local Orchestrator<br/>[orchestrator.py]"]
  node_cloud["Cloud Agent"]
  node_config["Watcher Config<br/>[config.py]"]
  node_base["Polling Runtime<br/>[base_watcher.py]"]
end

subgraph group_intake["Intake Watchers"]
  node_gmail["Gmail Intake<br/>[gmail_watcher.py]"]
  node_whatsapp["WhatsApp Intake"]
  node_filesystem["File Intake"]
  node_linkedin["LinkedIn Poster<br/>[linkedin_poster.py]"]
  node_twitter["Twitter Poster<br/>[twitter_poster.py]"]
  node_facebook["Facebook Poster<br/>[facebook_poster.py]"]
  node_planner["Plan Creator<br/>[plan_creator.py]"]
end

subgraph group_vault["Vault and Safety"]
  node_hitl["Approval Watcher"]
  node_vaultstore["Obsidian Vault"]
end

subgraph group_skills["Agent Skills"]
  node_plan_skill["Plan Skill<br/>[SKILL.md]"]
  node_gmail_skill["Email Triage<br/>[SKILL.md]"]
  node_whatsapp_skill["WhatsApp Triage<br/>[SKILL.md]"]
  node_approval_skill["Approval Policy<br/>[SKILL.md]"]
  node_briefing_skill["Daily Briefing<br/>[SKILL.md]"]
  node_odoo_skill["Odoo Accounting<br/>[SKILL.md]"]
  node_calendar_skill["Calendar Scheduler<br/>[SKILL.md]"]
  node_subscription_skill["Subscription Audit<br/>[SKILL.md]"]
end

subgraph group_actions["External Actions"]
  node_email_mcp["Email MCP<br/>[email_mcp.py]"]
  node_whatsapp_mcp["WhatsApp MCP<br/>[whatsapp_mcp.py]"]
  node_social_mcps["Social MCP Servers"]
  node_odoo_mcp["Odoo MCP<br/>[odoo_mcp.py]"]
  node_calendar_mcp["Calendar MCP<br/>[calendar_mcp.py]"]
end

node_user(("User"))
node_gmail_service(("Gmail"))
node_whatsapp_service(("WhatsApp Web"))
node_social_services(("Social Platforms"))
node_odoo_service(("Odoo ERP"))
node_calendar_service(("Google Calendar"))

node_user -->|"starts"| node_main
node_main -->|"starts default"| node_orchestrator
node_main -->|"runs selected"| node_gmail
node_main -->|"runs selected"| node_whatsapp
node_main -->|"runs selected"| node_linkedin
node_main -->|"runs selected"| node_facebook
node_main -->|"runs selected"| node_twitter
node_main -->|"runs selected"| node_filesystem
node_main -->|"runs selected"| node_hitl
node_orchestrator -->|"starts watcher"| node_gmail
node_orchestrator -->|"starts watcher"| node_whatsapp
node_orchestrator -->|"starts watcher"| node_linkedin
node_orchestrator -->|"starts watcher"| node_filesystem
node_orchestrator -->|"starts watcher"| node_hitl
node_orchestrator -->|"starts watcher"| node_planner
node_orchestrator -.->|"schedules briefing"| node_briefing_skill
node_orchestrator -->|"bootstraps folders"| node_vaultstore
node_gmail -->|"inherits polling"| node_base
node_whatsapp -->|"inherits polling"| node_base
node_linkedin -->|"inherits polling"| node_base
node_twitter -->|"inherits polling"| node_base
node_facebook -->|"inherits polling"| node_base
node_base -->|"uses settings"| node_config
node_gmail -->|"uses settings"| node_config
node_whatsapp -->|"uses settings"| node_config
node_filesystem -->|"uses settings"| node_config
node_gmail -->|"reads mail"| node_gmail_service
node_gmail -->|"writes action items"| node_vaultstore
node_whatsapp -->|"monitors messages"| node_whatsapp_service
node_whatsapp -->|"writes action items"| node_vaultstore
node_filesystem -->|"copies drop files"| node_vaultstore
node_user -.->|"drops files"| node_vaultstore
node_linkedin -->|"reads post queue"| node_vaultstore
node_twitter -->|"reads post queue"| node_vaultstore
node_facebook -->|"reads post queue"| node_vaultstore
node_linkedin -->|"publishes posts"| node_social_services
node_twitter -->|"publishes posts"| node_social_services
node_facebook -->|"publishes posts"| node_social_services
node_hitl -->|"reads approvals"| node_vaultstore
node_hitl -->|"dispatches reply"| node_whatsapp
node_hitl -.->|"dispatches approved mail"| node_email_mcp
node_hitl -.->|"archives outcomes"| node_vaultstore
node_planner -.->|"creates plans"| node_vaultstore
node_plan_skill -.->|"writes plans"| node_vaultstore
node_gmail_skill -.->|"triages email items"| node_vaultstore
node_whatsapp_skill -.->|"triages messages"| node_vaultstore
node_approval_skill -.->|"defines approvals"| node_vaultstore
node_briefing_skill -.->|"uses financial analysis"| node_odoo_skill

click node_main "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/main.py"
click node_orchestrator "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/orchestrator.py"
click node_cloud "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/cloud_orchestrator.py"
click node_config "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/watchers/config.py"
click node_base "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/watchers/base_watcher.py"
click node_gmail "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/watchers/gmail_watcher.py"
click node_whatsapp "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/watchers/whatsapp_watcher.py"
click node_filesystem "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/watchers/filesystem_watcher.py"
click node_linkedin "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/watchers/linkedin_poster.py"
click node_twitter "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/watchers/twitter_poster.py"
click node_facebook "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/watchers/facebook_poster.py"
click node_planner "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/watchers/plan_creator.py"
click node_hitl "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/watchers/hitl_approval_watcher.py"
click node_vaultstore "https://github.com/muhammadwaheedairi/personal-ai-employee/tree/main/AI_Employee_Vault"
click node_plan_skill "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/.claude/skills/plan-creator/SKILL.md"
click node_gmail_skill "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/.claude/skills/gmail-triage/SKILL.md"
click node_whatsapp_skill "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/.claude/skills/whatsapp-triage/SKILL.md"
click node_approval_skill "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/.claude/skills/hitl-approval/SKILL.md"
click node_briefing_skill "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/.claude/skills/daily-briefing/SKILL.md"
click node_odoo_skill "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/.claude/skills/odoo-accounting/SKILL.md"
click node_calendar_skill "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/.claude/skills/calendar-scheduler/SKILL.md"
click node_subscription_skill "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/.claude/skills/subscription-audit/SKILL.md"
click node_email_mcp "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/mcp_servers/email_mcp.py"
click node_whatsapp_mcp "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/mcp_servers/whatsapp_mcp.py"
click node_social_mcps "https://github.com/muhammadwaheedairi/personal-ai-employee/tree/main/mcp_servers"
click node_odoo_mcp "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/mcp_servers/odoo_mcp.py"
click node_calendar_mcp "https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/mcp_servers/calendar_mcp.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_main,node_orchestrator,node_cloud,node_config,node_base,node_user toneBlue
class node_gmail,node_whatsapp,node_filesystem,node_linkedin,node_twitter,node_facebook,node_planner toneAmber
class node_hitl,node_vaultstore toneMint
class node_plan_skill,node_gmail_skill,node_whatsapp_skill,node_approval_skill,node_briefing_skill,node_odoo_skill,node_calendar_skill,node_subscription_skill toneRose
class node_email_mcp,node_whatsapp_mcp,node_social_mcps,node_odoo_mcp,node_calendar_mcp,node_gmail_service,node_whatsapp_service,node_social_services,node_odoo_service,node_calendar_service toneIndigo
```

## Components

### Runtime and Control

- [CLI Entry](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/main.py): `main.py`
- [Local Orchestrator](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/orchestrator.py): `orchestrator.py`
- [Cloud Agent](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/cloud_orchestrator.py): `cloud_orchestrator.py`
- [Watcher Config](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/watchers/config.py): `watchers/config.py`
- [Polling Runtime](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/watchers/base_watcher.py): `watchers/base_watcher.py`

### Intake Watchers

- [Gmail Intake](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/watchers/gmail_watcher.py): `watchers/gmail_watcher.py`
- [WhatsApp Intake](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/watchers/whatsapp_watcher.py): `watchers/whatsapp_watcher.py`
- [File Intake](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/watchers/filesystem_watcher.py): `watchers/filesystem_watcher.py`
- [LinkedIn Poster](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/watchers/linkedin_poster.py): `watchers/linkedin_poster.py`
- [Twitter Poster](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/watchers/twitter_poster.py): `watchers/twitter_poster.py`
- [Facebook Poster](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/watchers/facebook_poster.py): `watchers/facebook_poster.py`
- [Plan Creator](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/watchers/plan_creator.py): `watchers/plan_creator.py`

### Vault and Safety

- [Approval Watcher](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/watchers/hitl_approval_watcher.py): `watchers/hitl_approval_watcher.py`
- [Obsidian Vault](https://github.com/muhammadwaheedairi/personal-ai-employee/tree/main/AI_Employee_Vault): `AI_Employee_Vault`

### Agent Skills

- [Plan Skill](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/.claude/skills/plan-creator/SKILL.md): `.claude/skills/plan-creator/SKILL.md`
- [Email Triage](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/.claude/skills/gmail-triage/SKILL.md): `.claude/skills/gmail-triage/SKILL.md`
- [WhatsApp Triage](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/.claude/skills/whatsapp-triage/SKILL.md): `.claude/skills/whatsapp-triage/SKILL.md`
- [Approval Policy](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/.claude/skills/hitl-approval/SKILL.md): `.claude/skills/hitl-approval/SKILL.md`
- [Daily Briefing](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/.claude/skills/daily-briefing/SKILL.md): `.claude/skills/daily-briefing/SKILL.md`
- [Odoo Accounting](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/.claude/skills/odoo-accounting/SKILL.md): `.claude/skills/odoo-accounting/SKILL.md`
- [Calendar Scheduler](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/.claude/skills/calendar-scheduler/SKILL.md): `.claude/skills/calendar-scheduler/SKILL.md`
- [Subscription Audit](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/.claude/skills/subscription-audit/SKILL.md): `.claude/skills/subscription-audit/SKILL.md`

### External Actions

- [Email MCP](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/mcp_servers/email_mcp.py): `mcp_servers/email_mcp.py`
- [WhatsApp MCP](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/mcp_servers/whatsapp_mcp.py): `mcp_servers/whatsapp_mcp.py`
- [Social MCP Servers](https://github.com/muhammadwaheedairi/personal-ai-employee/tree/main/mcp_servers): `mcp_servers`
- [Odoo MCP](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/mcp_servers/odoo_mcp.py): `mcp_servers/odoo_mcp.py`
- [Calendar MCP](https://github.com/muhammadwaheedairi/personal-ai-employee/blob/main/mcp_servers/calendar_mcp.py): `mcp_servers/calendar_mcp.py`

### Other components

- **User**
- **Gmail**
- **WhatsApp Web**
- **Social Platforms**
- **Odoo ERP**
- **Google Calendar**

## Connections

- User → CLI Entry: starts (evidence: `main.py`)
- CLI Entry → Local Orchestrator: starts default (evidence: `main.py`)
- CLI Entry → Gmail Intake: runs selected (evidence: `main.py`)
- CLI Entry → WhatsApp Intake: runs selected (evidence: `main.py`)
- CLI Entry → LinkedIn Poster: runs selected (evidence: `main.py`)
- CLI Entry → Facebook Poster: runs selected (evidence: `main.py`)
- CLI Entry → Twitter Poster: runs selected (evidence: `main.py`)
- CLI Entry → File Intake: runs selected (evidence: `main.py`)
- CLI Entry → Approval Watcher: runs selected (evidence: `main.py`)
- Local Orchestrator → Gmail Intake: starts watcher (evidence: `orchestrator.py`)
- Local Orchestrator → WhatsApp Intake: starts watcher (evidence: `orchestrator.py`)
- Local Orchestrator → LinkedIn Poster: starts watcher (evidence: `orchestrator.py`)
- Local Orchestrator → File Intake: starts watcher (evidence: `orchestrator.py`)
- Local Orchestrator → Approval Watcher: starts watcher (evidence: `orchestrator.py`)
- Local Orchestrator → Plan Creator: starts watcher (evidence: `orchestrator.py`)
- Local Orchestrator → Daily Briefing: schedules briefing (evidence: `README.md`)
- Local Orchestrator → Obsidian Vault: bootstraps folders (evidence: `orchestrator.py`)
- Gmail Intake → Polling Runtime: inherits polling (evidence: `watchers/gmail_watcher.py`)
- WhatsApp Intake → Polling Runtime: inherits polling (evidence: `watchers/whatsapp_watcher.py`)
- LinkedIn Poster → Polling Runtime: inherits polling (evidence: `watchers/linkedin_poster.py`)
- Twitter Poster → Polling Runtime: inherits polling (evidence: `watchers/twitter_poster.py`)
- Facebook Poster → Polling Runtime: inherits polling (evidence: `watchers/facebook_poster.py`)
- Polling Runtime → Watcher Config: uses settings (evidence: `watchers/base_watcher.py`)
- Gmail Intake → Watcher Config: uses settings (evidence: `watchers/gmail_watcher.py`)
- WhatsApp Intake → Watcher Config: uses settings (evidence: `watchers/whatsapp_watcher.py`)
- File Intake → Watcher Config: uses settings (evidence: `watchers/filesystem_watcher.py`)
- Gmail Intake → Gmail: reads mail (evidence: `watchers/gmail_watcher.py`)
- Gmail Intake → Obsidian Vault: writes action items (evidence: `watchers/gmail_watcher.py`)
- WhatsApp Intake → WhatsApp Web: monitors messages (evidence: `watchers/whatsapp_watcher.py`)
- WhatsApp Intake → Obsidian Vault: writes action items (evidence: `watchers/whatsapp_watcher.py`)
- File Intake → Obsidian Vault: copies drop files (evidence: `watchers/filesystem_watcher.py`)
- User → Obsidian Vault: drops files
- LinkedIn Poster → Obsidian Vault: reads post queue (evidence: `watchers/linkedin_poster.py`)
- Twitter Poster → Obsidian Vault: reads post queue (evidence: `watchers/twitter_poster.py`)
- Facebook Poster → Obsidian Vault: reads post queue (evidence: `watchers/facebook_poster.py`)
- LinkedIn Poster → Social Platforms: publishes posts (evidence: `watchers/linkedin_poster.py`)
- Twitter Poster → Social Platforms: publishes posts (evidence: `watchers/twitter_poster.py`)
- Facebook Poster → Social Platforms: publishes posts (evidence: `watchers/facebook_poster.py`)
- Approval Watcher → Obsidian Vault: reads approvals (evidence: `watchers/hitl_approval_watcher.py`)
- Approval Watcher → WhatsApp Intake: dispatches reply (evidence: `watchers/hitl_approval_watcher.py`)
- Approval Watcher → Email MCP: dispatches approved mail (evidence: `README.md`)
- Approval Watcher → Obsidian Vault: archives outcomes (evidence: `README.md`)
- Plan Creator → Obsidian Vault: creates plans (evidence: `README.md`)
- Plan Skill → Obsidian Vault: writes plans (evidence: `README.md`)
- Email Triage → Obsidian Vault: triages email items (evidence: `README.md`)
- WhatsApp Triage → Obsidian Vault: triages messages (evidence: `README.md`)
- Approval Policy → Obsidian Vault: defines approvals (evidence: `README.md`)
- Daily Briefing → Odoo Accounting: uses financial analysis (evidence: `README.md`)
