# wmalex12/chatbotsample-docs architecture

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

- Interactive diagram: https://gitdiagram.com/wmalex12/chatbotsample-docs
- Repository: https://github.com/wmalex12/chatbotsample-docs

## Overview

This is a small document-ingestion and analysis sample, not a complete chatbot: one script downloads blobs to a local folder, while another analyzes files from that folder with Azure Document Intelligence and writes JSON results. The shared folder makes the stages compatible, but the repository does not show an orchestrator connecting or launching them. The JavaScript file is empty. The graph reflects only the shown scripts and their explicit resource interactions.

Main entry points: [`Analizadores/AnalizadorTest.py`](https://github.com/wmalex12/chatbotsample-docs/blob/main/Analizadores/AnalizadorTest.py) (Document analyzer), [`Analizadores/Pedir documentos.py`](https://github.com/wmalex12/chatbotsample-docs/blob/main/Analizadores/Pedir%20documentos.py) (Blob downloader)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingestion["Document ingestion"]
  node_download["Blob downloader"]
  node_local_docs["Local documents"]
end

subgraph group_analysis["Document analysis"]
  node_analyzer["Document analyzer<br/>[AnalizadorTest.py]"]
  node_json_output["JSON results"]
end

node_operator(("Operator"))
node_blob_storage[("Azure Blob Storage")]
node_document_ai["Azure Document Intelligence"]

node_operator -.->|"runs"| node_download
node_download -->|"downloads blobs"| node_blob_storage
node_download -->|"writes files"| node_local_docs
node_operator -.->|"runs"| node_analyzer
node_analyzer -->|"reads files"| node_local_docs
node_analyzer -->|"submits documents"| node_document_ai
node_analyzer -->|"writes results"| node_json_output

click node_download "https://github.com/wmalex12/chatbotsample-docs/blob/main/Analizadores/Pedir%20documentos.py"
click node_analyzer "https://github.com/wmalex12/chatbotsample-docs/blob/main/Analizadores/AnalizadorTest.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_download,node_local_docs toneBlue
class node_analyzer,node_json_output,node_blob_storage toneAmber
class node_operator,node_document_ai toneIndigo
```

## Components

### Document ingestion

- [Blob downloader](https://github.com/wmalex12/chatbotsample-docs/blob/main/Analizadores/Pedir%20documentos.py): `Analizadores/Pedir documentos.py`
- **Local documents**

### Document analysis

- [Document analyzer](https://github.com/wmalex12/chatbotsample-docs/blob/main/Analizadores/AnalizadorTest.py): `Analizadores/AnalizadorTest.py`
- **JSON results**

### Other components

- **Operator**
- **Azure Blob Storage**
- **Azure Document Intelligence**

## Connections

- Operator → Blob downloader: runs
- Blob downloader → Azure Blob Storage: downloads blobs (evidence: `Analizadores/Pedir documentos.py`)
- Blob downloader → Local documents: writes files (evidence: `Analizadores/Pedir documentos.py`)
- Operator → Document analyzer: runs
- Document analyzer → Local documents: reads files (evidence: `Analizadores/AnalizadorTest.py`)
- Document analyzer → Azure Document Intelligence: submits documents (evidence: `Analizadores/AnalizadorTest.py`)
- Document analyzer → JSON results: writes results (evidence: `Analizadores/AnalizadorTest.py`)
