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 / 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 Super User 2025 Season 2 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
    822 Super User 2025 Season 2 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

Forum hierarchy changes are complete!

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

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard