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 - Topic Creation & Management
Suggested answer

Dynamically assign a document as a knowledge source

(0) ShareShare
ReportReport
Posted on by 4
Hi, 
 
Relatively new to Copilot Studio however getting stuck on a scenario and looking for advice.
 
We have a number of documents stored in SharePoint - for argument sake say 10.  We need to create a row in an Excel spreadsheet for each of those documents. The content in the row needs to be based on a generative answer similar to the below table.
 
Filename Summary 1 Summary 2
Filename1 GenAnswer GenAnswer
Filename2 GenAnswer GenAnswer
 
What we have tried is to get a list of all the files and cycle through each record. For each record we then have a "Create generative answers" action.
 
The problem we are facing is to get the topic to only use the current file as a knowledge source. We don't want the answer to use any of the other files for reference. The knowledge source section doesn't seem to allow for programmatically setting the source.
 
Any ideas?
Categories:
I have the same question (0)
  • Suggested answer
    Arild Aarnes Profile Picture
    131 on at
    Dynamically assign a document as a knowledge source
    Hi,

    I think I would look into doing this in a Agent Flow. There you could use a prompt and use each document as an input when you cycle through them.
    You can call the agent flow from a Topic if that's where you are doing this.
    Maybe you could use a Prompt tool directly in the Topic as well, without going through a Agent Flow
     
     
    Regards
    Arild

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