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 / Invalid Input Paramete...
Power Automate
Suggested Answer

Invalid Input Parameters for AI Builder "Run_a_prompt" Action

(0) ShareShare
ReportReport
Posted on by
Hi everyone,

I’m building a Power Automate flow that processes email attachments and sends images to the AI Builder "Run_a_prompt" action. I get the message "Input parameters are invalid for your model" when the flow reaches the "Run_a_prompt" action inside the "For_each" loop.
 
I think the problem is with how I’m passing the image. Has anyone solved this before? What is the correct way to send an image to this action?

I successfully tested out saving the image to my OneDrive with  
base64ToBinary(items('For_each')?['contentBytes'])
 
Thank you!
Categories:
I have the same question (0)
  • Suggested answer
    Sam_Fawzi Profile Picture
    917 Super User 2026 Season 1 on at
     
    You can try passing the entire body output from the “Get file content” action directly into the Run a prompt input instead of just the contentBytes.
    The AI Builder prompt expects file/binary content, not a base64 string. Since Get file content already returns the file in the correct format, mapping the Body of that action to the prompt’s Image/Document input often resolves the “Input parameters are invalid for your model” error.
     

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
Valantis Profile Picture

Valantis 377

#2
11manish Profile Picture

11manish 279

#3
David_MA Profile Picture

David_MA 234 Super User 2026 Season 1

Last 30 days Overall leaderboard