Skip to main content

Notifications

Copilot Studio - Topic Creation & Management
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
Categories:
  • Verified answer
    Artur Stepniak Profile Picture
    Artur Stepniak 1,352 on at
    Attach file to Copilot's message
    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!

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,434

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,722

Leaderboard

Featured topics