How to Deploy Copilot in SharePoint Page

How to Deploy Copilot in SharePoint Page?

No comments

Loading

In this article, we will learn about how to deploy Copilot in SharePoint page. In my previous article, I showed how to deploy Copilot in Microsoft Teams.

Before getting into this article, I would recommend you go through the questionnaires about Copilot Chatbot or Copilot Studio: Top 30 Microsoft 365 Copilot FAQ: Your Questions Answered

How to Deploy Copilot in SharePoint Page?

In order to deploy Copilot in SharePoint Online pages, first we need to configure the single sign-on (SSO) in the Copilot Chatbot. For this, refer to this article: Configure Single Sign On in Copilot Studio Bots and Microsoft Teams (SSO)

Once you have successfully configured the SSO for the Copilot chatbot, come to this article and move on. We must say that to deploy or integrate a Copilot in the SharePoint Online page, the Copilot authentication type must be selected as “Manual (for custom  website)”

To verify that, follow the below steps:

Select the copilot that you want to deploy or integrate into the SharePoint Online page.

Select security from the left-side panel under the “Settings” section.

Click on the authentication tile.

Security Authentication in Copilot chatbot
Security Authentication in Copilot chatbot

Yes, it has been verified that for this Copilot chatbot, the authentication type is “Manual (for a custom website), which requires users to sign in.

Copilot Authentication (for custom website) requires users to sign in
Copilot Authentication (for custom website) requires users to sign in

Now, let’s go to the various channels of the Copilot.

Available Channels in Copilot

Select channels from the left side panel under the “Settings” section.

We can see the following channels:

  • Microsoft Copilot (preview): Publish plugins to a Microsoft Copilot for a unified experience.
  • Microsoft Teams: Excited to make your bot available for others to use in Microsoft Teams? Review how your bot will appear. Select Edit details to modify. Once you are ready, select Availability options to continue.
  • Demo Website: You created a copilot. Great job! Let’s set up a website to share with team members so they can try your copilot.
  • Custom website: This channel allows you to embed an HTML copilot into your website. Learn about embedding your copilot in a web page.
  • Mobile app: Allow your mobile app users to chat with your bot. Check out our instructions for both native and web-based mobile apps.
  • Facebook: Set up this channel to let Facebook users chat with your copilot. Learn how to set up Facebook channel. Note that certain copilot content may not render the same on Facebook Messenger as it was authored in Microsoft Copilot Studio. For details, refer to our supported channel content article.
  • Skype: Engage your customers on the channel that’s right for you. Leverage the resources and sample code we provide to develop a solution that fits your business needs.
  • Slack: Engage your customers on the channel that’s right for you. Leverage the resources and sample code we provide to develop a solution that fits your business needs.
  • Telegram: Engage your customers on the channel that’s right for you. Leverage the resources and sample code we provide to develop a solution that fits your business needs.
  • Twilio: Engage your customers on the channel that’s right for you. Leverage the resources and sample code we provide to develop a solution that fits your business needs.
  • Line: Engage your customers on the channel that’s right for you. Leverage the resources and sample code we provide to develop a solution that fits your business needs.
  • GroupMe: Engage your customers on the channel that’s right for you. Leverage the resources and sample code we provide to develop a solution that fits your business needs.
  • Direct Line Speech: Engage your customers on the channel that’s right for you. Leverage the resources and sample code we provide to develop a solution that fits your business needs.
  • Email: Engage your customers on the channel that’s right for you. Leverage the resources and sample code we provide to develop a solution that fits your business needs.
Available Channels in Copilot
Available Channels in Copilot

From the above channels list, we have already learned how to integrate or deploy the Copilot chatbot in Microsoft Teams. In this article, we will see how to test Copilot on a demo website and a custom website.

  • Demo Website: You created a copilot. Great job! Let’s set up a website to share with team members so they can try your copilot.
  • Custom website: This channel allows you to embed an HTML copilot into your website. Learn about embedding your copilot in a web page.

Test Copilot Chatbot from a demo website

Click on the “Demo website” tile.

Demo website channel in Copilot Chatbot
Demo website channel in Copilot Chatbot

From the “Share your website” section, copy the website link and paste it in the new tab of your opened browser, then, we can see the below sample website scree:

Demo website channel in Copilot Chatbot - Try out the chatbot we made

Demo website channel in Copilot Chatbot – Try out the chatbot we madeClick on the “Login” button.

Copy this validation code.

Please enter this validation code into the chat window to complete the sign-in
Please enter this validation code into the chat window to complete the sign-in

And paste that validation into the demo website chatbot, then hit enter.

Copilot Sign in validation code entered in the demo website
Copilot Sign in validation code entered in the demo website

The Copilot chatbot sign-in validation code was validated successfully. Then, if we ask anything from my SharePoint site, it answers. Please see below:

Demo website channel in Copilot Chatbot - Tested successfully
Demo website channel in Copilot Chatbot – Tested successfully

Integrate Copilot in SharePoint Page – Custom Website

To integrate the Copilot chatbot into the SharePoint Online page, we need to click on the “Custom website” Copilot channel.

Copilot chatbot channels - Custom website
Copilot chatbot channels – Custom website

Copy the “Default embed code

Copilot channel custom website default embed code
Copilot channel custom website default embed code

Open your SharePoint Online page.

Add an “Embed” web part.

Paste the “Default embed code” html you have copied in the previous step into the embed web part configuration box (website address or embed code).

Configure the embed web part for html code
Configure the embed web part for html code

But it didn’t go well, we can see the below error:

“Embedding content from this website isn’t allowed, but your admin can change this setting. They will need to add ‘copilotstudio.microsoft.com’ to the list of sites that are allowed.”

Let’s fix this error; it is very simple. We need to add the ‘copilotstudio.microsoft.com’ site to the HTML field security of the SharePoint site.

Go to your SharePoint Online site settings page.

Configure HTML Field security in SharePoint Online site
Configure HTML Field security in SharePoint Online site

Click on the “HTML Field Security” link from the site collection administration section.

Add the ‘copilotstudio.microsoft.com’ site to the “Allow iframes from this domain” section:

Add copilot studio site to SharePoint Online HTML Field security section
Add copilot studio site to SharePoint Online HTML Field security section

Click on the Ok button.

Now, let’s go back to the Embed web part page where we got the error.

The Copilot Embed web part was successfully added to the SharePoint Online site
The Copilot Embed web part was successfully added to the SharePoint Online site

Save the page.

Copilot chatbot login from SharePoint Online page
Copilot chatbot login from SharePoint Online page

Click on the “Login” button.

Copilot validation code from SharePoint Online site
Copilot validation code from SharePoint Online site

Copy the above validation code and paste into the Copilot chatbot box like below:

Enter the copilot sign in validation code in SharePoint Online site
Enter the copilot sign in validation code in SharePoint Online site

Then, hit enter.

It successfully validated the code and logged in.

Now, ask some questions from your site documents, and the copilot chatbot will answer them. Please see below:

A custom Copilot chatbot was deployed on the SharePoint Online page and tested successfully
A custom Copilot chatbot was deployed on the SharePoint Online page and tested successfully

Summary: Integrate Copilot in SharePoint Page

Thus, in this article, we have learned how to deploy and integrate custom copilot from the demo web site and a custom web site such as the SharePoint Online site. In both scenarios, it worked well.

See Also: Microsoft Copilot Articles

You may also read the following Microsoft Copilot Studio articles:

 

About Post Author

Do you have a better solution or question on this topic? Please leave a comment