{"id":37953,"date":"2024-04-25T15:04:49","date_gmt":"2024-04-25T09:34:49","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=37953"},"modified":"2024-04-25T15:04:49","modified_gmt":"2024-04-25T09:34:49","slug":"understanding-key-phrase-extraction-in-power-automate-for-text-analysis","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2024\/04\/understanding-key-phrase-extraction-in-power-automate-for-text-analysis\/","title":{"rendered":"Understanding Key Phrase Extraction in Power Automate for Text Analysis"},"content":{"rendered":"<p style=\"text-align: justify;\">The key phrase extraction model identifies the main topics in a text document. For example, if you have a sentence like &#8220;The movie was entertaining and the acting was impressive!&#8221;, the model would extract key phrases such as &#8220;movie&#8221;, &#8220;entertaining&#8221;, and &#8220;acting&#8221;. This model helps to identify and list important themes or subjects from unstructured text.<\/p>\n<p style=\"text-align: justify;\">To utilize this prebuilt model within Power Automate, refer to the documentation titled &#8220;<a href=\"https:\/\/learn.microsoft.com\/en-us\/ai-builder\/flow-key-phrase-extraction\" target=\"_blank\" rel=\"noopener\">Using the Key Phrase Extraction Prebuilt Model in Power Automate<\/a>&#8221; for detailed instructions and guidance on implementation.<\/p>\n<p style=\"text-align: justify;\"><strong><em><u>Note: The format for data input is limited to a maximum of 5,120 characters per document when using the key phrase extraction prebuilt model.<\/u><\/em><\/strong><\/p>\n<h2 style=\"text-align: left;\"><strong>Use Case: Extracting Key Phrases from Email for Meeting Preparation<\/strong><\/h2>\n<h3 style=\"text-align: justify;\"><strong>Scenario:<\/strong><\/h3>\n<p style=\"text-align: justify;\">You have sent an email to a client detailing your product features that can fulfill their requirements. Now, you want to automatically extract key phrases from that email and store them in a spreadsheet to prepare for an upcoming meeting or call with the client.<\/p>\n<h3 style=\"text-align: justify;\"><strong>Solution Overview:<\/strong><\/h3>\n<p style=\"text-align: justify;\">When the client responds to your email or when you manually trigger the process, Power Automate will retrieve the email content, extract key phrases using AI Builder&#8217;s Key Phrase Extraction model, and then update a spreadsheet with the extracted key phrases for easy reference during the scheduled meeting or call.<\/p>\n<p style=\"text-align: justify;\">Let&#8217;s explore how we can implement this functionality using <a href=\"https:\/\/www.inogic.com\/services\/microsoft-power-platform\/microsoft-power-automate\/\" target=\"_blank\" rel=\"noopener\">Power Automate<\/a>.<\/p>\n<p style=\"text-align: justify;\">To trigger the Power Automate flow when a new email message record is created in Microsoft Dynamics 365 CRM, set the change type to &#8216;added&#8217;, the table name to &#8217;email message&#8217;, and configure the scope at the &#8216;organization&#8217; level based on your specific needs.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"alignnone size-full wp-image-37954\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-1.png\" alt=\"Key Phrase Extraction in Power Automate for Text Analysis \" width=\"1919\" height=\"870\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-1.png 1919w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-1-300x136.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-1-1024x464.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-1-768x348.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-1-1536x696.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-1-660x299.png 660w\" sizes=\"(max-width: 1919px) 100vw, 1919px\" \/><\/p>\n<p style=\"text-align: justify;\">Next, we&#8217;ll incorporate the Key Phrase Extraction prebuilt model in our flow to extract key phrases from the email. We&#8217;ll map the email message description to the text field of the Key Phrase model for analysis.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"alignnone size-full wp-image-37955\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-2.png\" alt=\"Key Phrase Extraction in Power Automate for Text Analysis \" width=\"1919\" height=\"871\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-2.png 1919w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-2-300x136.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-2-1024x465.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-2-768x349.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-2-1536x697.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-2-660x300.png 660w\" sizes=\"(max-width: 1919px) 100vw, 1919px\" \/><\/p>\n<p style=\"text-align: justify;\">To store the extracted key phrases along with email details in an Excel sheet using the &#8220;Excel Online (Business)&#8221; connector, I&#8217;m creating a table with columns for Subject, Description, and Key Phrases.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"alignnone size-full wp-image-37956\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-3.png\" alt=\"Key Phrase Extraction in Power Automate for Text Analysis \" width=\"1917\" height=\"873\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-3.png 1917w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-3-300x137.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-3-1024x466.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-3-768x350.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-3-1536x699.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-3-660x301.png 660w\" sizes=\"(max-width: 1917px) 100vw, 1917px\" \/><\/p>\n<p style=\"text-align: justify;\">Now that the table is set up, we&#8217;ll proceed to add it as the next action in our flow and map the fields accordingly to populate the Excel sheet with the email subject, description, and extracted key phrases.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"alignnone size-full wp-image-37957\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-4.png\" alt=\"Key Phrase Extraction in Power Automate for Text Analysis \" width=\"1919\" height=\"875\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-4.png 1919w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-4-300x137.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-4-1024x467.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-4-768x350.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-4-1536x700.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-4-660x301.png 660w\" sizes=\"(max-width: 1919px) 100vw, 1919px\" \/><\/p>\n<p style=\"text-align: justify;\">Upon adding this action, Power Automate will automatically incorporate a &#8220;For Each&#8221; loop in the flow, which will iterate through each extracted key phrase from the email description. This loop ensures that the subsequent actions are applied to each key phrase individually. With this setup, our flow is now complete. Let&#8217;s save it and proceed to testing.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"alignnone size-full wp-image-37958\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-5.png\" alt=\"Key Phrase Extraction in Power Automate for Text Analysis \" width=\"1919\" height=\"872\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-5.png 1919w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-5-300x136.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-5-1024x465.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-5-768x349.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-5-1536x698.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-5-660x300.png 660w\" sizes=\"(max-width: 1919px) 100vw, 1919px\" \/><\/p>\n<p style=\"text-align: justify;\">To test our flow, we&#8217;ve created an email activity record in Dynamics 365 CRM. Below is the record details and its description. This email contains points about the product features we plan to discuss with the client during an upcoming scheduled meeting, focusing on fulfilling the client&#8217;s requirements.<\/p>\n<p style=\"text-align: justify;\"><img decoding=\"async\" class=\"alignnone size-full wp-image-37959\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-6.png\" alt=\"Key Phrase Extraction in Power Automate for Text Analysis \" width=\"1919\" height=\"873\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-6.png 1919w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-6-300x136.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-6-1024x466.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-6-768x349.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-6-1536x699.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis-6-660x300.png 660w\" sizes=\"(max-width: 1919px) 100vw, 1919px\" \/><\/p>\n<p style=\"text-align: justify;\">Once we create the email, it will trigger our flow to extract key phrases from its description and add them to our Excel table. This automated process helps organize and capture important topics discussed in the email for further analysis or action.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-37960\" style=\"border: 1px solid #000000; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis7.png\" alt=\"Key Phrase Extraction in Power Automate for Text Analysis \" width=\"1919\" height=\"864\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis7.png 1919w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis7-300x135.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis7-1024x461.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis7-768x346.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis7-1536x692.png 1536w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2024\/04\/Key-Phrase-Extraction-in-Power-Automate-for-Text-Analysis7-660x297.png 660w\" sizes=\"(max-width: 1919px) 100vw, 1919px\" \/><\/p>\n<h2 style=\"text-align: justify;\"><strong>Conclusion<\/strong><\/h2>\n<p style=\"text-align: justify;\">We&#8217;ve successfully implemented an automated workflow using Power Automate and Dynamics 365 CRM to extract key phrases from email descriptions and store them in an Excel table. This streamlined process allows us to efficiently capture and analyze important topics discussed in client communications, enabling better preparation and organization for client meetings and engagements.<\/p>\n<p style=\"text-align: justify;\"><a href=\"https:\/\/www.inogic.com\/services\/microsoft-power-platform\/microsoft-power-apps-model-driven-apps\/\" target=\"_blank\" rel=\"noopener\"><img decoding=\"async\" class=\"aligncenter wp-image-35629 size-full\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2023\/08\/Model-Driven-App.gif\" alt=\"Model Driven App\" width=\"700\" height=\"200\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The key phrase extraction model identifies the main topics in a text document. For example, if you have a sentence like &#8220;The movie was entertaining and the acting was impressive!&#8221;, the model would extract key phrases such as &#8220;movie&#8221;, &#8220;entertaining&#8221;, and &#8220;acting&#8221;. This model helps to identify and list important themes or subjects from unstructured\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2024\/04\/understanding-key-phrase-extraction-in-power-automate-for-text-analysis\/\">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":[1975],"class_list":["post-37953","post","type-post","status-publish","format-standard","hentry","category-power-automate","tag-power-automate"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/37953","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=37953"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/37953\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=37953"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=37953"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=37953"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}