How to Use SharePoint List as Knowledge in Copilot Studio [Dynamic Filters and Natural Language]

Have you ever wished that your users could ask a question and receive instant answers from your SharePoint list, such as “What training is available for the IT department?” or “When is the next finance workshop?”

Well, now you can make that happen with Copilot Studio.

In this tutorial, I will show you how to build a Copilot agent that connects directly to your SharePoint list and responds to user queries. Our knowledge base is a SharePoint List.

We will utilize Get Items to dynamically filter the data based on user input and return personalized answers directly within the chat interface.

SharePoint List as Knowledge

Before we can create the agent, we need a SharePoint list that stores the data. In this example, I made a list of training programs.

How to Use SharePoint List as Knowledge in Copilot Studio

Create a New Copilot Agent

Once your SharePoint list is ready, let’s create a new Copilot agent in Copilot Studio that will use this list as a knowledge source.

  1. Go to Copilot Studio. Click Create -> + New agent. Or you can use your existing agent.
Add SharePoint as a Knowledge Source in Microsoft Copilot Studio
  1. Give your agent a meaningful name (Training Assistant). Add the description blank for now and click Create.
Using SharePoint Lists with Microsoft Copilot Studio
  1. Now, we will add a Get Items Action. To do this, click the Tools tab -> ‘+ Add a tool‘. In the search bar, type Get items. From the results, select Get items (SharePoint). This action allows you to retrieve list items from your SharePoint site.
Create a Copilot Agent That Can Answer Questions from a SharePoint List
  1. Once selected, you’ll see a new screen prompting you to choose how you want to proceed. At the bottom right, you’ll find three buttons:
    • Add to agent – This adds the action to your agent without any configuration.
    • Add and configure – This option adds the action and opens the configuration screen where you can input the required details, such as:
      • Site Address
      • List Name
    • Cancel – Closes the pop-up without taking any action.
  2. In my case, click Add to agent. After that, we will add the site address and other required things.
How to Create a Copilot Agent That Can Answer Questions from a SharePoint List
  1. Then, select the Get items action. In the Inputs section, add the Site Address where you created the SharePoint list. Then, in the List Name, change ‘Dynamically fill with AI’ to ‘Custom value’ under ‘Fill using’, and select your SharePoint list, in my case, ‘Training Programs’.
Build a Chatbot That Reads Live Data from a SharePoint List
  1. Click + Add input. From the options, choose Filter Query. Once added, click Customize. In the Description field, enter a helpful note about what this filter does. For example:
An ODATA filter query to restrict the entries returned (e.g. stringColumn eq 'string' OR numberColumn lt 123).

Use this field to filter SharePoint list items based on user input. For example, if a user selects "IT" as the department and "Online" as the training type, the bot should return only those items that match both values.
ow to Filter SharePoint Data Based on User Questions in Copilot Studio
  1. After that, save the action by clicking the “Save” button on the top right side.

Test the Agent

Once done, click on Test, and you should see the output.

In my case, I am asking about “Give me details of Program ID TP-015“.

How to connect SharePoint list to Microsoft Copilot Studio

The Copilot responds with the full program information, including the name, department, training type, start date, and duration exactly as stored in the SharePoint list.

Next, I asked: “What IT trainings are available?

Create chatbot using SharePoint data in Copilot Studio

The Copilot quickly responded by fetching and listing all training programs from the IT department in the SharePoint list.

Then I asked ‘IT department Duration less than 7’ (Here I know the department spelling is incorrect, but still Copilot Agent will understand)

Copilot Studio agent using SharePoint list as knowledge base

If you want to make your agent live on a website, intranet, or Teams, check out this step-by-step guide: Publish Your Copilot Agent to a Live Website.

I hope this article has helped you learn how to create a Copilot agent that connects directly to a SharePoint list and provides intelligent answers to user queries. We covered configuring the Get items action, applying dynamic filters based on user input, and testing the agent using real-world training scenarios.

Moreover, you may like some more tutorials:

Power Apps functions free pdf

30 Power Apps Functions

This free guide walks you through the 30 most-used Power Apps functions with real business examples, exact syntax, and results you can see.

Download User registration canvas app

DOWNLOAD USER REGISTRATION POWER APPS CANVAS APP

Download a fully functional Power Apps Canvas App (with Power Automate): User Registration App