Use Power Platform Prompts in Copilot

Are you building Copilots or extending Microsoft Copilot with Microsoft Copilot Studio? Are you familiar with the recently released functionality in the Power Platform for custom AI prompts which I discussed in the last few days on my blog? If not, check out theā€¦ READ MORE [https://lewisdoes.dev
monitor screen with openai logo on black background
Photo by Andrew Neel on Pexels.com
In: Low Code Lewis Content šŸš€

Are you building Copilots or extending Microsoft Copilot with Microsoft Copilot Studio? Are you familiar with the recently released functionality in the Power Platform for custom AI prompts which I discussed in the last few days on my blog? If not, check out the post below before continuing, but then remember to come back here for some Copilot goodness!

How can we use AI prompts in Copilot Studio?

So you might be wonderingā€¦ how can we use AI prompts in Copilot Studio to build our own copilots and extend Microsoft Copilotā€¦ šŸ§

Well lets say thereā€™s a common topic that a copilot will be approached with, and you want to be able to have the copilot respond in a certain way which can be shaped with a more defined response than that of which the user might come up with. Letā€™s say you want to build a copilot that can write a poem. The user is bound to ask it anything like write a poem, or write a poem about X.

A more detailed prompt for this kind of scenario which we might use would be ā€œYou are a creative poet who should write a poem with four to five stanzas about [SUBJECT]ā€. This would get us something that the user might expect a little more, but they might not expect to have to prompt the LLM in this way.

This is where AI prompts come inā€¦

Reuse prompts over Power Platform & Copilot Studio

So check this out friendsā€¦ the cool thing here is that any of the prompts youā€™ve been building in Power Platform to use across your low-code applications, can also be used in Copilot Studio! Awesome!

So I have this Poet prompt that I made and now I want to use that in my copilot. Letā€™s give it a go and build it with Copilot Studio! šŸ„°

Using AI prompts in Copilot

So now Ā in Copilot Studio, I have a Copilot here and Iā€™m going to create a new topic for poems and add a bunch of different phrases that I think people might approach the copilot with when they want a poem writing for them.

Now I need to ensure I know what this poem will be about so Iā€™m going to have the copilot ask that question and store the subject in a variable.

From here I can add another action and this time Iā€™ll call a plugin. Select the option for ā€˜Add a plugin actionā€™.

From here, weā€™re now able to select the AI prompt we built and have been using across the Power Platform! šŸš€

Now the copilot will do something intelligent here. By default it will try to populate any inputs to the AI prompt that it can using things it identified in previous messages in the conversation. Or we can override the input value.

And itā€™s that simple! Now my users will be able to interact with my copilot and the copilot will utilise my AI prompt from Power Platform so that I ensure the LLM returns the response Iā€™m looking for based on me having provided a higher quality prompt!

If you didnā€™t already in the previous post on AI prompts in Power Platform, let me know what prompts youā€™ll be creating to use with Copilot Studio now below! ā¬‡ļø

Written by
Lewis Baybutt
Microsoft Business Applications MVP ā€¢ Power Platform Consultant ā€¢ Blogger ā€¢ Community Contributor ā€¢ #CommunityRocks ā€¢ #SharingIsCaring
Great! Youā€™ve successfully signed up.
Welcome back! You've successfully signed in.
You've successfully subscribed to LewisDoesDev.
Your link has expired.
Success! Check your email for magic link to sign-in.
Success! Your billing info has been updated.
Your billing was not updated.