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! ā¬ļø