# officedev/microsoft-365-agents-toolkit-samples architecture

> Architecture diagram of the GitHub repository officedev/microsoft-365-agents-toolkit-samples, 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/officedev/microsoft-365-agents-toolkit-samples
- Repository: https://github.com/officedev/microsoft-365-agents-toolkit-samples

## Overview

This is a gallery of independent Microsoft Teams and Microsoft 365 sample applications, not one integrated runtime. The README identifies the product as samples surfaced in the Agents Toolkit galleries; the tree spans bots, tabs, agents, notifications, dashboards, and connectors. The graph highlights representative user-to-result workflows and documented or excerpted internal layers. Many subsystems are unsampled, so their internal links are omitted rather than inferred.

Main entry points: [`travel-agent/TravelAgent/Program.cs`](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/travel-agent/TravelAgent/Program.cs) (Agent HTTP host), [`coffee-agent/src/index.ts`](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/coffee-agent/src/index.ts) (Coffee agent), [`developer-assist-dashboard/src/App.tsx`](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/developer-assist-dashboard/src/App.tsx) (Developer dashboard app), [`todo-list-SPFx/src/src/webparts/todoList/components/SharePointListManager.ts`](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/todo-list-SPFx/src/src/webparts/todoList/components/SharePointListManager.ts) (SharePoint todo manager)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_teams_samples["Teams samples"]
  node_npm_search["NPM search bot<br/>[index.js]"]
  node_bot_sso["SSO command bot<br/>[teamsBot.ts]"]
end

subgraph group_agent_samples["Agent samples"]
  node_coffee_agent["Coffee agent<br/>[index.ts]"]
  node_coffee_storage[("Coffee state<br/>[storage.ts]")]
  node_python_proxy["Python proxy agent<br/>[main.py]"]
  node_node_proxy["Node proxy agent<br/>[agent.ts]"]
  node_csharp_agent["Azure agent<br/>[AzureAgent.cs]"]
  node_travel_agent["Travel agent<br/>[TravelAgent.cs]"]
  node_travel_host["Agent HTTP host<br/>[Program.cs]"]
end

subgraph group_notification_samples["Notification samples"]
  node_notification_bot["Stock notification bot<br/>[messageHandler.ts]"]
  node_notification_store[("Conversation store<br/>[storage.ts]")]
  node_notification_pipeline["Large-scale delivery"]
  node_incoming_webhook["Incoming webhook<br/>[webhookTarget.ts]"]
  node_adaptive_card["Adaptive notifications<br/>[notification.ts]"]
end

subgraph group_dashboard_samples["Dashboard samples"]
  node_dashboard_app["Developer dashboard app<br/>[App.tsx]"]
  node_dashboard_view["Sample dashboard"]
  node_dashboard_api["Dashboard API<br/>[callService.ts]"]
  node_central_dashboard["Team dashboard<br/>[MyDashboard.tsx]"]
end

subgraph group_integration_samples["Integration samples"]
  node_sharepoint_todo["SharePoint todo manager"]
  node_connector_api["Copilot connector API<br/>[data.ts]"]
  node_chart_generator["Chart generator tab<br/>[Tab.tsx]"]
  node_share_now["Share Now"]
  node_hello_tab_app["Backend tab app<br/>[App.tsx]"]
  node_hello_tab["Tab page<br/>[Tab.tsx]"]
end

node_user(("Teams user"))
node_teams_host(("Teams host"))
node_sample_gallery(("Sample gallery"))
node_sharepoint[("SharePoint list")]
node_graph_service["Microsoft Graph"]

node_sample_gallery -->|"offers sample"| node_npm_search
node_sample_gallery -->|"offers sample"| node_bot_sso
node_sample_gallery -->|"offers sample"| node_coffee_agent
node_sample_gallery -->|"offers sample"| node_python_proxy
node_sample_gallery -->|"offers sample"| node_node_proxy
node_sample_gallery -->|"offers sample"| node_csharp_agent
node_sample_gallery -->|"offers sample"| node_travel_host
node_sample_gallery -->|"offers sample"| node_notification_pipeline
node_sample_gallery -->|"offers sample"| node_incoming_webhook
node_sample_gallery -->|"offers sample"| node_adaptive_card
node_sample_gallery -->|"offers sample"| node_dashboard_app
node_sample_gallery -->|"offers sample"| node_central_dashboard
node_sample_gallery -->|"offers sample"| node_sharepoint_todo
node_sample_gallery -->|"offers sample"| node_connector_api
node_sample_gallery -->|"offers sample"| node_chart_generator
node_sample_gallery -->|"offers sample"| node_share_now
node_user -.->|"searches packages"| node_npm_search
node_user -.->|"issues commands"| node_bot_sso
node_user -.->|"places order"| node_coffee_agent
node_coffee_agent -->|"uses initial data"| node_coffee_storage
node_user -.->|"requests travel help"| node_travel_host
node_travel_host -->|"dispatches agent"| node_travel_agent
node_travel_host -.->|"receives messages"| node_teams_host
node_user -.->|"interacts with bot"| node_notification_bot
node_notification_bot -.->|"uses storage"| node_notification_store
node_user -.->|"opens dashboard"| node_dashboard_app
node_dashboard_app -->|"routes to view"| node_dashboard_view
node_user -.->|"views metrics"| node_central_dashboard
node_user -.->|"manages tasks"| node_sharepoint_todo
node_sharepoint_todo -->|"reads and writes"| node_sharepoint
node_user -.->|"requests connector data"| node_connector_api
node_connector_api -.->|"queries Graph"| node_graph_service
node_teams_host -.->|"hosts tab"| node_hello_tab_app
node_hello_tab_app -->|"routes to tab"| node_hello_tab

