Preview unavailableThe idea behind the sample
Site Snapshot is a Copilot UX Component that scans every user document library on a SharePoint site through the brokered Microsoft Graph client and returns a 0-100 health score built from five explained sub-scores: storage, freshness, sharing exposure, activity and tidiness.
Inline, it renders a compact score card in the chat. In fullscreen it opens a dashboard with tabs for file types, owners, duplicates, stale files, external and Anyone sharing, empty files and the largest files. The agent can open straight to the view the user asked about.
Users can export the results to CSV or email themselves a summary, and ask the agent follow-up questions answered from the snapshot results. The component is read-only.
Make it your own
Start with the author's setup instructions, explore the implementation, and adapt the pattern to your environment. Sample code stays in its original repository, together with its requirements, license and contribution history.
Read the source documentationA closer look
Preview unavailableKeep exploring
- Build agents for Microsoft Copilot — Extend Microsoft Copilot with declarative agents, plugins, and connectors to tailor Copilot to your organization's needs.
- Overview of the SharePoint Framework — The SharePoint Framework (SPFx) is a page and web part model that provides full support for client-side SharePoint development.
- Use Microsoft Graph in SPFx — Connect to Microsoft Graph from SharePoint Framework solutions using MSGraphClientV3.
