web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Copilot Studio - Calling Actions from Copilot S...
Suggested answer

Filter on knowledgesources

(1) ShareShare
ReportReport
Posted on by 13
I want to apply filter on knowledge sources before getting a response from the agent. 

Lets say i have 4 files in sharepoint - with column tags, HR and IT. 2 files are tagged HR and 2 files tagged as IT.
I add these 4 files to knowledge. 
When I use the agent, it should recognize my job title(I have done this with power automate workflow to get job title), if the job title is HR, it should only refer to the 2 files tagged with HR.

I have not been able to achieve the step where I can apply filter to the knowledge source.
Any help is much appreciated.

 
Categories:
I have the same question (0)
  • Suggested answer
    Romain The Low-Code Bearded Bear Profile Picture
    487 on at
    Filter on knowledgesources
    At the moment : document sharepoint properties are ignored.
    It's better to target the document by folder with a topic or sub agent and/or topîcs.
     
     
  • Suggested answer
    ChristenC Profile Picture
    11 on at
    Filter on knowledgesources
    Have you considered creating child agents with a trigger for the job title and have that deploy the child agent to search the correct SharePoint columns? 
     
    I have been using child agents that I connect to dedicated knowledge sources-in a similar manner to only deploy when triggered by OEM name values.
     
    As the other person commented about creating separate KB, if you were able to separate them I am confident the use of child agents to provide the correct information would be more accurate. Hope this helps! 
  • Suggested answer
    Bezanca Profile Picture
    183 on at
    Filter on knowledgesources
     
    I don’t think there is in-built way of applying filters on connected a knowledgesource, but here’s a workaround that may work for you -
     
    Create 2 separate knowledge sources 
     
    KB_Hr - contains all the HR tagged docs
    KB_IT - contains all the IT tagged docs
     
    In your flow, you would then get the users department and then do a conditional branch to call only the relevant knowledgesource.
     
    This should work but would get tricky to manage if you add more departments.
     
    Thanks
    Adam

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 468 Super User 2025 Season 2

#2
stampcoin Profile Picture

stampcoin 52 Super User 2025 Season 2

#3
trice602 Profile Picture

trice602 46 Super User 2025 Season 2

Featured topics