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 / An error has occurred....
Copilot Studio
Suggested Answer

An error has occurred. Error code: AIModelActionBadRequest

(2) ShareShare
ReportReport
Posted on by 38
I have published an Agent with AI Prompt builder inside topic. The Agent is published in MS teams.
 
I have shared the Agent with other team members, the agent works for me in teams and also while  but not for my colleagues.
All of them are getting the error: "An error has occurred. Error code: AIModelActionBadRequest Conversation Id:xxxxxxx"
 
Can you please check?
 
Regards,
DC
I have the same question (0)
  • Suggested answer
    Nivedipa-MSFT Profile Picture
    Microsoft Employee on at
    Hello ,

    The agent with the AI Prompt functions for you but not for your colleagues, who receive an AIModelActionBadRequest error.

    Possible Cause: This is often due to missing permissions or a lack of AI Builder credits.

    Suggested Solutions:

    1. Assign AI Builder credits to your colleagues:
      • Go to Power Platform Admin Center → Resources → Capacity
      • Allocate credits to each user
    2. Ensure environment access:
      • Navigate to Environment settings → Users + permissions
      • Add colleagues as Basic User or Environment Maker
    3. Share the agent correctly:
      • Within Copilot Studio, go to Settings → Security
      • Add users directly rather than just sharing a link
    4. Check licenses:
      • Make sure colleagues have both Copilot Studio and AI Builder entitlements

    Testing: Ask colleagues to test in the Copilot Studio test pane. If it works there but not in Teams, the issue may be related to channel permissions.

    In most cases, the root of the problem is that AI Builder credits haven’t been allocated to your colleagues.

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

#1
Valantis Profile Picture

Valantis 277

#2
11manish Profile Picture

11manish 206

#3
sannavajjala87 Profile Picture

sannavajjala87 156 Super User 2026 Season 1

Last 30 days Overall leaderboard