# hugo-lcqh/mr-auto-send-supplier architecture

> Architecture diagram of the GitHub repository hugo-lcqh/mr-auto-send-supplier, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hugo-lcqh/mr-auto-send-supplier
- Repository: https://github.com/hugo-lcqh/mr-auto-send-supplier

## Overview

MR Auto Send Supplier is a Windows workflow tool for preparing Material Requests, sending supplier-specific requests, tracking replies, and reminding users about overdue requests. The documented user journey starts in the launcher and proceeds through four operational tasks; the backend also exposes matching PowerShell modes. The README documents Excel and Outlook desktop dependencies and key outputs. No source excerpts were provided, so relationships below rely on README statements; the launcher-to-backend dispatch is left unverified.

Main entry points: [`Scripts/MR-Outlook.ps1`](https://github.com/hugo-lcqh/mr-auto-send-supplier/blob/main/Scripts/MR-Outlook.ps1) (Prepare Input), [`Scripts/MR-Launcher.ps1`](https://github.com/hugo-lcqh/mr-auto-send-supplier/blob/main/Scripts/MR-Launcher.ps1) (Control Center), [`Input/Template.xlsx`](https://github.com/hugo-lcqh/mr-auto-send-supplier/blob/main/Input/Template.xlsx) (Excel template), [`Config/suppliers.example.csv`](https://github.com/hugo-lcqh/mr-auto-send-supplier/blob/main/Config/suppliers.example.csv) (Supplier directory)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["User interface"]
  node_launcher["Control Center<br/>[MR-Launcher.ps1]"]
  node_backend["Automation modes<br/>[MR-Outlook.ps1]"]
end

subgraph group_prepare["MR preparation"]
  node_prepare_input["Prepare Input<br/>[MR-Outlook.ps1]"]
  node_input_files["MR input files"]
  node_excel_template["Excel template<br/>[Template.xlsx]"]
  node_supplier_config["Supplier directory"]
  node_master["Master workbook"]
  node_supplier_queue["Supplier Queue"]
end

subgraph group_send["Supplier requests"]
  node_send_mr["Send MR<br/>[MR-Outlook.ps1]"]
  node_supplier_attachment["Supplier attachment"]
  node_email["Supplier email"]
end

subgraph group_followup["Reply follow-up"]
  node_scan_replies["Scan Replies<br/>[MR-Outlook.ps1]"]
  node_reply_folder["Outlook reply folder<br/>[reply_folder.txt]"]
  node_reply_tracking[("Reply tracking")]
  node_remind_pending["Remind Pending<br/>[MR-Outlook.ps1]"]
end

node_user(("Operator"))
node_excel["Microsoft Excel"]
node_outlook["Outlook classic"]

node_user -->|"operates"| node_launcher
node_launcher -.->|"dispatches to"| node_backend
node_user -->|"starts task"| node_prepare_input
node_input_files -->|"provides MR data"| node_prepare_input
node_excel_template -->|"templates"| node_prepare_input
node_supplier_config -->|"configures suppliers"| node_prepare_input
node_prepare_input -->|"creates"| node_master
node_prepare_input -->|"creates"| node_supplier_queue
node_prepare_input -->|"uses"| node_excel
node_user -->|"starts task"| node_send_mr
node_supplier_queue -->|"selects supplier"| node_send_mr
node_send_mr -->|"creates"| node_supplier_attachment
node_send_mr -->|"composes or sends"| node_email
node_send_mr -->|"opens email"| node_outlook
node_user -->|"starts task"| node_scan_replies
node_reply_folder -->|"selects folder"| node_scan_replies
node_scan_replies -->|"scans attachments"| node_outlook
node_scan_replies -->|"updates"| node_reply_tracking
node_user -->|"starts task"| node_remind_pending
node_remind_pending -->|"checks overdue requests"| node_reply_tracking
node_remind_pending -->|"opens reminder"| node_outlook

click node_launcher "https://github.com/hugo-lcqh/mr-auto-send-supplier/blob/main/Scripts/MR-Launcher.ps1"
click node_backend "https://github.com/hugo-lcqh/mr-auto-send-supplier/blob/main/Scripts/MR-Outlook.ps1"
click node_prepare_input "https://github.com/hugo-lcqh/mr-auto-send-supplier/blob/main/Scripts/MR-Outlook.ps1"
click node_excel_template "https://github.com/hugo-lcqh/mr-auto-send-supplier/blob/main/Input/Template.xlsx"
click node_supplier_config "https://github.com/hugo-lcqh/mr-auto-send-supplier/blob/main/Config/suppliers.example.csv"
click node_send_mr "https://github.com/hugo-lcqh/mr-auto-send-supplier/blob/main/Scripts/MR-Outlook.ps1"
click node_scan_replies "https://github.com/hugo-lcqh/mr-auto-send-supplier/blob/main/Scripts/MR-Outlook.ps1"
click node_reply_folder "https://github.com/hugo-lcqh/mr-auto-send-supplier/blob/main/Config/reply_folder.txt"
click node_remind_pending "https://github.com/hugo-lcqh/mr-auto-send-supplier/blob/main/Scripts/MR-Outlook.ps1"

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_launcher,node_backend toneBlue
class node_prepare_input,node_input_files,node_excel_template,node_supplier_config,node_master,node_supplier_queue toneAmber
class node_send_mr,node_supplier_attachment,node_email toneMint
class node_scan_replies,node_reply_folder,node_reply_tracking,node_remind_pending toneRose
class node_user,node_excel,node_outlook toneIndigo
```

## Components

### User interface

- [Control Center](https://github.com/hugo-lcqh/mr-auto-send-supplier/blob/main/Scripts/MR-Launcher.ps1): `Scripts/MR-Launcher.ps1`
- [Automation modes](https://github.com/hugo-lcqh/mr-auto-send-supplier/blob/main/Scripts/MR-Outlook.ps1): `Scripts/MR-Outlook.ps1`

### MR preparation

- [Prepare Input](https://github.com/hugo-lcqh/mr-auto-send-supplier/blob/main/Scripts/MR-Outlook.ps1): `Scripts/MR-Outlook.ps1`
- **MR input files**
- [Excel template](https://github.com/hugo-lcqh/mr-auto-send-supplier/blob/main/Input/Template.xlsx): `Input/Template.xlsx`
- [Supplier directory](https://github.com/hugo-lcqh/mr-auto-send-supplier/blob/main/Config/suppliers.example.csv): `Config/suppliers.example.csv`
- **Master workbook**
- **Supplier Queue**

### Supplier requests

- [Send MR](https://github.com/hugo-lcqh/mr-auto-send-supplier/blob/main/Scripts/MR-Outlook.ps1): `Scripts/MR-Outlook.ps1`
- **Supplier attachment**
- **Supplier email**

### Reply follow-up

- [Scan Replies](https://github.com/hugo-lcqh/mr-auto-send-supplier/blob/main/Scripts/MR-Outlook.ps1): `Scripts/MR-Outlook.ps1`
- [Outlook reply folder](https://github.com/hugo-lcqh/mr-auto-send-supplier/blob/main/Config/reply_folder.txt): `Config/reply_folder.txt`
- **Reply tracking**
- [Remind Pending](https://github.com/hugo-lcqh/mr-auto-send-supplier/blob/main/Scripts/MR-Outlook.ps1): `Scripts/MR-Outlook.ps1`

### Other components

- **Operator**
- **Microsoft Excel**
- **Outlook classic**

## Connections

- Operator → Control Center: operates (evidence: `README.md`)
- Control Center → Automation modes: dispatches to
- Operator → Prepare Input: starts task (evidence: `README.md`)
- MR input files → Prepare Input: provides MR data (evidence: `README.md`)
- Excel template → Prepare Input: templates (evidence: `README.md`)
- Supplier directory → Prepare Input: configures suppliers (evidence: `README.md`)
- Prepare Input → Master workbook: creates (evidence: `README.md`)
- Prepare Input → Supplier Queue: creates (evidence: `README.md`)
- Prepare Input → Microsoft Excel: uses (evidence: `README.md`)
- Operator → Send MR: starts task (evidence: `README.md`)
- Supplier Queue → Send MR: selects supplier (evidence: `README.md`)
- Send MR → Supplier attachment: creates (evidence: `README.md`)
- Send MR → Supplier email: composes or sends (evidence: `README.md`)
- Send MR → Outlook classic: opens email (evidence: `README.md`)
- Operator → Scan Replies: starts task (evidence: `README.md`)
- Outlook reply folder → Scan Replies: selects folder (evidence: `README.md`)
- Scan Replies → Outlook classic: scans attachments (evidence: `README.md`)
- Scan Replies → Reply tracking: updates (evidence: `README.md`)
- Operator → Remind Pending: starts task (evidence: `README.md`)
- Remind Pending → Reply tracking: checks overdue requests (evidence: `README.md`)
- Remind Pending → Outlook classic: opens reminder (evidence: `README.md`)
