# jjagapathi385-byte/js-quotebot architecture

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

- Interactive diagram: https://gitdiagram.com/jjagapathi385-byte/js-quotebot
- Repository: https://github.com/jjagapathi385-byte/js-quotebot

## Overview

This is a Flask-based quotation tool with two user-facing modes: QuoteBot and QuoteForm. The visible flow includes PIN-gated access, customer selection, quotation input, and Zoho setup or invoice-data operations. The application is a single large module, so its responsibilities share one source path. The README is empty and the source excerpts omit much of the route logic; dashed, unevidenced links mark likely workflow connections rather than inspected calls.

Main entry points: [`app.py`](https://github.com/jjagapathi385-byte/js-quotebot/blob/main/app.py) (Flask application)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_access["Access and UI"]
  node_flask["Flask application<br/>[app.py]"]
  node_pin_access["PIN sessions<br/>[app.py]"]
end

subgraph group_quotes["Quotation workflows"]
  node_quote_bot["QuoteBot<br/>[app.py]"]
  node_quote_form["QuoteForm<br/>[app.py]"]
  node_customer_lookup["Customer lookup<br/>[app.py]"]
  node_quotation_data["Quotation data<br/>[app.py]"]
end

subgraph group_zoho["Zoho integration"]
  node_zoho_oauth["Zoho OAuth<br/>[app.py]"]
  node_zoho_invoice["Zoho Invoice API"]
  node_zoho_service["Zoho services"]
end

node_user(("User"))

node_user -->|"uses"| node_flask
node_flask -->|"checks sessions"| node_pin_access
node_pin_access -->|"gates access"| node_quote_bot
node_pin_access -->|"gates access"| node_quote_form
node_quote_form -.->|"loads customers"| node_customer_lookup
node_customer_lookup -->|"fetches contacts"| node_zoho_service
node_quote_form -.->|"submits details"| node_quotation_data
node_quotation_data -.->|"uses tax and items"| node_zoho_service
node_flask -->|"handles setup"| node_zoho_oauth
node_zoho_oauth -->|"requests token"| node_zoho_invoice
node_zoho_service -.->|"calls API"| node_zoho_invoice

click node_flask "https://github.com/jjagapathi385-byte/js-quotebot/blob/main/app.py"
click node_pin_access "https://github.com/jjagapathi385-byte/js-quotebot/blob/main/app.py"
click node_quote_bot "https://github.com/jjagapathi385-byte/js-quotebot/blob/main/app.py"
click node_quote_form "https://github.com/jjagapathi385-byte/js-quotebot/blob/main/app.py"
click node_customer_lookup "https://github.com/jjagapathi385-byte/js-quotebot/blob/main/app.py"
click node_quotation_data "https://github.com/jjagapathi385-byte/js-quotebot/blob/main/app.py"
click node_zoho_oauth "https://github.com/jjagapathi385-byte/js-quotebot/blob/main/app.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_flask,node_pin_access,node_user toneBlue
class node_quote_bot,node_quote_form,node_customer_lookup,node_quotation_data toneAmber
class node_zoho_oauth,node_zoho_invoice,node_zoho_service toneMint
```

## Components

### Access and UI

- [Flask application](https://github.com/jjagapathi385-byte/js-quotebot/blob/main/app.py): `app.py`
- [PIN sessions](https://github.com/jjagapathi385-byte/js-quotebot/blob/main/app.py): `app.py`

### Quotation workflows

- [QuoteBot](https://github.com/jjagapathi385-byte/js-quotebot/blob/main/app.py): `app.py`
- [QuoteForm](https://github.com/jjagapathi385-byte/js-quotebot/blob/main/app.py): `app.py`
- [Customer lookup](https://github.com/jjagapathi385-byte/js-quotebot/blob/main/app.py): `app.py`
- [Quotation data](https://github.com/jjagapathi385-byte/js-quotebot/blob/main/app.py): `app.py`

### Zoho integration

- [Zoho OAuth](https://github.com/jjagapathi385-byte/js-quotebot/blob/main/app.py): `app.py`
- **Zoho Invoice API**
- **Zoho services**

### Other components

- **User**

## Connections

- User → Flask application: uses (evidence: `app.py`)
- Flask application → PIN sessions: checks sessions (evidence: `app.py`)
- PIN sessions → QuoteBot: gates access (evidence: `app.py`)
- PIN sessions → QuoteForm: gates access (evidence: `app.py`)
- QuoteForm → Customer lookup: loads customers (evidence: `app.py`)
- Customer lookup → Zoho services: fetches contacts (evidence: `app.py`)
- QuoteForm → Quotation data: submits details (evidence: `app.py`)
- Quotation data → Zoho services: uses tax and items
- Flask application → Zoho OAuth: handles setup (evidence: `app.py`)
- Zoho OAuth → Zoho Invoice API: requests token (evidence: `app.py`)
- Zoho services → Zoho Invoice API: calls API
