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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / How to Programmaticall...
Copilot Studio
Suggested Answer

How to Programmatically Upload Knowledge Files with Description & Name to Copilot Studio Agents

(1) ShareShare
ReportReport
Posted on by 2

Hi everyone,

I’m building a Microsoft Copilot Studio agent for a client, and I want to automate the way knowledge base documents (like PDFs, Word files, etc.) are uploaded. Currently, when uploading a document via the Copilot Studio UI, I can set a name and description for that file — which is very helpful for organizing the knowledge and ensuring accurate query resolution.

However, I want to avoid giving the client direct access to Copilot Studio. Ideally, I want to:

  • Trigger a Power Automate flow when a new document is uploaded to OneDrive or SharePoint.

  • Push that document into the Copilot agent’s knowledge base programmatically — using Dataverse or any available API/SDK.

  • Along with the file, set its name and description, just like in the UI.

  • Ensure that these fields (especially the description) are used or visible in Copilot’s responses, or at least influence retrieval quality.

  • Has anyone built a custom admin portal or used a Power App to manage Copilot knowledge base files outside of the Studio UI?

  • Any insights, examples, or documentation links would be hugely appreciated

  • Thanks in advance 

Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,958 Moderator on at
     
     
    I believe this will give you what you asked for.

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
     
  • Michael E. Gernaey Profile Picture
    53,958 Moderator on at
     
    Were you able to implement the solution below. Are you stilling having issues?

    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.

    Thank you!
    Sincerely, Michael Gernaey
  • Suggested answer
    CU27080205-2 Profile Picture
    Microsoft Employee on at

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 813

#2
Vish WR Profile Picture

Vish WR 302

#3
Haque Profile Picture

Haque 268

Last 30 days Overall leaderboard