How to Connect SharePoint to Appalix
Index documents from Microsoft SharePoint sites so your AI bot can answer questions from your organisation's intranet content, policies, and wikis. Appalix uses the Microsoft Graph API — you need a token, the file URL, and your SharePoint Site ID.
What you'll need
- An Appalix account on the Pro plan or above
- A Microsoft 365 work or school account with access to the SharePoint site
- A configured bot in Appalix with RAG enabled
Step 1 — Copy the SharePoint file URL
- Open the SharePoint site and navigate to the document library.
- Click the file to open it, then copy the URL from the browser address bar. It looks like:
https://yourcompany.sharepoint.com/sites/MySite/Shared%20Documents/policy.docx
Alternatively, right-click the file → Share → Copy link to get a shareable URL.
Step 2 — Generate a Microsoft Graph access token
Graph Explorer only shows permissions relevant to the active query. You need to run a SharePoint query first so that Files.Read.All and Sites.Read.All appear.
- Go to developer.microsoft.com/graph/graph-explorer.
- Click Sign in to Graph Explorer using your Microsoft 365 work or school account.
- In the request URL bar, enter:
https://graph.microsoft.com/v1.0/sites?search=*
Click Run query. It will show an error — that's expected. - A blue Modify permissions banner will appear (or click the Modify permissions tab). You will now see the required permissions in the list. Click Consent next to each:
Files.Read.All— read files across sitesSites.Read.All— read SharePoint site data
- Run the query again — it should return a list of SharePoint sites.
- Copy your access token — there are two ways depending on the Graph Explorer version you see:
- Tab method (most common): Look at the response panel below the URL bar. Click the Access token tab (next to “Response preview” and “Response headers”). The full token is shown — click Copy.
- Profile icon method: At the very top-right of the page, click your profile picture or initials circle (next to the bell icon). A dropdown appears — click Access token. The token is shown in a pop-up — click Copy.
eyJ0…; personal Microsoft accounts (Outlook/Live) get a token starting withEwB…. Both are correct.
https://developer.microsoft.com/…#:~:text=eyJ0… — that is not your token. Always use the Copy button inside Graph Explorer (the button next to the token text), not the browser address bar.Step 3 — Find your SharePoint Site ID
Appalix needs the Site ID to locate your file within the Graph API.
- In Graph Explorer, make sure you're signed in, then run this request:
GET https://graph.microsoft.com/v1.0/sites?search=your-site-name
- Find your site in the response and copy the
idfield. It looks like:
yourcompany.sharepoint.com,aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee,ffffffff-gggg-hhhh-iiii-jjjjjjjjjjjj
You can also get the site ID directly by appending /_api/site/id to your SharePoint site URL in a browser (requires login).
Step 4 — Add the source in Appalix
- In Appalix, go to Sources → Add source and select SharePoint.
- Enter a Source name (e.g. HR Policies).
- Paste the SharePoint file URL from Step 1.
- Paste the Microsoft Graph access token from Step 2 (starts with
eyJ0…orEwB…). - Paste the SharePoint Site ID from Step 3.
- Click Add & index source.
Step 5 — Verify the source is ready
- Go to Sources — the SharePoint source will show Processing while indexing.
- Once it shows Ready, your bot can answer questions from that document.
- Test it in the Playground — ask a question that's covered in the document.
Tips & best practices
- One file per source — add each SharePoint document as a separate source for clean, independent re-syncing.
- Re-sync after edits — click Re-sync on the source in Appalix whenever the document changes.
- IT admin approval — in some Microsoft 365 tenants, admin consent is required for Graph API permissions. Check with your IT admin if Graph Explorer shows permission errors.
- Production tokens — register an Azure AD application with
Sites.Read.Allapp permission and use certificate-based auth for durable indexing.
🏢
Bring your SharePoint content to life
Index your organisation's policies, wikis, and intranet documents so your AI bot can answer questions from them instantly.
Go to Sources →