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 / Copilot Studio / Erro de AIModelActionB...
Copilot Studio
Suggested Answer

Erro de AIModelActionBadRequest

(0) ShareShare
ReportReport
Posted on by 3

Erro recorrente AIModelActionBadRequest bloqueando respostas do bot – BR | Agente KICS AI (Copilot Studio / Teams)


📝 Descrição do problema

Estamos enfrentando um erro recorrente no BR – Agente KICS AI, desenvolvido em Microsoft Copilot Studio e utilizado via Microsoft Teams e Web, que impede o bot de responder aos usuários.

Durante a conversa, o bot retorna a seguinte mensagem e fica impossibilitado de continuar a interação:

“O bot não pode falar por um tempo. Isso é algo que o proprietário do bot precisa resolver.
Código do erro: AIModelActionBadRequest.”

O erro ocorre durante a execução de uma ação de IA (prompt / AI Builder / modelo generativo) dentro do fluxo do agente, fazendo com que a conversa entre em estado de erro e seja bloqueada.


⚠️ Detalhes do erro

  • Código do erro: AIModelActionBadRequest
  • Canal: Microsoft Teams e Web
  • Comportamento observado:
    • O bot deixa de responder imediatamente após o erro
    • A conversa fica bloqueada e não se recupera
    • O erro persiste mesmo após nova tentativa na mesma conversa

Exemplos de ocorrências:

  • Conversation ID: 9fa1fd12-80c1-47d2-b75c-a08924b77de6
  • Horário (UTC): 15/04/2026 17:41:59

(O erro já ocorreu em outros momentos e com diferentes Conversation IDs, indicando recorrência/intermitência.)


🔍 Impacto

  • Impede testes funcionais e validação do agente
  • Afeta usuários de forma intermitente (não ocorre apenas com o owner)
  • Bloqueia avanço seguro para produção
  • Não pode ser corrigido pelo usuário final

🧠 Contexto técnico

  • Agente criado em Microsoft Copilot Studio
  • Utiliza ações de IA / prompts para análise e extração de dados
  • O erro ocorre durante a execução do prompt, e não durante publicação ou carregamento inicial
  • Em alguns cenários, o agente funciona para determinados usuários e falha para outros no mesmo ambiente

Ações já realizadas (Troubleshooting)

Antes da abertura deste chamado, as seguintes ações foram executadas:

  • ✅ Testes do agente:
    • No Microsoft Teams
    • No Web
  • ✅ Testes com diferentes usuários (incluindo owner e não-owners do bot)
  • ✅ Reinstalação do Microsoft Teams
  • ✅ Limpeza de cache e troca de navegador
  • ✅ Nova publicação do agente no Copilot Studio
  • ✅ Revisão do fluxo do agente e dos tópicos envolvidos
  • ✅ Validação das entradas utilizadas pelos prompts de IA
  • ✅ Ajustes e testes em permissões/autorização de acesso
  • ✅ Reexecução de testes após ajustes técnicos no fluxo
  • ✅ Verificação de que o erro ocorre independentemente do canal (Teams x Web)

Apesar dessas ações, o erro continua ocorrendo de forma intermitente, e a conversa entra em estado bloqueado sempre que o AIModelActionBadRequest é disparado.

➡️ Conclusão: o problema não é resolvível localmente e exige análise do serviço de IA / Copilot Studio por parte da Microsoft.


📣 Solicitação à Microsoft

Solicitamos apoio para:

  1. Analisar os logs da ação de IA associada às Conversation IDs informadas
  2. Identificar a causa raiz do erro AIModelActionBadRequest no contexto do Copilot Studio
  3. Verificar possíveis:
    • falhas/intermitências no AI Builder ou Azure OpenAI
    • limitações de payload
    • problemas de capacidade/licenciamento
    • bugs conhecidos relacionados a ações de IA em conversas
  4. Orientar sobre correção definitiva ou workaround suportado, evitando o bloqueio total da conversa
I have the same question (0)
  • Suggested answer
    Sunil Kumar Pashikanti Profile Picture
    1,713 Moderator on at
     
    AIModelActionBadRequest means Copilot Studio sent a request to the AI service that was rejected.

    When this happens, the conversation becomes blocked and cannot recover.
    This is usually caused by invalid or large prompt inputs, token limits, or intermittent Azure OpenAI or AI Builder issues. It is not related to Teams, browser, or user permissions.

    Validate all prompt inputs, reduce prompt size, add defensive checks, and avoid relying on AI actions as the only execution path. If the issue is intermittent with valid inputs, it requires Microsoft service investigation.
     
    This issue cannot always be resolved locally.
    If the error is intermittent and input validation is correct, this usually requires Microsoft service investigation, as it can be related to:
         Azure OpenAI backend
         AI Builder execution layer
         Temporary regional service instability
     
    ✅ If this answer helped resolve your issue, please mark it as Accepted so it can help others with the same problem.
    👍 Feel free to Like the post if you found it useful.
  • Suggested answer
    11manish Profile Picture
    1,366 on at
    It seems that the error occurs because:
    • The AI action is receiving an invalid or oversized request
    • There is no error handling, so the conversation gets blocked
    Need to look below:
    • Add fallback handling
    • Reduce prompt size
    • Validate inputs before AI call
  • Suggested answer
    Valantis Profile Picture
    3,406 on at
     
    Based on confirmed cases of AIModelActionBadRequest in Copilot Studio, the two most likely root causes are:
    1. A required prompt input parameter is blank or null at runtime. This is the most common cause and explains intermittent behavior  the parameter has a value in some conversation flows but not others. The error message in the full logs typically reads: "The parameter with name '[parameter name]' is required to call the prompt but its value is blank."
    2. The prompt execution timed out (exceeds 100 seconds). Less likely given the description but worth ruling out.
    Given that the error is intermittent and affects some users but not others in the same environment, cause 1 is the strongest candidate. The prompt action is probably receiving an empty variable in certain paths through the topic.
    To investigate:
    - Open the Activity map for a failed conversation in Copilot Studio (Activity tab > select a failed session)
    - Look at the full error detail on the prompt node  the complete error message should include the specific parameter name that was blank
    - Trace back where that parameter gets its value in the topic flow and identify which path leads to it being empty
    To fix:
    - Add a Condition before the prompt action that checks if the required input variable is not blank before calling the prompt
    - If blank, redirect to a fallback message instead of calling the prompt with an empty value
    - This prevents the error from blocking the conversation entirely
    Can you share the full error message from the Activity map for one of the failed conversation IDs? The parameter name in the error will tell us exactly which input is not being populated.
     
     

     

    Best regards,

    Valantis

     

    ✅ If this helped solve your issue, please Accept as Solution so others can find it quickly.

    ❤️ If it didn’t fully solve it but was still useful, please click “Yes” on “Was this reply helpful?” or leave a Like :).

    🏷️ For follow-ups  @Valantis.

    📝 https://valantisond365.com/

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Copilot Studio

#1
Valantis Profile Picture

Valantis 618

#2
Haque Profile Picture

Haque 147

#3
Vish WR Profile Picture

Vish WR 140

Last 30 days Overall leaderboard