Copilot · Community sample

SharePoint Photos Copilot Agent

Find SharePoint and OneDrive photos from Microsoft Copilot and explore them in an interactive gallery.

Copilot componentReactSPFx 1.24.0-beta.2
Inline SharePoint Photos Agent gallery displaying recent event photos in Microsoft Copilot.

The idea behind the sample

SharePoint Photos Copilot Agent brings natural-language photo discovery to Microsoft Copilot. It searches SharePoint document libraries and, when requested, personal OneDrive by using Microsoft Graph Search, then presents matching images in an interactive gallery.

The gallery supports responsive layouts, fullscreen browsing, pagination, zoom, thumbnails, slideshow controls, date filtering, and relevance, modified-date, or name sorting. Search scopes can target a SharePoint site, document library, folder, or explicitly requested OneDrive content.

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 documentation

A closer look

Keep exploring

Keep the ideas flowing

Back to all possibilities
Microsoft 365 and Power Platform Community Contributor badge

Sharing is caring.

Share what you know.

Contribute a sample, improve the docs or help someone get started. Sample contributors can opt in to the PnP Recognition Program and share their community contributor badge.

Have something to show? Sign up for a community call demo. Fill in the form and we'll arrange a slot based on your availability.