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 / Agent with Code Interp...
Copilot Studio
Suggested Answer

Agent with Code Interpretor on is not writing files when published to M365 copilot

(0) ShareShare
ReportReport
Posted on by
I have created a simple Agent in the full copilot studio that can answer questions and write files as an output. When it's published, the file output functionality in m365 copilot never give me the file as a link to down load the file, it just stays as pure text for the file name. When published to Teams, a card pops up asking for permission to upload the file output to OneDrive and it works fine. 
 
This is all very basic default settings. How do I ensure my Agent can successfully provid the file output generated from code interpretor with a download file link.
 
Note: the generic chat and agents created in m365 copilot studio lite provide the file as a downloadable link just fine.
 
thanks,
yuying
Copilot agent no ...

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

Categories:
I have the same question (0)
  • Suggested answer
    Prasad-MSFT Profile Picture
    Microsoft Employee on at
    To get a download link in full Copilot Studio agents (especially in M365 Copilot), you must explicitly upload the file to OneDrive (or another storage) and return the share link in your agent’s response. This is not automatic as it is in the Lite/generic chat experience.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 277

#2
11manish Profile Picture

11manish 206

#3
sannavajjala87 Profile Picture

sannavajjala87 156 Super User 2026 Season 1

Last 30 days Overall leaderboard