# nizam295/retail-promomind-inr-app architecture

> Architecture diagram of the GitHub repository nizam295/retail-promomind-inr-app, 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/nizam295/retail-promomind-inr-app
- Repository: https://github.com/nizam295/retail-promomind-inr-app

## Overview

PromoMind AI is a Streamlit dashboard that lets a user set retail conditions and corporate guardrails, simulates promotion decisions, then displays a recommended discount, duration, and audience. The runtime is concentrated in app.py; its named agents are simulated decision logic, not separate services. The source shows no persistent storage or external integrations.

Main entry points: [`app.py`](https://github.com/nizam295/retail-promomind-inr-app/blob/main/app.py) (Margin Check)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Planning Inputs"]
  node_market_inputs["Market Inputs<br/>[app.py]"]
  node_guardrails["Corporate Guardrails<br/>[app.py]"]
end

subgraph group_decision["Promotion Decision"]
  node_agent_simulation["Agent Simulation<br/>[app.py]"]
  node_financial_check["Margin Check<br/>[app.py]"]
end

subgraph group_results["Strategy Results"]
  node_agent_logs["Negotiation Logs<br/>[app.py]"]
  node_strategy_output["Strategy Output<br/>[app.py]"]
end

node_user(("Planner"))

node_user -->|"sets conditions"| node_market_inputs
node_user -->|"sets limits"| node_guardrails
node_market_inputs -->|"supplies market data"| node_agent_simulation
node_agent_simulation -->|"proposes discount"| node_financial_check
node_guardrails -->|"sets margin floor"| node_financial_check
node_agent_simulation -->|"records assessment"| node_agent_logs
node_financial_check -->|"records decision"| node_agent_logs
node_financial_check -->|"sets final discount"| node_strategy_output
node_market_inputs -->|"sets duration and audience"| node_strategy_output

click node_market_inputs "https://github.com/nizam295/retail-promomind-inr-app/blob/main/app.py"
click node_guardrails "https://github.com/nizam295/retail-promomind-inr-app/blob/main/app.py"
click node_agent_simulation "https://github.com/nizam295/retail-promomind-inr-app/blob/main/app.py"
click node_financial_check "https://github.com/nizam295/retail-promomind-inr-app/blob/main/app.py"
click node_agent_logs "https://github.com/nizam295/retail-promomind-inr-app/blob/main/app.py"
click node_strategy_output "https://github.com/nizam295/retail-promomind-inr-app/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_market_inputs,node_guardrails toneBlue
class node_agent_simulation,node_financial_check toneAmber
class node_agent_logs,node_strategy_output toneMint
class node_user toneIndigo
```

## Components

### Planning Inputs

- [Market Inputs](https://github.com/nizam295/retail-promomind-inr-app/blob/main/app.py): `app.py`
- [Corporate Guardrails](https://github.com/nizam295/retail-promomind-inr-app/blob/main/app.py): `app.py`

### Promotion Decision

- [Agent Simulation](https://github.com/nizam295/retail-promomind-inr-app/blob/main/app.py): `app.py`
- [Margin Check](https://github.com/nizam295/retail-promomind-inr-app/blob/main/app.py): `app.py`

### Strategy Results

- [Negotiation Logs](https://github.com/nizam295/retail-promomind-inr-app/blob/main/app.py): `app.py`
- [Strategy Output](https://github.com/nizam295/retail-promomind-inr-app/blob/main/app.py): `app.py`

### Other components

- **Planner**

## Connections

- Planner → Market Inputs: sets conditions (evidence: `app.py`)
- Planner → Corporate Guardrails: sets limits (evidence: `app.py`)
- Market Inputs → Agent Simulation: supplies market data (evidence: `app.py`)
- Agent Simulation → Margin Check: proposes discount (evidence: `app.py`)
- Corporate Guardrails → Margin Check: sets margin floor (evidence: `app.py`)
- Agent Simulation → Negotiation Logs: records assessment (evidence: `app.py`)
- Margin Check → Negotiation Logs: records decision (evidence: `app.py`)
- Margin Check → Strategy Output: sets final discount (evidence: `app.py`)
- Market Inputs → Strategy Output: sets duration and audience (evidence: `app.py`)
