Skip to content

Copilot in SharePoint Search page is a custom copilot component in SharePoint Search page.

Notifications You must be signed in to change notification settings

mohammadamer/copilot-in-search-page

Repository files navigation

copilot-in-search-page

Summary

Copilot in Search Page is a SharePoint Framework SPFx extension for integrating a custom Copilot into your SharePoint search page.

Copilot in SharePoint Search Page

Copilot in SharePoint Search Page

Used SharePoint Framework Version

version

Used node Version

version

Applies to

Get your own free development tenant by subscribing to Microsoft 365 developer program

Prerequisites

Pre-requisites:

Add the configurations to the list columns as following:

  • Title: any title
  • BotUrl: The token endpoint for Microsoft Copilot studio. This can be found in the Microsoft Copilot studio designer, under Settings -> Channels -> Mobile App
  • CustomScope: The scope defined for the custom API in the copilot app registration. In the first Pre-requisite.
  • ClientId: The Azure App registration created for handling SSO. In the second Pre-requisite.
  • Authority: The login URL for your tenant. For example: mytenant.onmicrosoft.com
  • Greet: Should the copilot greet users at the beginning of the conversation. "true/false"
  • BotName: The title for the copilot bot.
  • PanelLabel: The Label for copilot dialog chat.

Solution

Solution Author(s)
Copilot In Search Page Mohammed Amer

Version history

Version Date Comments
1.0 August 04, 2024 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.


Minimal Path to Awesome

  • Follow the pre-requisites for creating
    • Azure App regisrations
    • Custom copilot in Copilot studio
    • Configuration list then add a record for the required configurations as mentioned previously
  • Clone this repository
  • Ensure that you are at the solution folder
  • in the command-line run:
    • yarn install or npm install
    • gulp serve

Features

Description of the extension that expands upon high-level summary above.

This extension illustrates the following concepts:

  • The extension is integrating a custom Copilot into your SharePoint search page where you ask the copilot questions, the it provide you Generative answers from the current SharePoint site content.

References

About

Copilot in SharePoint Search page is a custom copilot component in SharePoint Search page.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published