Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Copilot Studio - Calling Actions from Copilot S...
Suggested answer

Error 400 when using an AI-builder prompt with a PDF document in Microsoft Copilot

(4) ShareShare
ReportReport
Posted on by 24

Hi,

I am trying to use an AI-builder prompt in a section of a Microsoft Copilot agent.

In this prompt, one of the inputs is a PDF document. I tested the prompt with the document in question, and it works.

However, when I test the section, I get an error message:



Error Message: The prompt 'analyze document' ('227b2625-3b3c-47ec-ad6b-a33d0211b211') failed to execute with response code '400'.

Error Code: AIModelActionBadRequest

Conversation ID: f8daea17-3460-4f8c-b5b1-7e795c42ec11

Time (UTC): 2024-12-11T16:00:15.157Z

 

I encounter this error regardless of how I try to submit the document (e.g., dropping it into the chat, using get_file_content in SharePoint...).

Could you please help me?

 

Thank you in advance."

Categories:
  • craigthompson24 Profile Picture
    21 on at
    Error 400 when using an AI-builder prompt with a PDF document in Microsoft Copilot
    Getting this same issue, the prompt works when using the prompt builder testing pane, but now when using the Copilot Studio testing pane.
  • VR-08032128-0 Profile Picture
    2 on at
    Error 400 when using an AI-builder prompt with a PDF document in Microsoft Copilot
    Any updates on this? Running into the same issue...
  • VC-25090824-0 Profile Picture
    24 on at
    Error 400 when using an AI-builder prompt with a PDF document in Microsoft Copilot
    Hi @fchopo,

    some news ?
  • VC-25090824-0 Profile Picture
    24 on at
    Error 400 when using an AI-builder prompt with a PDF document in Microsoft Copilot
     
    did you manage to submit a support to Microsoft ? It still doesn't work...
     
  • Suggested answer
    Vinoth Selvam Profile Picture
    1,560 Super User 2025 Season 1 on at
    Error 400 when using an AI-builder prompt with a PDF document in Microsoft Copilot
     
    In dev Environment (or) trial instance, we have experienced this issue multiple times.
     
    This is because there is some restrictions in using the AI builder. If you have done testing few times, then the response from AI builder will not be available. 
    It will be available after certain hours or the next day only.
     
    Please note that, i have'nt used Document analysis , but for some other similar requirement.
     
    Thanks.
    For Copilot studio technical blogs: Visit my Site
     
  • DH-20121553-0 Profile Picture
    2 on at
    Error 400 when using an AI-builder prompt with a PDF document in Microsoft Copilot
    Hi, I have the same problem with a agent, so do you resolved the problem?
  • fchopo Profile Picture
    7,968 Super User 2025 Season 1 on at
    Error 400 when using an AI-builder prompt with a PDF document in Microsoft Copilot
    Hi,
    I tried the same in my developer environment and I get the same result. So it seems we found a bug ;)
     
    I'll try to submit a support request to MS to solve it!
     
    Ferran
     
     
  • VC-25090824-0 Profile Picture
    24 on at
    Error 400 when using an AI-builder prompt with a PDF document in Microsoft Copilot
    hi @fchopo,
    thanks for your reply, 
    I've edited the post to include the screenshots.
    Yes, that's exactly what I want to do. Uploading the document in the conversation seems to work, but the prompt doesn't work (only in the conversation, not when I test it)
  • fchopo Profile Picture
    7,968 Super User 2025 Season 1 on at
    Error 400 when using an AI-builder prompt with a PDF document in Microsoft Copilot
    Hello,
     
    If I understand correctly, you want to upload a PDF file in an agent, and use AI Builder to analyze it, right? Upload files to a conversation is a new feature, so not sure if you can use it in AI Builder yet.
     
    Screenshots you shared seem not be available :(, so could you provide more detail on that?
     
    Thanks
    Ferran
     
     
     

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 > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 169 Super User 2025 Season 1

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 150

#3
sandeep_angara Profile Picture

sandeep_angara 75

Featured topics