# mahidharmannam05/code_alpha_basic_chatbot architecture

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

- Interactive diagram: https://gitdiagram.com/mahidharmannam05/code_alpha_basic_chatbot
- Repository: https://github.com/mahidharmannam05/code_alpha_basic_chatbot

## Overview

This is a minimal command-line chatbot. The user enters a line; the main loop uppercases it and calls `Wish`, which prints a fixed response for recognized phrases and a fallback for anything else. Returning `bye` after the BYE response stops the loop. The single source file implements both the interaction loop and response logic.

Main entry points: [`Basic_chatbot.py`](https://github.com/mahidharmannam05/code_alpha_basic_chatbot/blob/main/Basic_chatbot.py) (Response Logic)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("User"))
node_loop["Input Loop<br/>[Basic_chatbot.py]"]
node_wish["Response Logic<br/>[Basic_chatbot.py]"]
node_console["Terminal Output"]

node_user -->|"enters text"| node_loop
node_loop -->|"calls with input"| node_wish
node_wish -->|"prints reply"| node_console
node_wish -->|"returns bye"| node_loop

click node_loop "https://github.com/mahidharmannam05/code_alpha_basic_chatbot/blob/main/Basic_chatbot.py"
click node_wish "https://github.com/mahidharmannam05/code_alpha_basic_chatbot/blob/main/Basic_chatbot.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_user toneBlue
class node_loop,node_wish toneTeal
class node_console toneIndigo
```

## Components

### Other components

- **User**
- [Input Loop](https://github.com/mahidharmannam05/code_alpha_basic_chatbot/blob/main/Basic_chatbot.py): `Basic_chatbot.py`
- [Response Logic](https://github.com/mahidharmannam05/code_alpha_basic_chatbot/blob/main/Basic_chatbot.py): `Basic_chatbot.py`
- **Terminal Output**

## Connections

- User → Input Loop: enters text (evidence: `Basic_chatbot.py`)
- Input Loop → Response Logic: calls with input (evidence: `Basic_chatbot.py`)
- Response Logic → Terminal Output: prints reply (evidence: `Basic_chatbot.py`)
- Response Logic → Input Loop: returns bye (evidence: `Basic_chatbot.py`)
