{"id":36983,"date":"2024-01-08T11:48:50","date_gmt":"2024-01-08T06:18:50","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=36983"},"modified":"2024-01-08T11:48:50","modified_gmt":"2024-01-08T06:18:50","slug":"exploring-ai-prompts-within-power-automate","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2024\/01\/exploring-ai-prompts-within-power-automate\/","title":{"rendered":"Exploring AI Prompts within Power Automate"},"content":{"rendered":"<p>As generative<a href=\"https:\/\/www.inogic.com\/services\/microsoft-power-platform\/microsoft-ai-builder\/\" target=\"_blank\" rel=\"noopener\"> AI builder<\/a> tools are becoming more and more popular, it is worth learning and using them to get the most out of them. One of the exciting features among AI builder tools is \u201cAI Prompts\u201d which are now generally available. AI prompts are used as a guide for AI models to generate the output.<\/p>\n<p><em>If you compare AI prompts to the early days of search engines correct \u201cKeywords\u201d is the key to search precisely. If you put correct keywords while searching then you will get more accurate results based on entered keywords, the more your keywords are precise higher the chances that you will get the exact result based on keyword search. <\/em><\/p>\n<p>This same art goes with AI prompts as well, the more you spend time creating an accurate AI prompt with precise instructions higher the chances that the corresponding AI model will generate the specific output more accurately.<\/p>\n<p>Creating the right prompt for a specific task is an art and essential for GPT to perform the instructed tasks more accurately. To create custom prompts efficiently, refer to this Microsoft <a href=\"https:\/\/learn.microsoft.com\/en-us\/azure\/ai-services\/openai\/concepts\/prompt-engineering\" target=\"_blank\" rel=\"noopener\">doc<\/a>.<\/p>\n<p>In this blog, we will explore one of the existing AI prompts. how we can use that existing prompt in integration with <a href=\"https:\/\/www.inogic.com\/services\/microsoft-power-platform\/microsoft-power-automate\/\" target=\"_blank\" rel=\"noopener\">Power Automate<\/a>, and validate its results.<\/p>\n<p><em>Let\u2019s begin&#8230;!<\/em><\/p>\n<p>From the M<a href=\"https:\/\/make.powerapps.com\/\">aker Portal<\/a>\u00a0 <a href=\"https:\/\/make.powerapps.com\/\" target=\"_blank\" rel=\"noopener\">https:\/\/make.powerapps.com\/<\/a>, you can navigate to AI prompts, as part of the new AI Hub you will now have access to AI Prompts builder. There are 3 tabs available for navigation within \u201cAI Prompts\u201d:<\/p>\n<ol>\n<li>My Prompts- If you create any custom prompt as per your need it will appear here.<\/li>\n<li>Shared with me- If any other user shares the prompt with you then it will appear here.<\/li>\n<li>All prompts- All the prompts that are present in the system will appear here.<\/li>\n<\/ol>\n<p>For this blog demonstration, let us select \u201cAll prompts\u201d, explore pre-built\/existing prompts available, and learn how to integrate them with other Power Platform components.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36995\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/1Exploring-AI-Prompts-within-Power-Automate.jpeg\" alt=\"Exploring AI Prompts within Power Automate\" width=\"1423\" height=\"765\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/1Exploring-AI-Prompts-within-Power-Automate.jpeg 1423w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/1Exploring-AI-Prompts-within-Power-Automate-300x161.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/1Exploring-AI-Prompts-within-Power-Automate-1024x550.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/1Exploring-AI-Prompts-within-Power-Automate-768x413.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/1Exploring-AI-Prompts-within-Power-Automate-660x355.jpeg 660w\" sizes=\"(max-width: 1423px) 100vw, 1423px\" \/><\/p>\n<p><strong>NOTE<\/strong>: If you are not able to see \u201cAI Prompts\u201d in the left navigation pane of Power Apps then click on \u201cDiscover\u201d and search for the same and pin it for quick navigation. You can refer to this <a href=\"https:\/\/www.inogic.com\/blog\/2023\/03\/enhanced-ui-for-improved-new-user-experience-while-using-power-apps\/\">blog<\/a> to discover all your power apps that are not pinned in the first place.<\/p>\n<p>You can look for existing prompts in the \u201cAll Prompts\u201d tab as shown below:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36994\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/2Exploring-AI-Prompts-within-Power-Automate.jpeg\" alt=\"Exploring AI Prompts within Power Automate\" width=\"1409\" height=\"785\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/2Exploring-AI-Prompts-within-Power-Automate.jpeg 1409w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/2Exploring-AI-Prompts-within-Power-Automate-300x167.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/2Exploring-AI-Prompts-within-Power-Automate-1024x571.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/2Exploring-AI-Prompts-within-Power-Automate-768x428.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/2Exploring-AI-Prompts-within-Power-Automate-660x368.jpeg 660w\" sizes=\"(max-width: 1409px) 100vw, 1409px\" \/><\/p>\n<p>In this blog demonstration, let us use the \u201cAI Sentiment\u201d prompt in Power Automate and see the result, before that you can quickly open the prompt body and can quickly test the prompt with some inputs\/sample values. And once you are happy with the testing you can use this prompt in the Power Automate.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36993\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/3Exploring-AI-Prompts-within-Power-Automate.jpeg\" alt=\"Exploring AI Prompts within Power Automate\" width=\"1421\" height=\"811\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/3Exploring-AI-Prompts-within-Power-Automate.jpeg 1421w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/3Exploring-AI-Prompts-within-Power-Automate-300x171.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/3Exploring-AI-Prompts-within-Power-Automate-1024x584.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/3Exploring-AI-Prompts-within-Power-Automate-768x438.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/3Exploring-AI-Prompts-within-Power-Automate-660x377.jpeg 660w\" sizes=\"(max-width: 1421px) 100vw, 1421px\" \/><\/p>\n<p>I have added sample data for testing as: \u201cI am satisfied with your service\u201d<\/p>\n<p>Click on \u201cTest prompt\u201d and you will find the corresponding \u201cAI Response\u201d generated as shown below:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36992\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/4Exploring-AI-Prompts-within-Power-Automate.jpeg\" alt=\"Exploring AI Prompts within Power Automate\" width=\"1419\" height=\"789\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/4Exploring-AI-Prompts-within-Power-Automate.jpeg 1419w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/4Exploring-AI-Prompts-within-Power-Automate-300x167.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/4Exploring-AI-Prompts-within-Power-Automate-1024x569.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/4Exploring-AI-Prompts-within-Power-Automate-768x427.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/4Exploring-AI-Prompts-within-Power-Automate-660x367.jpeg 660w\" sizes=\"(max-width: 1419px) 100vw, 1419px\" \/><\/p>\n<p><strong>Use Case<\/strong>: Need a Power Automate that takes input from customers by any means like email or survey response, validates that text through AI prompt and as an output, it should validate the input text whether sentiment is positive, negative, or neutral.<\/p>\n<p><strong>Power Automate Steps:<\/strong><\/p>\n<p>For simplicity let us select the \u201cManually Trigger a flow\u201d trigger and pass text as input.<\/p>\n<p>Then add an action from the AI Builder connector named \u201cCreate text with GPT using a prompt (Preview)\u201d as shown below:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36991\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/5Exploring-AI-Prompts-within-Power-Automate.jpeg\" alt=\"Exploring AI Prompts within Power Automate\" width=\"1027\" height=\"819\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/5Exploring-AI-Prompts-within-Power-Automate.jpeg 1027w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/5Exploring-AI-Prompts-within-Power-Automate-300x239.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/5Exploring-AI-Prompts-within-Power-Automate-1024x817.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/5Exploring-AI-Prompts-within-Power-Automate-768x612.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/5Exploring-AI-Prompts-within-Power-Automate-660x526.jpeg 660w\" sizes=\"(max-width: 1027px) 100vw, 1027px\" \/><\/p>\n<p><strong>NOTE<\/strong>: There was <strong>Create text with GPT<\/strong>\u00a0connector available prior, which is deprecated now and replaced with this new connector\u00a0<strong>Create text using a prompt<\/strong>\u00a0where you have to select the prompt.<\/p>\n<p>Under this action now select the name of the prompt from the dropdown menu, I selected \u201cAI Sentiment\u201d<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-36990 aligncenter\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/6Exploring-AI-Prompts-within-Power-Automate.jpeg\" alt=\"Exploring AI Prompts within Power Automate\" width=\"527\" height=\"549\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/6Exploring-AI-Prompts-within-Power-Automate.jpeg 527w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/6Exploring-AI-Prompts-within-Power-Automate-288x300.jpeg 288w\" sizes=\"(max-width: 527px) 100vw, 527px\" \/><\/p>\n<p>Now select the<strong> Input<\/strong>\u00a0Text from the Dynamic content list from the previous step<\/p>\n<p><img decoding=\"async\" class=\"alignnone wp-image-36989\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/7Exploring-AI-Prompts-within-Power-Automate.jpeg\" alt=\"Exploring AI Prompts within Power Automate\" width=\"1114\" height=\"763\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/7Exploring-AI-Prompts-within-Power-Automate.jpeg 1007w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/7Exploring-AI-Prompts-within-Power-Automate-300x205.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/7Exploring-AI-Prompts-within-Power-Automate-768x525.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/7Exploring-AI-Prompts-within-Power-Automate-660x452.jpeg 660w\" sizes=\"(max-width: 1114px) 100vw, 1114px\" \/><\/p>\n<p>Once you save the Flow you will see the warning appearing at the top<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36988\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/8Exploring-AI-Prompts-within-Power-Automate-ink.jpeg\" alt=\"Exploring AI Prompts within Power Automate\" width=\"1439\" height=\"657\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/8Exploring-AI-Prompts-within-Power-Automate-ink.jpeg 1439w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/8Exploring-AI-Prompts-within-Power-Automate-ink-300x137.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/8Exploring-AI-Prompts-within-Power-Automate-ink-1024x468.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/8Exploring-AI-Prompts-within-Power-Automate-ink-768x351.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/8Exploring-AI-Prompts-within-Power-Automate-ink-660x301.jpeg 660w\" sizes=\"(max-width: 1439px) 100vw, 1439px\" \/><\/p>\n<p><strong>NOTE<\/strong>: The warning above prompted to add approval action before the GPT model output is passed to the next step. Optionally you can add Approval action this is not a mandatory step but it\u2019s good to have a reviewing step where a human intervention can be included as a quick review to validate the output generated by the GPT model. To add the Approval step, you can refer to the Microsoft <a href=\"https:\/\/learn.microsoft.com\/en-us\/ai-builder\/azure-openai-model-pauto\">doc<\/a> where detailed steps are mentioned.<\/p>\n<p>For now, I am skipping the Approval process and letting us straight away send the GPT model output as is (without human review) to the Outlook email body as explained below.<\/p>\n<p>The\u00a0output generated from the previous step <strong>Create text with GPT using a prompt<\/strong> can be passed to the next step as an output parameter, it generates a flow variable called\u00a0<strong>Text<\/strong>, which represents the output of your prompt generated by the GPT model. I am passing that output in the email body<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36987\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/9Exploring-AI-Prompts-within-Power-Automate.jpeg\" alt=\"Exploring AI Prompts within Power Automate\" width=\"1423\" height=\"759\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/9Exploring-AI-Prompts-within-Power-Automate.jpeg 1423w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/9Exploring-AI-Prompts-within-Power-Automate-300x160.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/9Exploring-AI-Prompts-within-Power-Automate-1024x546.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/9Exploring-AI-Prompts-within-Power-Automate-768x410.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/9Exploring-AI-Prompts-within-Power-Automate-660x352.jpeg 660w\" sizes=\"(max-width: 1423px) 100vw, 1423px\" \/><\/p>\n<p>Once done save the Flow and this is how it will look like:<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-36986 aligncenter\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/10Exploring-AI-Prompts-within-Power-Automate.jpeg\" alt=\"Exploring AI Prompts within Power Automate\" width=\"485\" height=\"613\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/10Exploring-AI-Prompts-within-Power-Automate.jpeg 485w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/10Exploring-AI-Prompts-within-Power-Automate-237x300.jpeg 237w\" sizes=\"(max-width: 485px) 100vw, 485px\" \/><\/p>\n<p>Run the Flow manually and provide the input as below and click on \u201cRun flow\u201d:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-36985\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/11Exploring-AI-Prompts-within-Power-Automate.jpeg\" alt=\"Exploring AI Prompts within Power Automate\" width=\"1429\" height=\"811\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/11Exploring-AI-Prompts-within-Power-Automate.jpeg 1429w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/11Exploring-AI-Prompts-within-Power-Automate-300x170.jpeg 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/11Exploring-AI-Prompts-within-Power-Automate-1024x581.jpeg 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/11Exploring-AI-Prompts-within-Power-Automate-768x436.jpeg 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/11Exploring-AI-Prompts-within-Power-Automate-660x375.jpeg 660w\" sizes=\"(max-width: 1429px) 100vw, 1429px\" \/><\/p>\n<p>Upon clicking on \u201cRun Flow\u201d an email should be received with the generated AI response as shown below:<\/p>\n<p><img decoding=\"async\" class=\"size-full wp-image-36984 aligncenter\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/12Exploring-AI-Prompts-within-Power-Automate.jpeg\" alt=\"Exploring AI Prompts within Power Automate\" width=\"541\" height=\"259\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/12Exploring-AI-Prompts-within-Power-Automate.jpeg 541w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/01\/12Exploring-AI-Prompts-within-Power-Automate-300x144.jpeg 300w\" sizes=\"(max-width: 541px) 100vw, 541px\" \/><\/p>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p>With AI Prompts, you can tailor Generative AI capabilities as per your organization&#8217;s business needs and achieve greater productivity when integrated into Power Automate.<\/p>\n<p><a href=\"https:\/\/bit.ly\/3vaUl2p\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"alignnone  wp-image-36891\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/12\/Microsoft-Power-Platform.gif\" alt=\"Microsoft Power Platform\" width=\"1112\" height=\"278\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>As generative AI builder tools are becoming more and more popular, it is worth learning and using them to get the most out of them. One of the exciting features among AI builder tools is \u201cAI Prompts\u201d which are now generally available. AI prompts are used as a guide for AI models to generate the\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2024\/01\/exploring-ai-prompts-within-power-automate\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":11,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[1985],"tags":[2818,1975],"class_list":["post-36983","post","type-post","status-publish","format-standard","hentry","category-power-automate","tag-ai-prompts","tag-power-automate"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/36983","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/users\/11"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=36983"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/36983\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=36983"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=36983"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=36983"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}