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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / Attach file to Copilot...
Copilot Studio
Answered

Attach file to Copilot's message

(0) ShareShare
ReportReport
Posted on by 2
Hi!
I am looking for ways to add images to the response of my Copilot. I know it is possible to post links to publicly available images, but in my case it won't work.
Ideally I would like to pull base64 content of an image via Power Automate and then post it in Teams chat as a file.
 
There is an option to add file to the message, but it requires a variable of type 'File'. I tried using JSON like below but it did not work (Variable is being set to an incorrect type. Assigned: String, expected: File). I also tried using a Record variable but with no luck...
Does anyone know how to create a variable of type 'File'?
 
Structure that did not work:

{
"fileName": "example.pdf",
"fileContent": "<Base64EncodedContentHere>"
}
 
Option for adding files:
 
 
Thanks,
Tim
I have the same question (1)
  • Verified answer
    Artur Stepniak Profile Picture
    1,539 Moderator on at
    Hello Tim,
     
    yes, that's a new feature, so I guess we need to wait a bit - it's not fully implemented as you cannot format the variable as File type.
     
    In case of any other questions, let me know. If the answer helped you, mark it, so that others can benefit from it.
     
    Best regards,
     
    Artur Stepniak
    Interested in GenAI? Visit my site!
  • PC-25031902-0 Profile Picture
    2 on at
    Hi, it's a bit disturbing, we have that feature available but there is no documentation nor tutorial about...

    I hope it is well released soon...

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

Forum hierarchy changes are complete!

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

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 372

#2
chiaraalina Profile Picture

chiaraalina 125 Super User 2026 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 98 Moderator

Last 30 days Overall leaderboard