{"id":2333,"date":"2021-05-01T17:55:25","date_gmt":"2021-05-01T17:55:25","guid":{"rendered":"https:\/\/portfolio.accrualhub.com\/powergi2\/?p=543"},"modified":"2025-03-06T03:20:02","modified_gmt":"2025-03-06T03:20:02","slug":"classify-your-emails-based-on-subject-using-ai","status":"publish","type":"post","link":"https:\/\/powergi.net\/es\/blog\/classify-your-emails-based-on-subject-using-ai\/","title":{"rendered":"Classify your emails based on Subject using AI"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"2333\" class=\"elementor elementor-2333\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-60f04cc3 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"60f04cc3\" data-element_type=\"section\" data-e-type=\"section\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-5d19a45a\" data-id=\"5d19a45a\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-1b1557f1 elementor-widget elementor-widget-text-editor\" data-id=\"1b1557f1\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\n<p class=\"wp-block-paragraph\">Let\u2019s suppose you are a legal company that receives hundreds of emails daily that relate to contracts for both Companies (legal entities) and Individuals. You need to separate those two different types of emails in different folders because they are processed differently.<\/p>\n\n<p class=\"wp-block-paragraph\">Your mailbox looks something like this:<\/p><div id=\"seology-cta-1\">\t\t<div data-elementor-type=\"section\" data-elementor-id=\"7280\" class=\"elementor elementor-7280\" data-elementor-post-type=\"elementor_library\">\n\t\t\t<div class=\"elementor-element elementor-element-7e3f164 e-con-full e-flex e-con e-parent\" data-id=\"7e3f164\" data-element_type=\"container\" data-e-type=\"container\" data-settings='{\"background_background\":\"classic\",\"jet_parallax_layout_list\":[]}'>\n\t\t<div class=\"elementor-element elementor-element-9078c9f e-con-full e-flex e-con e-child\" data-id=\"9078c9f\" data-element_type=\"container\" data-e-type=\"container\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t<div class=\"elementor-element elementor-element-7b99949 elementor-widget elementor-widget-heading\" data-id=\"7b99949\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<p class=\"elementor-heading-title elementor-size-default\">Automate tasks that slow you down<\/p>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8e61db5 elementor-widget elementor-widget-heading\" data-id=\"8e61db5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<p class=\"elementor-heading-title elementor-size-default\">Free up your team\u2019s time and focus on strategic work with digital and robotic automation.<\/p>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-a578907 e-flex e-con-boxed e-con e-child\" data-id=\"a578907\" data-element_type=\"container\" data-e-type=\"container\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e8c827b elementor-view-stacked elementor-shape-circle elementor-widget elementor-widget-icon\" data-id=\"e8c827b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<a class=\"elementor-icon\" href=\"#ctc_chat\">\n\t\t\t<i aria-hidden=\"true\" class=\"fab fa-whatsapp\"><\/i>\t\t\t<\/a>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d834237 elementor-view-stacked elementor-shape-circle elementor-widget elementor-widget-icon\" data-id=\"d834237\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<a class=\"elementor-icon\" href=\"https:\/\/powergi.net\/es\/contact\/\">\n\t\t\t<i aria-hidden=\"true\" class=\"far fa-envelope\"><\/i>\t\t\t<\/a>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<\/div>\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" class=\"wp-image-544\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2026\/07\/powergi-image-14926.webp\" alt=\"\"><\/figure>\n\n<p class=\"wp-block-paragraph\">Your contacts always send you the name of the Legal or Natural person in the subject, but it is very hard to predict its location in the email subject or the length of the text. You could have somebody manually checking every single email or better \u2013 you can have AI do all the job for you and automatically separate Companies and Person Names.<\/p>\n\n<p class=\"wp-block-paragraph\">We are going to use the Text Analytics\u2019 <strong>Named Entity Recognition (NER) service from Azure<\/strong>. It provides the ability to identify different entities in text and categorize them into pre-defined classes or types such as: person, location, event, product, and organization. For this, we are interested in recognizing \u201c<strong>Organization<\/strong>\u201d and \u201c<strong>Person<\/strong>\u201d. This is a powerful example of how <a href=\"https:\/\/powergi.net\/microsoft-power-platform-consulting-services\/\"><strong>Microsoft Power Platform consulting<\/strong><\/a> can streamline email classification and automation.<\/p>\n\n<h3 class=\"wp-block-heading\"><strong>Set up service in Azure.<\/strong><\/h3>\n\n<p class=\"wp-block-paragraph\">Let\u2019s navigate to the Azure Portal and create a \u201cText Analytics\u201d resource. Below is how I set up mine<\/p>\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" class=\"wp-image-545\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2026\/07\/image-1-826x1024-1.webp\" alt=\"\"><\/figure>\n\n<p class=\"wp-block-paragraph\">Once resource is ready, go the \u201cKeys and Endpoint\u201d blade and take note of your API Key and Endpoint.<\/p>\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" class=\"wp-image-546\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2026\/07\/image-2-1024x607-1.webp\" alt=\"\"><\/figure>\n\n<h3 class=\"wp-block-heading\"><strong>Set up HTTP call and Test Service<\/strong><\/h3>\n\n<p class=\"wp-block-paragraph\">Let\u2019s test the service. I will use Power Automate HTTP action card, but you can use Postman too. Below is the set up needed for the call<\/p>\n\n<pre class=\"wp-block-code\"><code><strong>METHOD: <\/strong>\nPOST\n\n<strong>URI: <\/strong>\n<em><span class=\"has-inline-color has-vivid-cyan-blue-color\">{your-endpoint}<\/span><\/em>\/text\/analytics\/<em><span class=\"has-inline-color has-vivid-cyan-blue-color\">{version}<\/span><\/em>\/entities\/recognition\/general\n\n<strong>HEADER: <\/strong>\nOcp-Apim-Subscription-Key <em><span class=\"has-inline-color has-vivid-cyan-blue-color\">{key-1}<\/span><\/em>\n\n<strong>BODY: <\/strong>\n{\n  \"documents\": [\n    {\n      \"language\": \"<em><span class=\"has-inline-color has-vivid-cyan-blue-color\">{subject-language}<\/span><\/em>\",\n      \"id\": \"1\",\n      \"text\": \"<em><span class=\"has-inline-color has-vivid-cyan-blue-color\">{email-subject}<\/span><\/em>\"\n    }\n  ]\n}<\/code><\/pre>\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" class=\"wp-image-547\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2021\/05\/image-3.png\" alt=\"\">\n<figcaption>Example of HTTP Call to the Service<\/figcaption>\n<\/figure>\n\n<p class=\"wp-block-paragraph\">Once tested, this is how response from the service looks if the subject contains a company name:<\/p>\n\n<figure class=\"wp-block-image size-large is-resized\"><img fetchpriority=\"high\" decoding=\"async\" class=\"wp-image-548\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2021\/05\/image-4.png\" alt=\"\" width=\"309\" height=\"317\"><\/figure>\n\n<p class=\"wp-block-paragraph\">If a person name is included in the subject, this is how it looks:<\/p>\n\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" class=\"wp-image-549\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2026\/07\/powergi-image-14923.webp\" alt=\"\" width=\"296\" height=\"306\"><\/figure>\n\n<p class=\"wp-block-paragraph\">Regardless of where in the subject the company\/person\u2019s name is included, the service will automatically separate each entity\/section from the subject and find the best match for Organization or Person.<\/p><div id=\"seology-cta-2\">\t\t<div data-elementor-type=\"section\" data-elementor-id=\"7283\" class=\"elementor elementor-7283\" data-elementor-post-type=\"elementor_library\">\n\t\t\t<div class=\"elementor-element elementor-element-7e3f164 e-con-full e-flex e-con e-parent\" data-id=\"7e3f164\" data-element_type=\"container\" data-e-type=\"container\" data-settings='{\"background_background\":\"classic\",\"jet_parallax_layout_list\":[]}'>\n\t\t<div class=\"elementor-element elementor-element-9078c9f e-con-full e-flex e-con e-child\" data-id=\"9078c9f\" data-element_type=\"container\" data-e-type=\"container\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t<div class=\"elementor-element elementor-element-7b99949 elementor-widget elementor-widget-heading\" data-id=\"7b99949\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<p class=\"elementor-heading-title elementor-size-default\">Is your business ready for automation?<\/p>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-8e61db5 elementor-widget elementor-widget-heading\" data-id=\"8e61db5\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<p class=\"elementor-heading-title elementor-size-default\">Automate processes with Microsoft Power Platform.<\/p>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-a578907 e-flex e-con-boxed e-con e-child\" data-id=\"a578907\" data-element_type=\"container\" data-e-type=\"container\" data-settings='{\"jet_parallax_layout_list\":[]}'>\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-e8c827b elementor-view-stacked elementor-shape-circle elementor-widget elementor-widget-icon\" data-id=\"e8c827b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<a class=\"elementor-icon\" href=\"#ctc_chat\">\n\t\t\t<i aria-hidden=\"true\" class=\"fab fa-whatsapp\"><\/i>\t\t\t<\/a>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d834237 elementor-view-stacked elementor-shape-circle elementor-widget elementor-widget-icon\" data-id=\"d834237\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"icon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-icon-wrapper\">\n\t\t\t<a class=\"elementor-icon\" href=\"https:\/\/powergi.net\/es\/contact\/\">\n\t\t\t<i aria-hidden=\"true\" class=\"far fa-envelope\"><\/i>\t\t\t<\/a>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<\/div>\n\n<h3 class=\"wp-block-heading\"><strong>Use the service for each email you receive.<\/strong><\/h3>\n\n<p class=\"wp-block-paragraph\">Now we can integrate this HTTP card with a \u201cWhen a new email arrives\u201d trigger in Power Automate and apply a condition based on the Category in the response to move the email to its corresponding folder.<\/p>\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" class=\"wp-image-550\" src=\"https:\/\/powergi.net\/wp-content\/uploads\/2021\/05\/image-6.png\" alt=\"\"><\/figure>\n\n<p class=\"wp-block-paragraph\">All set! Save hours of work with this simple but effective classification\/recognition AI service.<\/p>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Let\u2019s suppose you are a legal company that receives hundreds of emails daily that relate to contracts for both Companies (legal entities) and Individuals. You need to separate those two different types of emails in different folders because they are processed differently. Your mailbox looks something like this: Turn your ideas into digital solutions Our [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":2623,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"glossary_letter":"","footnotes":""},"categories":[32],"tags":[13,14,17],"class_list":["post-2333","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure-cat","tag-automation","tag-azure_tag","tag-power-automate"],"glossary_letter":null,"rank_math_title":null,"rank_math_description":"Automatically classify emails by subject using AI and Power Automate. Optimize your inbox with this intelligent solution by Power GI.","rank_math_focus_keyword":null,"_links":{"self":[{"href":"https:\/\/powergi.net\/es\/wp-json\/wp\/v2\/posts\/2333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/powergi.net\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/powergi.net\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/powergi.net\/es\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/powergi.net\/es\/wp-json\/wp\/v2\/comments?post=2333"}],"version-history":[{"count":0,"href":"https:\/\/powergi.net\/es\/wp-json\/wp\/v2\/posts\/2333\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/powergi.net\/es\/wp-json\/wp\/v2\/media\/2623"}],"wp:attachment":[{"href":"https:\/\/powergi.net\/es\/wp-json\/wp\/v2\/media?parent=2333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/powergi.net\/es\/wp-json\/wp\/v2\/categories?post=2333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/powergi.net\/es\/wp-json\/wp\/v2\/tags?post=2333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}