# akhil200331/multi_agent_for_elders_accenture_hackthon architecture

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

- Interactive diagram: https://gitdiagram.com/akhil200331/multi_agent_for_elders_accenture_hackthon
- Repository: https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon

## Overview

ElderEase is a Flask-based elder-care monitoring app. A device user logs in to receive health, safety, and due-reminder messages on a dashboard; a caretaker logs in to schedule reminders. The app reads health and safety status from CSV files, stores credentials and reminder schedules in PostgreSQL, and uses Ollama to make messages friendlier. The README also describes continuous wearable monitoring and instant safety alerts, but the sampled code does not implement sensor ingestion or caregiver alert delivery, so those connections are not shown.

Main entry points: [`app.py`](https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/app.py) (Flask routes), [`templates/login.html`](https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/templates/login.html) (Device login), [`templates/caretaker_login.html`](https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/templates/caretaker_login.html) (Caretaker login), [`templates/add_reminder.html`](https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/templates/add_reminder.html) (Reminder form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web experience"]
  node_login_page["Device login<br/>[login.html]"]
  node_caretaker_page["Caretaker login"]
  node_reminder_page["Reminder form<br/>[add_reminder.html]"]
  node_dashboard["Care dashboard<br/>[dashboard.html]"]
  node_web_routes["Flask routes<br/>[app.py]"]
end

subgraph group_monitoring["Monitoring and messages"]
  node_health_check["Health status<br/>[app.py]"]
  node_safety_check["Safety status<br/>[app.py]"]
  node_reminder_check["Due reminders<br/>[app.py]"]
  node_message_gen["Friendly messages<br/>[app.py]"]
end

subgraph group_data["Care data"]
  node_health_csv["Health records"]
  node_safety_csv["Safety records"]
  node_reminder_csv["Reminder records<br/>[daily_reminder.csv]"]
  node_postgres[("PostgreSQL")]
end

subgraph group_services["External services"]
  node_ollama["Ollama model"]
end

node_elder(("Elderly user"))
node_caretaker(("Caretaker"))

node_elder -->|"opens"| node_login_page
node_login_page -->|"submits login"| node_web_routes
node_caretaker -->|"opens"| node_caretaker_page
node_caretaker_page -->|"submits login"| node_web_routes
node_web_routes -->|"checks credentials"| node_postgres
node_web_routes -->|"renders"| node_reminder_page
node_reminder_page -->|"submits reminder"| node_web_routes
node_web_routes -->|"saves reminder"| node_postgres
node_web_routes -->|"calls"| node_health_check
node_web_routes -->|"calls"| node_safety_check
node_web_routes -->|"calls"| node_reminder_check
node_health_check -->|"reads"| node_health_csv
node_safety_check -->|"reads"| node_safety_csv
node_reminder_check -->|"queries and updates"| node_postgres
node_web_routes -->|"formats status"| node_message_gen
node_message_gen -->|"generates text"| node_ollama
node_web_routes -->|"renders messages"| node_dashboard
node_dashboard -->|"shows status"| node_elder

click node_login_page "https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/templates/login.html"
click node_caretaker_page "https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/templates/caretaker_login.html"
click node_reminder_page "https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/templates/add_reminder.html"
click node_dashboard "https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/templates/dashboard.html"
click node_web_routes "https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/app.py"
click node_health_check "https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/app.py"
click node_safety_check "https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/app.py"
click node_reminder_check "https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/app.py"
click node_message_gen "https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/app.py"
click node_health_csv "https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/Data/health_monitoring.csv"
click node_safety_csv "https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/Data/safety_monitoring.csv"
click node_reminder_csv "https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/Data/daily_reminder.csv"

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_login_page,node_caretaker_page,node_reminder_page,node_dashboard,node_web_routes,node_elder toneBlue
class node_health_check,node_safety_check,node_reminder_check,node_message_gen toneAmber
class node_health_csv,node_safety_csv,node_reminder_csv,node_postgres toneMint
class node_ollama toneRose
class node_caretaker toneIndigo
```

## Components

### Web experience

- [Device login](https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/templates/login.html): `templates/login.html`
- [Caretaker login](https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/templates/caretaker_login.html): `templates/caretaker_login.html`
- [Reminder form](https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/templates/add_reminder.html): `templates/add_reminder.html`
- [Care dashboard](https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/templates/dashboard.html): `templates/dashboard.html`
- [Flask routes](https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/app.py): `app.py`

### Monitoring and messages

- [Health status](https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/app.py): `app.py`
- [Safety status](https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/app.py): `app.py`
- [Due reminders](https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/app.py): `app.py`
- [Friendly messages](https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/app.py): `app.py`

### Care data

- [Health records](https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/Data/health_monitoring.csv): `Data/health_monitoring.csv`
- [Safety records](https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/Data/safety_monitoring.csv): `Data/safety_monitoring.csv`
- [Reminder records](https://github.com/akhil200331/multi_agent_for_elders_accenture_hackthon/blob/main/Data/daily_reminder.csv): `Data/daily_reminder.csv`
- **PostgreSQL**

### External services

- **Ollama model**

### Other components

- **Elderly user**
- **Caretaker**

## Connections

- Elderly user → Device login: opens
- Device login → Flask routes: submits login
- Caretaker → Caretaker login: opens
- Caretaker login → Flask routes: submits login
- Flask routes → PostgreSQL: checks credentials
- Flask routes → Reminder form: renders
- Reminder form → Flask routes: submits reminder
- Flask routes → PostgreSQL: saves reminder
- Flask routes → Health status: calls
- Flask routes → Safety status: calls
- Flask routes → Due reminders: calls
- Health status → Health records: reads
- Safety status → Safety records: reads
- Due reminders → PostgreSQL: queries and updates
- Flask routes → Friendly messages: formats status
- Friendly messages → Ollama model: generates text
- Flask routes → Care dashboard: renders messages
- Care dashboard → Elderly user: shows status
