Introduction to Microsoft Copilot: Adding a Prompt to a Topic
Hello Guys,
In our previous blog, we learnt how we can send response back to power automate flow. Today we will see how to create Prompt for your Agent and how to use Prompt as tool.
Do follow us to know more about Dynamics and Power Platform. Also if you like our blog then please comment and share this blog with your friends.
As you can see, we have already created our agent Ravish, as shown below.
We have also added the Trip table as a knowledge source for the agent.
Adding a Prompt as a Tool
Now, navigate to the Tools tab.
Click Add Tool and select Prompt.
Configure the prompt as shown below.
As you can see, we have added PromptTripID as an input variable. To add an input variable, simply type `/` and select Input. Similarly, you can use the `/` option to add knowledge to the prompt.
Once the prompt is configured, click Add and Configure.
Adding the Prompt to a Topic
Now, open the Topic where you want to use the prompt.
Click the + icon, select Add a Tool, and then select the prompt tool that we created earlier, as shown Above. Click Set Value to assign a value to the prompt's input variable.
Once the prompt is added, it will automatically generate predictionOutput, as shown above. This represents the output returned by the prompt.
Now, click the + icon and add the prompt output to the Message so that it can be returned as the topic's response.
Finally, click the + icon and select End Conversation to end the topic.
Testing the Prompt
Our prompt is now configured and integrated into the topic. Save the topic and publish the changes.
Now, run the Power Automate flow. The flow will execute the agent and return the Trip details in JSON format.
Hope it helps...

Comments
Post a Comment