Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - AI Builder
Suggested answer

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

(0) ShareShare
ReportReport
Posted on by 2

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:
  • KevinGador Profile Picture
    647 Super User 2025 Season 1 on at
    Using Image or document input (preview) - How to pass input to this field from Power Automate
    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
  • Suggested answer
    DT-16020737-0 Profile Picture
    2 on at
    Using Image or document input (preview) - How to pass input to this field from Power Automate
    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".
     
     
  • Building with Why Profile Picture
    295 on at
    Using Image or document input (preview) - How to pass input to this field from Power Automate
    Please provide screenshots of the flow including the inputs for each step.

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1