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 / Power Automate / Using Image or documen...
Power Automate
Suggested Answer

Using Image or document input (preview) - How to pass input to this field from Power Automate

(0) ShareShare
ReportReport
Posted on by 4

I have setup an AI prompt in AI Builder using input from the new feature "Image or document input (preview)". I have uploaded a PDF file as required for testing. I am now trying to use Power Automate "Get text from GPT" action to pass the same PDF as input to the AI Prompt. However, it always return error as below when I run the Power Automate. Does anyone know who to properly pass the same PDF used in the AI Builder AI prompt using the Power Automate? I have tried using Get file content to read the PDF, followed by converting to base64 but this did not solve the problem. Any suggestion would be greatly appreciated.

"message": "{\"operationStatus\":\"Error\",\"error\":{\"type\":\"Error\",\"code\":\"InvalidPredictionInput\",\"message\":\"Unable to identify the mimetype input\",\"properties\":{\"BackendErrorCode\":\"InvalidInferenceInput\",\"DependencyHttpStatusCode\":\"400\"},\"innerErrors\":[{\"scope\":\"Record\",\"target\":null,\"code\":\"InvalidRecord\",\"type\":\"Error\",\"properties\":{\"MlIssueCode\":\"InvalidRecord\"}}]},\"predictionId\":null}"

Categories:
I have the same question (0)
  • Building with Why Profile Picture
    351 Moderator on at
    Please provide screenshots of the flow including the inputs for each step.
  • Suggested answer
    DT-16020737-0 Profile Picture
    4 on at
    Thank you for reaching out. I have found the answer.
    Just use a Get File Content action and indicate the content as PDF before passing it to the "Get text from GPT".
     
     
  • KevinGador Profile Picture
    836 Moderator on at
    what get file content action did you use? Its somehow confusing because in the question youve stated
    " I have tried using Get file content to read the PDF, followed by converting to base64 but this did not solve the problem. "

    I am also facing the same problem

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 > Power Automate

#1
Vish WR Profile Picture

Vish WR 382

#2
Valantis Profile Picture

Valantis 370

#3
David_MA Profile Picture

David_MA 300 Super User 2026 Season 1

Last 30 days Overall leaderboard