click node_npm_search "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/NPM-search-message-extension-codespaces/index.js"
click node_bot_sso "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/bot-sso/src/teamsBot.ts"
click node_coffee_agent "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/coffee-agent/src/index.ts"
click node_coffee_storage "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/coffee-agent/src/storage.ts"
click node_python_proxy "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/ProxyAgent-Python/src/main.py"
click node_node_proxy "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/ProxyAgent-NodeJS/src/agent.ts"
click node_csharp_agent "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/ProxyAgent-CSharp/AzureAgentToM365ATK/Agents/AzureAgent.cs"
click node_travel_agent "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/travel-agent/TravelAgent/Bot/Agents/TravelAgent.cs"
click node_travel_host "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/travel-agent/TravelAgent/Program.cs"
click node_notification_bot "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/stocks-update-notification-bot/src/functions/messageHandler.ts"
click node_notification_store "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/stocks-update-notification-bot/src/notification/storage.ts"
click node_notification_pipeline "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/large-scale-notification/src/functions/sendNotificationsOrchestrator.ts"
click node_incoming_webhook "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/incoming-webhook-notification/src/webhookTarget.ts"
click node_adaptive_card "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/adaptive-card-notification/src/notification/notification.ts"
click node_dashboard_app "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/developer-assist-dashboard/src/App.tsx"
click node_dashboard_view "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/developer-assist-dashboard/src/dashboards/SampleDashboard.tsx"
click node_dashboard_api "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/developer-assist-dashboard/api/src/functions/callService.ts"
click node_central_dashboard "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/team-central-dashboard/src/dashboards/MyDashboard.tsx"
click node_sharepoint_todo "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/todo-list-SPFx/src/src/webparts/todoList/components/SharePointListManager.ts"
click node_connector_api "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/copilot-connector-app/api/src/functions/data.ts"
click node_chart_generator "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/archive/intelligent-data-chart-generator/src/Tab.tsx"
click node_share_now "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/archive/share-now/bot/messageExtensionBot.ts"
click node_hello_tab_app "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/hello-world-tab-with-backend/src/components/App.tsx"
click node_hello_tab "https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/hello-world-tab-with-backend/src/components/Tab.tsx"

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_npm_search,node_bot_sso,node_user toneBlue
class node_coffee_agent,node_coffee_storage,node_python_proxy,node_node_proxy,node_csharp_agent,node_travel_agent,node_travel_host,node_sharepoint toneAmber
class node_notification_bot,node_notification_store,node_notification_pipeline,node_incoming_webhook,node_adaptive_card toneMint
class node_dashboard_app,node_dashboard_view,node_dashboard_api,node_central_dashboard toneRose
class node_sharepoint_todo,node_connector_api,node_chart_generator,node_share_now,node_hello_tab_app,node_hello_tab,node_teams_host,node_sample_gallery,node_graph_service toneIndigo
```

## Components

### Teams samples

- [NPM search bot](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/NPM-search-message-extension-codespaces/index.js): `NPM-search-message-extension-codespaces/index.js`
- [SSO command bot](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/bot-sso/src/teamsBot.ts): `bot-sso/src/teamsBot.ts`

### Agent samples

- [Coffee agent](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/coffee-agent/src/index.ts): `coffee-agent/src/index.ts`
- [Coffee state](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/coffee-agent/src/storage.ts): `coffee-agent/src/storage.ts`
- [Python proxy agent](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/ProxyAgent-Python/src/main.py): `ProxyAgent-Python/src/main.py`
- [Node proxy agent](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/ProxyAgent-NodeJS/src/agent.ts): `ProxyAgent-NodeJS/src/agent.ts`
- [Azure agent](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/ProxyAgent-CSharp/AzureAgentToM365ATK/Agents/AzureAgent.cs): `ProxyAgent-CSharp/AzureAgentToM365ATK/Agents/AzureAgent.cs`
- [Travel agent](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/travel-agent/TravelAgent/Bot/Agents/TravelAgent.cs): `travel-agent/TravelAgent/Bot/Agents/TravelAgent.cs`
- [Agent HTTP host](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/travel-agent/TravelAgent/Program.cs): `travel-agent/TravelAgent/Program.cs`

### Notification samples

- [Stock notification bot](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/stocks-update-notification-bot/src/functions/messageHandler.ts): `stocks-update-notification-bot/src/functions/messageHandler.ts`
- [Conversation store](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/stocks-update-notification-bot/src/notification/storage.ts): `stocks-update-notification-bot/src/notification/storage.ts`
- [Large-scale delivery](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/large-scale-notification/src/functions/sendNotificationsOrchestrator.ts): `large-scale-notification/src/functions/sendNotificationsOrchestrator.ts`
- [Incoming webhook](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/incoming-webhook-notification/src/webhookTarget.ts): `incoming-webhook-notification/src/webhookTarget.ts`
- [Adaptive notifications](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/adaptive-card-notification/src/notification/notification.ts): `adaptive-card-notification/src/notification/notification.ts`

### Dashboard samples

- [Developer dashboard app](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/developer-assist-dashboard/src/App.tsx): `developer-assist-dashboard/src/App.tsx`
- [Sample dashboard](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/developer-assist-dashboard/src/dashboards/SampleDashboard.tsx): `developer-assist-dashboard/src/dashboards/SampleDashboard.tsx`
- [Dashboard API](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/developer-assist-dashboard/api/src/functions/callService.ts): `developer-assist-dashboard/api/src/functions/callService.ts`
- [Team dashboard](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/team-central-dashboard/src/dashboards/MyDashboard.tsx): `team-central-dashboard/src/dashboards/MyDashboard.tsx`

### Integration samples

- [SharePoint todo manager](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/todo-list-SPFx/src/src/webparts/todoList/components/SharePointListManager.ts): `todo-list-SPFx/src/src/webparts/todoList/components/SharePointListManager.ts`
- [Copilot connector API](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/copilot-connector-app/api/src/functions/data.ts): `copilot-connector-app/api/src/functions/data.ts`
- [Chart generator tab](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/archive/intelligent-data-chart-generator/src/Tab.tsx): `archive/intelligent-data-chart-generator/src/Tab.tsx`
- [Share Now](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/archive/share-now/bot/messageExtensionBot.ts): `archive/share-now/bot/messageExtensionBot.ts`
- [Backend tab app](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/hello-world-tab-with-backend/src/components/App.tsx): `hello-world-tab-with-backend/src/components/App.tsx`
- [Tab page](https://github.com/officedev/microsoft-365-agents-toolkit-samples/blob/dev/hello-world-tab-with-backend/src/components/Tab.tsx): `hello-world-tab-with-backend/src/components/Tab.tsx`

### Other components

- **Teams user**
- **Teams host**
- **Sample gallery**
- **SharePoint list**
- **Microsoft Graph**

## Connections

- Sample gallery → NPM search bot: offers sample (evidence: `README.md`)
- Sample gallery → SSO command bot: offers sample (evidence: `README.md`)
- Sample gallery → Coffee agent: offers sample (evidence: `README.md`)
- Sample gallery → Python proxy agent: offers sample (evidence: `README.md`)
- Sample gallery → Node proxy agent: offers sample (evidence: `README.md`)
- Sample gallery → Azure agent: offers sample (evidence: `README.md`)
- Sample gallery → Agent HTTP host: offers sample (evidence: `README.md`)
- Sample gallery → Large-scale delivery: offers sample (evidence: `README.md`)
- Sample gallery → Incoming webhook: offers sample (evidence: `README.md`)
- Sample gallery → Adaptive notifications: offers sample (evidence: `README.md`)
- Sample gallery → Developer dashboard app: offers sample (evidence: `README.md`)
- Sample gallery → Team dashboard: offers sample (evidence: `README.md`)
- Sample gallery → SharePoint todo manager: offers sample (evidence: `README.md`)
- Sample gallery → Copilot connector API: offers sample (evidence: `README.md`)
- Sample gallery → Chart generator tab: offers sample (evidence: `README.md`)
- Sample gallery → Share Now: offers sample (evidence: `README.md`)
- Teams user → NPM search bot: searches packages
- Teams user → SSO command bot: issues commands
- Teams user → Coffee agent: places order
- Coffee agent → Coffee state: uses initial data (evidence: `coffee-agent/src/storage.ts`)
- Teams user → Agent HTTP host: requests travel help
- Agent HTTP host → Travel agent: dispatches agent (evidence: `travel-agent/TravelAgent/Program.cs`)
- Agent HTTP host → Teams host: receives messages
- Teams user → Stock notification bot: interacts with bot
- Stock notification bot → Conversation store: uses storage
- Teams user → Developer dashboard app: opens dashboard
- Developer dashboard app → Sample dashboard: routes to view (evidence: `developer-assist-dashboard/src/App.tsx`)
- Teams user → Team dashboard: views metrics
- Teams user → SharePoint todo manager: manages tasks
- SharePoint todo manager → SharePoint list: reads and writes (evidence: `todo-list-SPFx/src/src/webparts/todoList/components/SharePointListManager.ts`)
- Teams user → Copilot connector API: requests connector data
- Copilot connector API → Microsoft Graph: queries Graph
- Teams host → Backend tab app: hosts tab
- Backend tab app → Tab page: routes to tab (evidence: `hello-world-tab-with-backend/src/components/App.tsx`)
