Back to Installing Your Chatbot

How to add a ChatGPT chatbot to SharePoint Modern Online

How to add your custom ChatGPT trained chatbot to your SharePoint Modern Online website.

You want to embed your custom trained chatbot in your SharePoint Modern Online website page. Here's how to add ChatGPT to SharePoint Modern Online with SiteSpeakAI.

Add your chatbot To your SharePoint Modern Online website

SharePoint doesn't allow adding custom HTML as other website builders do. You can use Microsoft Copilot Studio to create a webpart but we found a Power Popups app that will do the job for us. This popup can be triggered by clicking on a button, a link or an image. Power Popups offer a 7 day free full function option which allows you to test the functionality.

Due to the fact that we have no access to the header and footer code of the website, the popup can not be added to display site wide, you must add the popup to each page of your website.

In this tutorial we will look at an image as a trigger. The button is similar but can only contain text on it so you can put any relevant text on it. The image will be displayed with a minimum size of 100x100px. You can play around with the size. The popup trigger will be added to a section. Sections can have different layouts, i.e. 1, 2 or 3 columns but we suggest a 3 column layout so you can basically add the popup trigger left, center or right.

In SiteSpeakAI

Select your chatbot from the dropdown menu at the top, click on the Install Chatbot section in the sidebar and select the iFrame option. Then select and copy the iframe source URL. This will be used as the URL for the iFrame being displayed in the popup.

0 - SharePoint - Copy iFrame Source URL.png

In SharePoint Modern Online

  1. Obtain your Power Popups webpart.

1 - SharePoint - Select Apps on MS App Source.png

2 - SharePoint - Select SharePoint apps.png

  • Scroll down until you get the Power Popups app and click on Get it now.

3 - SharePoint - Select Power Popups.png

  • Confirm your details and click on Get it now to start installation.

4a - SharePoint - Confirm your Microsoft details.png

  • The SharePoint Store will now be displayed. It also displays a video link where the popup is explained. Click on Add.

5 - SharePoint - SharePoint Store.png

  • The app (webpart) will then be added to the Apps site in SharePoint and will be visible under Site contents. It will be available as a webpart for your SharePoint website.

6 - SharePoint - SharePoint Site Contents.png

  1. On your SharePoint start page, select the website you want to work with.

7 - SharePoint - SharePoint Start Page.png

  1. If you want to add the popup trigger as an image you will have to add the image to the site library. You can add it to the site assets. You will find Site Assets under Site contents. Upload you image to Site Assets via the upload option.

8 - SharePoint - SharePoint Popup trigger image in Site Assets.png

  1. Return to your website page and prepare the area you want to add the popup trigger to.

  2. Click on Edit to open the page in edit mode.

9 - SharePoint - Edit your page.png

  1. Insert a new section just above the page footer.

10 - SharePoint - Insert new section.png

  1. Select a 3 column section. This will allow you to place the popup trigger left, center or right on the page.

11 - SharePoint - Select a 3 coloumn section.png

  1. Insert a webpart in the right most column.

12 - SharePoint - Add a webpart in the right most column.png

  1. Scroll down and select the Power Popups webpart.

13 - SharePoint - Select Power Popups.png

  1. Highlight and delete the webpart title. This will remove the additional title while displaying the popup trigger.

14 - SharePoint - Highlite and Delete Title.png

  1. Click on Edit web part.

15 - SharePoint - Edit web part.png

  1. We will now configure the popup web part. The following parts must be configured:

Trigger Configuration, Content Configuration, Overlay Configuration and Popup Configuration.

a. Trigger Configuration. This is where we will set up the Popup Trigger type, i.e. Button, Image or Link.

16 - SharePoint - Select Trigger type.png

  • Button setup.

17 - SharePoint - Button Setup.png

  • Link setup.

18 - SharePoint - Link Setup.png

  • Image Setup. For the image trigger we have to select the image as well.

19a - SharePoint - Image Setup.png

  • Image selection (this is the image we added to the Site contents).

. Select site.

19b - SharePoint - Select site.png

. Select Site Assets.

19c - SharePoint - Select site assets.png

. Select the image and click on Open.

19d - SharePoint - Select image.png

b. Content Configuration. This configures how the popup trigger displays as well as the source of the popup. The popup source must be set to Page URL and for the Page URL you must enter the iFrame URL you copied from the chatbot setup at the start of this tutorial.

20 - SharePoint - Content Config.png

c. Overlay Configuration.

21 - SharePoint - Overlay Config.png

d. Popup Configuration.

  • Position can be left right or center, left, right, top left, top center, top right, bottom left, bottom center or bottom right).

22a - SharePoint - Popup Config (Type & Position).png

22b - SharePoint - Popup Animation.png

22c - SharePoint - Popup Animation.png

  1. Click on Apply.

22d - SharePoint - Popup Animation.png

  1. Click on Publish (or RePublish if you have Published the page before).

23 - SharePoint - Publish.png

  1. Your chatbot button will now display on the page.

24 - SharePoint - Chatbot button.png

  1. If you click on the button it will display your chatbot dialogue. To close click on the X. You can also close it by pressing ESC if you have set it up in the configuration.

25 - SharePoint - Chatbot dialogue.png

  1. That's it, your chatbot is now added to your SharePoint website and your customers can start interacting with it!
Need more help with SiteSpeakAI?

Not finding what you need? Reach out to our support team for help.

Contact Support

Ready to automate your customer support with AI?

Join over 150+ businesses, websites and startups automating their customer support with a custom trained GPT chatbot.