# dsunsamg/seller-bot architecture

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

- Interactive diagram: https://gitdiagram.com/dsunsamg/seller-bot
- Repository: https://github.com/dsunsamg/seller-bot

## Overview

seller-bot is a small Flask web app that helps a buyer compose seller feedback. The buyer submits information through the chat endpoint; Flask advances through the prompts, stores answers in the bot’s in-memory context, and requests a generated message at the final step. The bot calls Anthropic’s Claude API, then Flask returns the result. The README provides no further capability details, and the template’s contents were not excerpted, so its client-side behavior is not mapped.

Main entry points: [`app.py`](https://github.com/dsunsamg/seller-bot/blob/main/app.py) (Flask routes), [`feedback_bot.py`](https://github.com/dsunsamg/seller-bot/blob/main/feedback_bot.py) (Feedback bot), [`index.html`](https://github.com/dsunsamg/seller-bot/blob/main/index.html) (Chat page), [`config.py`](https://github.com/dsunsamg/seller-bot/blob/main/config.py) (API key settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web interface"]
  node_template["Chat page<br/>[index.html]"]
  node_flask["Flask routes<br/>[app.py]"]
end

subgraph group_feedback["Feedback workflow"]
  node_bot["Feedback bot<br/>[feedback_bot.py]"]
end

subgraph group_integration["Model integration"]
  node_settings["API key settings<br/>[config.py]"]
  node_claude{{"Anthropic Claude API"}}
end

node_buyer(("Buyer"))

node_buyer -->|"submits chat"| node_flask
node_flask -->|"renders page"| node_template
node_flask -->|"collects answers"| node_bot
node_flask -->|"requests prompts"| node_bot
node_flask -->|"generates feedback"| node_bot
node_bot -->|"imports key"| node_settings
node_bot -->|"requests generation"| node_claude

click node_template "https://github.com/dsunsamg/seller-bot/blob/main/index.html"
click node_flask "https://github.com/dsunsamg/seller-bot/blob/main/app.py"
click node_bot "https://github.com/dsunsamg/seller-bot/blob/main/feedback_bot.py"
click node_settings "https://github.com/dsunsamg/seller-bot/blob/main/config.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_template,node_flask toneBlue
class node_bot toneAmber
class node_settings,node_claude toneMint
class node_buyer toneIndigo
```

## Components

### Web interface

- [Chat page](https://github.com/dsunsamg/seller-bot/blob/main/index.html): `index.html`
- [Flask routes](https://github.com/dsunsamg/seller-bot/blob/main/app.py): `app.py`

### Feedback workflow

- [Feedback bot](https://github.com/dsunsamg/seller-bot/blob/main/feedback_bot.py): `feedback_bot.py`

### Model integration

- [API key settings](https://github.com/dsunsamg/seller-bot/blob/main/config.py): `config.py`
- **Anthropic Claude API**

### Other components

- **Buyer**

## Connections

- Buyer → Flask routes: submits chat (evidence: `app.py`)
- Flask routes → Chat page: renders page (evidence: `app.py`)
- Flask routes → Feedback bot: collects answers (evidence: `app.py`)
- Flask routes → Feedback bot: requests prompts (evidence: `app.py`)
- Flask routes → Feedback bot: generates feedback (evidence: `app.py`)
- Feedback bot → API key settings: imports key (evidence: `feedback_bot.py`)
- Feedback bot → Anthropic Claude API: requests generation (evidence: `feedback_bot.py`)
