In Spotler Chat+ you can connect Microsoft SharePoint directly to Smart Aigent, so that selected SharePoint pages are automatically synced and used as a knowledge source for the AI responses. You set up this connection via the menu item Integrate in Chat+, with a Microsoft Graph app registration that gets access to the SharePoint site.
You connect SharePoint to Smart Aigent by creating an app registration in Microsoft Entra with Application permissions for Microsoft Graph, and entering the corresponding details (Tenant ID, Site ID, Client ID and Client secret) in the SharePoint integration in Chat+. Then you select which SharePoint pages Smart Aigent is allowed to use and start the sync.
This page covers the following topics:
- What do you need to set up the connection?
- Register an app in Microsoft Entra
- Connect SharePoint in Chat+
- Check the connection in Smart Aigent
- Which content gets synced?
- How do you show the source of a response?
What do you need to set up the connection?
Before you set up the connection, you need the following.
- Administrator rights on the relevant chatbot in Chat+.
- An active Smart Aigent module on the environment.
- Access to the Microsoft Entra admin center, with rights to create an app registration and grant admin consent.
- The Microsoft Graph Site ID of the SharePoint site you want to connect.
-
Microsoft Graph Application permissions, such as
Sites.Read.AllorSites.Selected. Delegated permissions do not work for Smart Aigent's automatic background sync.
Register an app in Microsoft Entra
First register an application in Microsoft Entra and give it access to the SharePoint site via Microsoft Graph.
- Go to the Microsoft Entra admin center and open Identity Applications App registrations.
- Click New registration, give the app a recognizable name and choose Accounts in this organizational directory only.
- Note the Directory (Tenant) ID and the Application (Client) ID on the Overview page.
- Go to Certificates & secrets Client secrets and click New client secret.
- Add a description and expiration date, then click Add. Copy the displayed value immediately.
- Go to API permissions Add a permission Microsoft Graph and choose Application permissions.
- Add
Sites.Read.All, orSites.Selectedfor access to one specific site, and click Grant admin consent.
Important! Save the client secret immediately!
The client secret value is only shown once. Copy it to a safe place immediately after creating it, because you cannot retrieve it again later in Microsoft Entra.
Connect SharePoint in Chat+
Once you have the details from Microsoft Entra, set up the connection in Chat+.
- Log in to Chat+ and go to Integrate in the left menu.
-
Click the SharePoint tile.
.
- Fill in the following fields:
- Tenant ID: the Directory (Tenant) ID from Microsoft Entra.
- Site ID: the Microsoft Graph Site ID of the SharePoint environment.
- Client ID: the Application (Client) ID of the app registration.
- Client secret: the generated client secret value.
-
Graph token scope: the scope URL, by default
https://graph.microsoft.com/.default.
- Click Save.
- Click Refresh to retrieve the available SharePoint pages.
- Search for and select the pages the chatbot is allowed to use, then click Sync selected.
Check the connection in Smart Aigent
After the sync, you can check whether the content has been processed correctly.
- Go to Smart Aigent Overview.
- Check that the selected SharePoint pages are visible with their page title, sync status and date of last change.
- Test the chatbot in the preview to check whether the content is used correctly in responses.
.
Which content gets synced?
The connection only syncs SharePoint site pages (.aspx files) that you select yourself. After the first manual sync, these pages are automatically updated weekly. If you want to apply a change immediately, you can start a new manual sync at any time.
How do you show the source of a response?
Use the placeholder {{system.smart_aigent_sources}} in a dialog template to show the source of a response to the conversation partner.
Note for internal SharePoint environments
If the connected SharePoint site is only accessible internally to employees, do not show the source citation directly to external customers on a public page. In that case, only use the source citation only in internal flows, such as Engage or Webcare.