# anishtechcode/microsoft-hackathon architecture

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

- Interactive diagram: https://gitdiagram.com/anishtechcode/microsoft-hackathon
- Repository: https://github.com/anishtechcode/microsoft-hackathon

## Overview

RecallDesk is a customer-support workspace centered on reusing customer-specific outcomes: an agent recalls history, drafts a response informed by it, confirms a resolution, and retains the outcome for later recall. The browser also exposes customer, ticket, knowledge, memory, analytics, and settings views, though several are demo placeholders rather than separate data-backed subsystems. The graph follows the sampled browser and API code; no separate backend for those views is evident.

Main entry points: [`public/app.js`](https://github.com/anishtechcode/microsoft-hackathon/blob/master/public/app.js) (Workspace UI), [`api/hindsight.js`](https://github.com/anishtechcode/microsoft-hackathon/blob/master/api/hindsight.js) (Hindsight API), [`api/agent.js`](https://github.com/anishtechcode/microsoft-hackathon/blob/master/api/agent.js) (Draft API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspace["Support workspace"]
  node_workspace_ui["Workspace UI<br/>[app.js]"]
  node_workspace_views["Workspace views<br/>[app.js]"]
  node_knowledge_guidance["Knowledge guidance<br/>[app.js]"]
end

subgraph group_workflow["Support workflow"]
  node_draft_api["Draft API<br/>[agent.js]"]
  node_resolution["Confirmed outcome<br/>[app.js]"]
end

subgraph group_memory["Memory integration"]
  node_hindsight_api["Hindsight API<br/>[hindsight.js]"]
  node_hindsight_service["Hindsight service"]
  node_memory_bank[("Hindsight bank")]
end

node_support_agent(("Support agent"))

node_support_agent -->|"uses"| node_workspace_ui
node_workspace_ui -->|"navigates"| node_workspace_views
node_workspace_ui -->|"requests recall"| node_hindsight_api
node_workspace_ui -->|"checks status"| node_hindsight_api
node_hindsight_api -->|"calls recall"| node_hindsight_service
node_hindsight_service -->|"searches"| node_memory_bank
node_memory_bank -->|"returns matches"| node_hindsight_service
node_hindsight_service -->|"returns memories"| node_hindsight_api
node_hindsight_api -->|"returns memories"| node_workspace_ui
node_workspace_ui -->|"supplies context"| node_knowledge_guidance
node_workspace_ui -->|"sends draft context"| node_draft_api
node_draft_api -->|"returns draft"| node_workspace_ui
node_support_agent -->|"confirms resolution"| node_workspace_ui
node_workspace_ui -->|"records outcome"| node_resolution
node_workspace_ui -->|"requests retain"| node_hindsight_api
node_hindsight_api -->|"calls retain"| node_hindsight_service
node_hindsight_service -->|"stores memories"| node_memory_bank

click node_workspace_ui "https://github.com/anishtechcode/microsoft-hackathon/blob/master/public/app.js"
click node_workspace_views "https://github.com/anishtechcode/microsoft-hackathon/blob/master/public/app.js"
click node_knowledge_guidance "https://github.com/anishtechcode/microsoft-hackathon/blob/master/public/app.js"
click node_draft_api "https://github.com/anishtechcode/microsoft-hackathon/blob/master/api/agent.js"
click node_resolution "https://github.com/anishtechcode/microsoft-hackathon/blob/master/public/app.js"
click node_hindsight_api "https://github.com/anishtechcode/microsoft-hackathon/blob/master/api/hindsight.js"

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_workspace_ui,node_workspace_views,node_knowledge_guidance toneBlue
class node_draft_api,node_resolution toneAmber
class node_hindsight_api,node_hindsight_service,node_memory_bank toneMint
class node_support_agent toneIndigo
```

## Components

### Support workspace

- [Workspace UI](https://github.com/anishtechcode/microsoft-hackathon/blob/master/public/app.js): `public/app.js`
- [Workspace views](https://github.com/anishtechcode/microsoft-hackathon/blob/master/public/app.js): `public/app.js`
- [Knowledge guidance](https://github.com/anishtechcode/microsoft-hackathon/blob/master/public/app.js): `public/app.js`

### Support workflow

- [Draft API](https://github.com/anishtechcode/microsoft-hackathon/blob/master/api/agent.js): `api/agent.js`
- [Confirmed outcome](https://github.com/anishtechcode/microsoft-hackathon/blob/master/public/app.js): `public/app.js`

### Memory integration

- [Hindsight API](https://github.com/anishtechcode/microsoft-hackathon/blob/master/api/hindsight.js): `api/hindsight.js`
- **Hindsight service**
- **Hindsight bank**

### Other components

- **Support agent**

## Connections

- Support agent → Workspace UI: uses
- Workspace UI → Workspace views: navigates
- Workspace UI → Hindsight API: requests recall
- Workspace UI → Hindsight API: checks status
- Hindsight API → Hindsight service: calls recall
- Hindsight service → Hindsight bank: searches
- Hindsight bank → Hindsight service: returns matches
- Hindsight service → Hindsight API: returns memories
- Hindsight API → Workspace UI: returns memories
- Workspace UI → Knowledge guidance: supplies context
- Workspace UI → Draft API: sends draft context
- Draft API → Workspace UI: returns draft
- Support agent → Workspace UI: confirms resolution
- Workspace UI → Confirmed outcome: records outcome
- Workspace UI → Hindsight API: requests retain
- Hindsight API → Hindsight service: calls retain
- Hindsight service → Hindsight bank: stores memories
