Hello, I have created a copilot studio bot in the past without issues, but this is the first time I am creating a bot that utilizes the AI Plugin actions. I had an iteration of a competitive takeout bot for my company that used an ai plugin that I created which stopped working due to a plugin error which gave the following error:
"The plugin operation ‘msdynaib_ACTBotPrompt’ returned an HTTP error with code 400. Error code: AIPluginRequestFailure. Conversation ID: c9ea431f-836b-4d2f-9851-8414081535c0. Time (UTC): 4/17/2024 8:09:58 PM." during testing.
I couldn't find a fix and decided to create a new bot from scratch with a similar set up that was working fine during testing. The error came after I tried to publish the bot. Just to preface, my authentication is set to "No Authentication/Publicly available in any channel" so I assumed that it should be good and publicly available. So when I go to publish my bot, I am given mixed messages. For one, the details says, "Your published copilot is good to go.", but copilot studio also puts out a red banner at the top with the message: "We failed to publish your copilot. Try publishing again later. BotPublishUnknownError: The publish job failed for an unexpected reason." I have tried publishing it again within the last two days and I have seen the banner since every now and then. I tried testing the published bot on my development environment, but whenever I send a message to the bot, I am met with this message:
Can anyone please tell me what's going on if anyone has a clue? I am confused as to what to do next as publishing the bot again is not working. I have even tried making another bot from scratch and I am given the same message. If anyone can help, that would be greatly appreciated, thank you.
@Umianta I see, that's very helpful, thank you. Do you by any chance know of any ways that this prompting feature can be done in a different way that requires no Authentication, such as a skill maybe? Also do you know if the authentication using an OAuth would allow public users to use this functionality?
Hi @rtumaneng
Enabling authentication is necessary to utilize Chatbot with AI Plugins. Please refer to the guidance from Microsoft documentation provided below.
If my response has addressed your query, kindly mark your post as Solved.
If you found my response helpful or it provided you with a direction to proceed, please give it a Thumbs Up. Your Kudos are appreciated. You can accept multiple posts as solutions.
If you're still encountering any issues or challenges, please don't hesitate to inform me so I can assist you further. I'm here to help.
Cheers ,
Umesh Khandelwal
Hi @Umianta , The AI plugin and topic generates a response based on a prompt. This AI plugin feature can be seen under "Extend Microsoft Copilot" under "AI Plugins". From there you can "Add Power Platform component as an AI plugin" and choose the "Generate content or extract insights" and create the prompt. The topic responds normally in testing, and the prompt clearly works as it responds in the way that the prompt outlines. This is not the case when using it in deployment and gives me the error above.
Hi @rtumaneng ,
What exactly does the AI plugin do? There might be something wrong with either the AI plugin or the topic. Have you checked for errors using the topic checker to see if there are any issues?
Just to take notes, here are some things I've noticed:
In the Actions (Preview) tab, If I click on an action I created that uses the AI Plugin feature, I get a red banner at the top of the Action editor with the following message: "In order for the Copilot to use this plugin when deployed, be sure to configure authentication using Azure Active Directory".
I tried going into security again and testing out the "Authenticate Manually" option and the error message went away but the bot also asked me to log in, which ruins the point if it can't be used by public users. So it seems like it's the AI Plugin Action that's not available publicly. Is there a way for me to use this action without authentication?
Here's an image of the error and the set up of the AI plugin Action:
Michael E. Gernaey
169
Super User 2025 Season 2
Romain The Low-Code...
150
sandeep_angara
75
Super User 2025 Season 2