# nasstyfox/final_poe architecture

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

- Interactive diagram: https://gitdiagram.com/nasstyfox/final_poe
- Repository: https://github.com/nasstyfox/final_poe

## Overview

This repository contains two cyber-awareness experiences: a console program with guided topics and an interactive chatbot, and a separate WPF desktop app with chat, task reminders, activity history, and a quiz. The console program launches the chatbot and attempts to start the desktop app. The desktop features are implemented in the window code-behind. The README is empty; relationships below are limited to calls visible in the supplied excerpts, so UI event wiring and other unsampled behavior are not inferred.

Main entry points: [`FINAL_POE-main/ProgPart2POE/CyberChatbot.cs`](https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/ProgPart2POE/CyberChatbot.cs) (Response dispatch), [`FINAL_POE-main/ProgPart2POE/Program.cs`](https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/ProgPart2POE/Program.cs) (Console program), [`FINAL_POE-main/POE_POE/POE_POE/MainWindow.xaml.cs`](https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/POE_POE/POE_POE/MainWindow.xaml.cs) (Desktop window)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_console["Console learning"]
  node_program["Console program<br/>[Program.cs]"]
  node_guided["Guided topics<br/>[Program.cs]"]
  node_audio["Greeting audio<br/>[Program.cs]"]
end

subgraph group_chatbot["Chatbot engine"]
  node_chatbot["Chatbot session<br/>[CyberChatbot.cs]"]
  node_dispatch["Response dispatch<br/>[CyberChatbot.cs]"]
  node_sentiment["Sentiment replies<br/>[CyberChatbot.cs]"]
  node_topics["Topic answers<br/>[CyberChatbot.cs]"]
  node_tips["Random tips<br/>[CyberChatbot.cs]"]
  node_memory["Memory and follow-up<br/>[CyberChatbot.cs]"]
  node_fallback["Dialogue fallback<br/>[CyberChatbot.cs]"]
end

subgraph group_desktop["Desktop toolkit"]
  node_window["Desktop window<br/>[MainWindow.xaml.cs]"]
  node_desktopchat["Desktop chat<br/>[MainWindow.xaml.cs]"]
  node_tasks["Tasks and activity<br/>[MainWindow.xaml.cs]"]
  node_quiz["Cyber quiz<br/>[MainWindow.xaml.cs]"]
end

node_user(("User"))

node_user -->|"uses"| node_program
node_program -->|"presents topics"| node_guided
node_program -->|"starts session"| node_chatbot
node_program -->|"launches app"| node_window
node_program -->|"plays greeting"| node_audio
node_chatbot -->|"dispatches input"| node_dispatch
node_dispatch -->|"checks sentiment"| node_sentiment
node_dispatch -->|"checks topics"| node_topics
node_dispatch -->|"checks tip requests"| node_tips
node_dispatch -->|"checks memory"| node_memory
node_dispatch -->|"uses if unhandled"| node_fallback
node_user -->|"uses"| node_window
node_window -->|"loads questions"| node_quiz
node_window -->|"updates activity"| node_tasks

