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 - General
Suggested Answer

How can Copilot Studio’s Code Interpreter always access a specific CSV without re-uploading?

(1) ShareShare
ReportReport
Posted on by 8

Hello, I’m using Copilot Studio in my daily work.

In conversations, I often use the Code Interpreter (Python tool) to extract information. I’d like to make a certain CSV file (master data) always available for reference.

What I want to achieve:


  • Avoid requiring the user to upload the file every time a new conversation starts.
  • Ideally, set a specific CSV (e.g., product list, customer list) as a “default data source” that the Code Interpreter can automatically access.
  • Due to security requirements, the file must reside in protected storage within our internal tenant.

What I’ve tried / considered:


  • Uploading the file at the start of each conversation: works, but too much operational overhead.
  • Connecting data sources (SharePoint/OneDrive) in Copilot Studio: useful for knowledge-based Q&A, but there’s no mechanism to pass the file directly to Python processing in the Code Interpreter.

Question:
Is there an official way to permanently link a specific CSV file to Copilot Studio’s Code Interpreter (Python tool)?

Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    52,569 Super User 2025 Season 2 on at
    How can Copilot Studio’s Code Interpreter always access a specific CSV without re-uploading?
     
    There is no direct way unless you want to build a plugin or use a flow to get the data. But there is no perm way as you are talking about cross topic talking?
     
    Or do you simply mean you want everyone to have access to it (via the Code interpreter, in which case I would still say use an Agent or Power Automate directl flow to grab it
     

    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
    CU26111039-0 Profile Picture
    8 on at
    How can Copilot Studio’s Code Interpreter always access a specific CSV without re-uploading?
    Thank you for your previous response. I’d like to clarify one point.
    Currently, I’m only using the trial version of Copilot Studio, so I cannot publish an agent to Power Automate. From your answer, it sounds like it might be possible to retrieve a CSV file via Power Automate and then pass that file directly to an agent built in Copilot Studio. Is that really feasible?
    To be clear:
    I understand that Power Automate can retrieve a CSV file.
    I also know that Power Automate can call an agent created in Copilot Studio.
    However, I don’t know how to pass the retrieved CSV file as an attachment (or in any other way) to the Copilot Studio agent.
    Would it be possible for you to show an example, ideally with screenshots of the flow configuration? That would be extremely helpful.
    Thank you in advance!
  • CU28110631-0 Profile Picture
    8 on at
    How can Copilot Studio’s Code Interpreter always access a specific CSV without re-uploading?
    Thank you for the information.
  • Suggested answer
    Romain The Low-Code Bearded Bear Profile Picture
    2,030 Super User 2025 Season 2 on at
    How can Copilot Studio’s Code Interpreter always access a specific CSV without re-uploading?
     
    hello :) if you want sample if have two : 
     
    A great video from matthew wich have a lot informaiton on how to use file with ai builder prompt tool with flow : https://www.youtube.com/watch?v=JMlUcxqnU30
     
    another one in french (but manual english subtitle, so it s ok translation :) ) wich at the end use a "fixed" file as a document to be compared with a document upload in chat by a user : https://youtu.be/rGIDE7_JwvU
     
    i hope one of those content could you :) if yes please check the answer as validated it's important for the community and search engine
  • Suggested answer
    S-Venkadesh Profile Picture
    849 Moderator on at
    How can Copilot Studio’s Code Interpreter always access a specific CSV without re-uploading?
     
    you can use Get file content (from SharePoint or OneDrive) to read the file’s contents and then use that file for further processing.


     
    I hope this information helps! If it does, please consider giving a 👍.
    Best regards,
    S-Venkadesh

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Copilot Studio

#1
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 304 Super User 2025 Season 2

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 224 Super User 2025 Season 2

#3
Sam_Fawzi Profile Picture

Sam_Fawzi 78 Super User 2025 Season 2

Last 30 days Overall leaderboard