# icannai/erpnext-ai-research architecture

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

- Interactive diagram: https://gitdiagram.com/icannai/erpnext-ai-research
- Repository: https://github.com/icannai/erpnext-ai-research

## Overview

This repository is a small research log, not an ERP product or agent implementation. Its documented focus is comparing ERP architectures and tracing hardware procurement, with notes on where an AI agent might use ERPNext’s API. The procurement stages below are documented workflow concepts, not code components. The README also mentions forecasting and framework internals, but their referenced files are absent from the supplied tree, so they are not represented as repository nodes.

Main entry points: [`README.md`](https://github.com/icannai/erpnext-ai-research/blob/main/README.md) (Research overview), [`domain/procurement-flow.md`](https://github.com/icannai/erpnext-ai-research/blob/main/domain/procurement-flow.md) (Request for Quotation), [`architecture/erpnext-vs-sap-mm.md`](https://github.com/icannai/erpnext-ai-research/blob/main/architecture/erpnext-vs-sap-mm.md) (ERP comparison)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_overview["Research overview<br/>[README.md]"]
node_comparison["ERP comparison"]
node_procurement_notes["Procurement notes"]
node_agent(("AI agent"))
node_erpnext_api["ERPNext API"]
node_material_request["Material Request"]
node_rfq["Request for Quotation"]
node_supplier_quote["Supplier Quotation"]
node_purchase_order["Purchase Order"]
node_purchase_receipt["Purchase Receipt"]
node_purchase_invoice["Purchase Invoice"]
node_payment_entry["Payment Entry"]

node_overview -->|"describes"| node_comparison
node_overview -->|"describes"| node_procurement_notes
node_agent -.->|"uses"| node_erpnext_api
node_material_request -->|"leads to"| node_rfq
node_rfq -->|"leads to"| node_supplier_quote
node_supplier_quote -->|"leads to"| node_purchase_order
node_purchase_order -->|"leads to"| node_purchase_receipt
node_purchase_receipt -->|"leads to"| node_purchase_invoice
node_purchase_invoice -->|"leads to"| node_payment_entry

click node_overview "https://github.com/icannai/erpnext-ai-research/blob/main/README.md"
click node_comparison "https://github.com/icannai/erpnext-ai-research/blob/main/architecture/erpnext-vs-sap-mm.md"
click node_procurement_notes "https://github.com/icannai/erpnext-ai-research/blob/main/domain/procurement-flow.md"
click node_material_request "https://github.com/icannai/erpnext-ai-research/blob/main/domain/procurement-flow.md"
click node_rfq "https://github.com/icannai/erpnext-ai-research/blob/main/domain/procurement-flow.md"
click node_supplier_quote "https://github.com/icannai/erpnext-ai-research/blob/main/domain/procurement-flow.md"
click node_purchase_order "https://github.com/icannai/erpnext-ai-research/blob/main/domain/procurement-flow.md"
click node_purchase_receipt "https://github.com/icannai/erpnext-ai-research/blob/main/domain/procurement-flow.md"
click node_purchase_invoice "https://github.com/icannai/erpnext-ai-research/blob/main/domain/procurement-flow.md"
click node_payment_entry "https://github.com/icannai/erpnext-ai-research/blob/main/domain/procurement-flow.md"

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_overview toneBlue
class node_comparison,node_procurement_notes,node_supplier_quote,node_purchase_order,node_purchase_receipt,node_purchase_invoice,node_payment_entry toneTeal
class node_agent toneIndigo
class node_erpnext_api,node_material_request,node_rfq toneMint
```

## Components

### Other components

- [Research overview](https://github.com/icannai/erpnext-ai-research/blob/main/README.md): `README.md`
- [ERP comparison](https://github.com/icannai/erpnext-ai-research/blob/main/architecture/erpnext-vs-sap-mm.md): `architecture/erpnext-vs-sap-mm.md`
- [Procurement notes](https://github.com/icannai/erpnext-ai-research/blob/main/domain/procurement-flow.md): `domain/procurement-flow.md`
- **AI agent**
- **ERPNext API**
- [Material Request](https://github.com/icannai/erpnext-ai-research/blob/main/domain/procurement-flow.md): `domain/procurement-flow.md`
- [Request for Quotation](https://github.com/icannai/erpnext-ai-research/blob/main/domain/procurement-flow.md): `domain/procurement-flow.md`
- [Supplier Quotation](https://github.com/icannai/erpnext-ai-research/blob/main/domain/procurement-flow.md): `domain/procurement-flow.md`
- [Purchase Order](https://github.com/icannai/erpnext-ai-research/blob/main/domain/procurement-flow.md): `domain/procurement-flow.md`
- [Purchase Receipt](https://github.com/icannai/erpnext-ai-research/blob/main/domain/procurement-flow.md): `domain/procurement-flow.md`
- [Purchase Invoice](https://github.com/icannai/erpnext-ai-research/blob/main/domain/procurement-flow.md): `domain/procurement-flow.md`
- [Payment Entry](https://github.com/icannai/erpnext-ai-research/blob/main/domain/procurement-flow.md): `domain/procurement-flow.md`

## Connections

- Research overview → ERP comparison: describes (evidence: `README.md`)
- Research overview → Procurement notes: describes (evidence: `README.md`)
- AI agent → ERPNext API: uses (evidence: `README.md`)
- Material Request → Request for Quotation: leads to (evidence: `README.md`)
- Request for Quotation → Supplier Quotation: leads to (evidence: `README.md`)
- Supplier Quotation → Purchase Order: leads to (evidence: `README.md`)
- Purchase Order → Purchase Receipt: leads to (evidence: `README.md`)
- Purchase Receipt → Purchase Invoice: leads to (evidence: `README.md`)
- Purchase Invoice → Payment Entry: leads to (evidence: `README.md`)