click node_program "https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/ProgPart2POE/Program.cs"
click node_guided "https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/ProgPart2POE/Program.cs"
click node_audio "https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/ProgPart2POE/Program.cs"
click node_chatbot "https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/ProgPart2POE/CyberChatbot.cs"
click node_dispatch "https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/ProgPart2POE/CyberChatbot.cs"
click node_sentiment "https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/ProgPart2POE/CyberChatbot.cs"
click node_topics "https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/ProgPart2POE/CyberChatbot.cs"
click node_tips "https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/ProgPart2POE/CyberChatbot.cs"
click node_memory "https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/ProgPart2POE/CyberChatbot.cs"
click node_fallback "https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/ProgPart2POE/CyberChatbot.cs"
click node_window "https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/POE_POE/POE_POE/MainWindow.xaml.cs"
click node_desktopchat "https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/POE_POE/POE_POE/MainWindow.xaml.cs"
click node_tasks "https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/POE_POE/POE_POE/MainWindow.xaml.cs"
click node_quiz "https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/POE_POE/POE_POE/MainWindow.xaml.cs"

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_program,node_guided,node_audio,node_user toneBlue
class node_chatbot,node_dispatch,node_sentiment,node_topics,node_tips,node_memory,node_fallback toneAmber
class node_window,node_desktopchat,node_tasks,node_quiz toneMint
```

## Components

### Console learning

- [Console program](https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/ProgPart2POE/Program.cs): `FINAL_POE-main/ProgPart2POE/Program.cs`
- [Guided topics](https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/ProgPart2POE/Program.cs): `FINAL_POE-main/ProgPart2POE/Program.cs`
- [Greeting audio](https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/ProgPart2POE/Program.cs): `FINAL_POE-main/ProgPart2POE/Program.cs`

### Chatbot engine

- [Chatbot session](https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/ProgPart2POE/CyberChatbot.cs): `FINAL_POE-main/ProgPart2POE/CyberChatbot.cs`
- [Response dispatch](https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/ProgPart2POE/CyberChatbot.cs): `FINAL_POE-main/ProgPart2POE/CyberChatbot.cs`
- [Sentiment replies](https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/ProgPart2POE/CyberChatbot.cs): `FINAL_POE-main/ProgPart2POE/CyberChatbot.cs`
- [Topic answers](https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/ProgPart2POE/CyberChatbot.cs): `FINAL_POE-main/ProgPart2POE/CyberChatbot.cs`
- [Random tips](https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/ProgPart2POE/CyberChatbot.cs): `FINAL_POE-main/ProgPart2POE/CyberChatbot.cs`
- [Memory and follow-up](https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/ProgPart2POE/CyberChatbot.cs): `FINAL_POE-main/ProgPart2POE/CyberChatbot.cs`
- [Dialogue fallback](https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/ProgPart2POE/CyberChatbot.cs): `FINAL_POE-main/ProgPart2POE/CyberChatbot.cs`

### Desktop toolkit

- [Desktop window](https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/POE_POE/POE_POE/MainWindow.xaml.cs): `FINAL_POE-main/POE_POE/POE_POE/MainWindow.xaml.cs`
- [Desktop chat](https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/POE_POE/POE_POE/MainWindow.xaml.cs): `FINAL_POE-main/POE_POE/POE_POE/MainWindow.xaml.cs`
- [Tasks and activity](https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/POE_POE/POE_POE/MainWindow.xaml.cs): `FINAL_POE-main/POE_POE/POE_POE/MainWindow.xaml.cs`
- [Cyber quiz](https://github.com/nasstyfox/final_poe/blob/master/FINAL_POE-main/POE_POE/POE_POE/MainWindow.xaml.cs): `FINAL_POE-main/POE_POE/POE_POE/MainWindow.xaml.cs`

### Other components

- **User**

## Connections

- User → Console program: uses
- Console program → Guided topics: presents topics (evidence: `FINAL_POE-main/ProgPart2POE/Program.cs`)
- Console program → Chatbot session: starts session (evidence: `FINAL_POE-main/ProgPart2POE/Program.cs`)
- Console program → Desktop window: launches app (evidence: `FINAL_POE-main/ProgPart2POE/Program.cs`)
- Console program → Greeting audio: plays greeting (evidence: `FINAL_POE-main/ProgPart2POE/Program.cs`)
- Chatbot session → Response dispatch: dispatches input (evidence: `FINAL_POE-main/ProgPart2POE/CyberChatbot.cs`)
- Response dispatch → Sentiment replies: checks sentiment (evidence: `FINAL_POE-main/ProgPart2POE/CyberChatbot.cs`)
- Response dispatch → Topic answers: checks topics (evidence: `FINAL_POE-main/ProgPart2POE/CyberChatbot.cs`)
- Response dispatch → Random tips: checks tip requests (evidence: `FINAL_POE-main/ProgPart2POE/CyberChatbot.cs`)
- Response dispatch → Memory and follow-up: checks memory (evidence: `FINAL_POE-main/ProgPart2POE/CyberChatbot.cs`)
- Response dispatch → Dialogue fallback: uses if unhandled (evidence: `FINAL_POE-main/ProgPart2POE/CyberChatbot.cs`)
- User → Desktop window: uses
- Desktop window → Cyber quiz: loads questions (evidence: `FINAL_POE-main/POE_POE/POE_POE/MainWindow.xaml.cs`)
- Desktop window → Tasks and activity: updates activity (evidence: `FINAL_POE-main/POE_POE/POE_POE/MainWindow.xaml.cs`)
