{"id":19598,"date":"2019-07-10T06:41:23","date_gmt":"2019-07-10T06:41:23","guid":{"rendered":"https:\/\/www.inogic.com\/blog\/?p=19598"},"modified":"2022-07-19T16:21:21","modified_gmt":"2022-07-19T10:51:21","slug":"form-processing-ai-model-microsoft-flow-power-apps-how-to-use-ai-builder-to-extract-data-from-form-documents","status":"publish","type":"post","link":"https:\/\/www.inogic.com\/blog\/2019\/07\/form-processing-ai-model-microsoft-flow-power-apps-how-to-use-ai-builder-to-extract-data-from-form-documents\/","title":{"rendered":"Power Platform : How to extract Form document data using AI Builder and Microsoft Flow"},"content":{"rendered":"<h2><strong>Introduction<\/strong><\/h2>\n<p style=\"text-align: justify;\">In our day to day business processes, we can use Artificial Intelligence to advance business operations. The <a href=\"https:\/\/docs.microsoft.com\/en-us\/ai-builder\/overview\" target=\"_blank\" rel=\"noopener noreferrer\">AI Builder<\/a> (preview feature) is the new Power Platform feature that allows us to use Artificial Intelligence to easily automate our business processes and predict outcomes. AI Builder currently supports four types of AI model, <strong>Form processing model<\/strong>, <strong>Text classification model<\/strong>, <strong>Binary classification model,<\/strong> and <strong>Object detection model<\/strong>. Each model serves a different purpose, we can choose the type of model based on our requirement.<\/p>\n<p>In this blog, we will illustrate how to create and use Form processing model with the help of a real-world business scenario.<\/p>\n<p><strong>What is Form processing model?<\/strong><\/p>\n<p style=\"text-align: justify;\">Form processing model as the name suggest, processes the forms or documents that have data in key-value pair. It extracts the document data and makes it available for further use. It uses the existing sample documents to analyze the new documents and extract information. The accuracy of outcome of this model depends on the sample documents that we used to learn the model.<\/p>\n<p><strong>Scenario: <\/strong><\/p>\n<p style=\"text-align: justify;\">A renowned construction company uses CRM to manage their business process. For every new work the sales person creates a new Project entity record in CRM. Contractors (Not CRM users) assigned to that project, analyze the work and prepare a quote and that quote get attached to the project record as notes attachment. Sales person then manually downloads the attachment, reads the quote and updates the quote details on Project entity. They have to do this every time when any new quote document is attached to the record.<\/p>\n<p>This process is quite time consuming and requires human intervention to get the most recent quote information on the project.<\/p>\n<p style=\"text-align: justify;\">Here, we can make use of Form processing AI model to automate this process. Given below are the steps to automate this process using AI Builder.<\/p>\n<p style=\"text-align: justify;\"><strong>1. Enable AI Builder: <\/strong>Make sure that AI builder is available and enabled for the environment. Sign in to <a href=\"https:\/\/admin.powerplatform.microsoft.com\/\" target=\"_blank\" rel=\"noopener noreferrer\">Power Platform Admin center<\/a>. In the admin center go to Environments -&gt; &lt;select environment&gt; -&gt; Settings -&gt; Features.<\/p>\n<p>In Features page check if <strong>Create AI models in PowerApps<\/strong> is enabled.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19599\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/1Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png\" alt=\"Form Processing AI Model Microsoft Flow Power Apps\" width=\"1104\" height=\"314\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/1Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png 1104w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/1Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-300x85.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/1Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-768x218.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/1Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-1024x291.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/1Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-660x188.png 660w\" sizes=\"(max-width: 1104px) 100vw, 1104px\" \/><\/p>\n<p style=\"text-align: justify;\"><strong>2.Create Form Processing AI Model: <\/strong>Sign in to <a href=\"https:\/\/web.powerapps.com\" target=\"_blank\" rel=\"noopener noreferrer\">https:\/\/web.powerapps.com<\/a>. Go to \u2018AI Builder\u2019 -&gt; Build -&gt; Form processing.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19600\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/2Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png\" alt=\"Form Processing AI Model Microsoft Flow Power Apps\" width=\"1412\" height=\"479\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/2Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png 1412w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/2Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-300x102.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/2Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-768x261.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/2Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-1024x347.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/2Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-660x224.png 660w\" sizes=\"(max-width: 1412px) 100vw, 1412px\" \/><\/p>\n<p>This will open the below screen. Give name for the model. We can see this model requires sample documents. We can see the examples of document. Click on \u2018<strong>Examples<\/strong>\u2019 to see the example of sample document.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19601\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/3Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png\" alt=\"Form Processing AI Model Microsoft Flow Power Apps\" width=\"902\" height=\"609\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/3Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png 902w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/3Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-300x203.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/3Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-768x519.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/3Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-660x446.png 660w\" sizes=\"(max-width: 902px) 100vw, 902px\" \/><\/p>\n<p style=\"text-align: justify;\"><strong>3. Prepare sample documents:<\/strong> Go through <a href=\"https:\/\/docs.microsoft.com\/en-us\/ai-builder\/form-processing-model-requirements\" target=\"_blank\" rel=\"noopener noreferrer\">Form processing AI model requirements and limitations<\/a>. The documents that you have must meet these requirements otherwise model will fail with the errors. So if you ever face error while analysing the model make sure that your sample documents meet all the requirements. As an example we have taken below Quote report (PDF format) which the contractor fills up and uploads against the project.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19667\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/4Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-1.png\" alt=\"Form-Processing-AI-Model-Microsoft-Flow-Power-Apps\" width=\"815\" height=\"728\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/4Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-1.png 815w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/4Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-1-300x268.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/4Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-1-768x686.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/4Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-1-660x590.png 660w\" sizes=\"(max-width: 815px) 100vw, 815px\" \/><\/p>\n<p>We have 5 different versions (data) of the same report. We will use these five pdf files as a sample data for the Form processing model.<\/p>\n<p style=\"text-align: justify;\"><strong>4. Analyze Documents:<\/strong> Click on \u2018<strong>Add Documents<\/strong>\u2019 button, select all the sample pdf files and upload it.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19603\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/5Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png\" alt=\"Form Processing AI Model Microsoft Flow Power Apps\" width=\"1427\" height=\"654\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/5Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png 1427w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/5Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-300x137.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/5Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-768x352.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/5Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-1024x469.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/5Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-660x302.png 660w\" sizes=\"(max-width: 1427px) 100vw, 1427px\" \/><\/p>\n<p>Once all the documents are uploaded close the window and click on <strong>\u2018Analyze\u2019<\/strong> button. This will save the model and start analyzing the documents.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19604\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/6Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png\" alt=\"Form Processing AI Model Microsoft Flow Power Apps\" width=\"1438\" height=\"722\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/6Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png 1438w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/6Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-300x151.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/6Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-768x386.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/6Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-1024x514.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/6Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-660x331.png 660w\" sizes=\"(max-width: 1438px) 100vw, 1438px\" \/><\/p>\n<p style=\"text-align: justify;\">This process will take few minutes and will ask you to select a field. Analyze steps, analyze the structure of the document, identifies the key value pair, table data and expose are fields that we need to select in the next step.<\/p>\n<p style=\"text-align: justify;\"><strong>5. Select form fields:<\/strong> Here we need to select data that we want to extract from the document. Click on <strong>\u2018Process Quote Model form\u2019<\/strong>, this will open the below screen with all possible data that the Model can extract.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19605\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/7Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png\" alt=\"Form Processing AI Model Microsoft Flow Power Apps\" width=\"1435\" height=\"710\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/7Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png 1435w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/7Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-300x148.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/7Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-768x380.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/7Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-1024x507.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/7Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-660x327.png 660w\" sizes=\"(max-width: 1435px) 100vw, 1435px\" \/><\/p>\n<p style=\"text-align: justify;\">We can either select all the fields or we can select those fields that are needed. Here we have selected the <strong>Total Amount<\/strong> and <strong>Prepared By<\/strong> field. Click on \u2018<strong>Done\u2019<\/strong> button to save the field selection for model. Click on <strong>\u2018Next\u2019<\/strong> button to train the model using uploaded sample documents.<\/p>\n<p><strong>6. Train, Test and Publish Model: <\/strong>Click on <strong>\u2018Train\u2019<\/strong> button to train the Form processing model.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19606\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/8Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png\" alt=\"Form Processing AI Model Microsoft Flow Power Apps\" width=\"1440\" height=\"766\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/8Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png 1440w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/8Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-300x160.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/8Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-768x409.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/8Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-1024x545.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/8Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-660x351.png 660w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/p>\n<p style=\"text-align: justify;\">Below screen shows model training is completed. Click on <strong>\u2018Go to the details page\u2019<\/strong> button. This will take us on the Model page.<\/p>\n<p style=\"padding-left: 120px;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-19607\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/9Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png\" alt=\"Form Processing AI Model Microsoft Flow Power Apps\" width=\"407\" height=\"415\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/9Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png 407w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/9Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-294x300.png 294w\" sizes=\"(max-width: 407px) 100vw, 407px\" \/><\/p>\n<p>You can also navigate to the model details page by clicking on <strong>\u2018Model\u2019<\/strong> -&gt; &lt;click on Model from the list of model&gt;<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19608\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/10Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png\" alt=\"Form Processing AI Model Microsoft Flow Power Apps\" width=\"1438\" height=\"771\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/10Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png 1438w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/10Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-300x161.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/10Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-768x412.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/10Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-1024x549.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/10Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-660x354.png 660w\" sizes=\"(max-width: 1438px) 100vw, 1438px\" \/><\/p>\n<p style=\"text-align: justify;\">We can test the model by using <strong>\u2018Quick test\u2019<\/strong> button. Upload the new document and check if it extracts the information that we wanted or not. Finally click on Publish button to publish the model.<\/p>\n<p><strong>7. Use Form processing Model to automate business process using Microsoft Flow: <\/strong><\/p>\n<p style=\"text-align: justify;\">Create a new solution in Microsoft flow and then create a new Flow under that solution and setup it to trigger on creation of notes for Project entity. Here we will consider Opportunity as the Project entity. We have <strong>\u2018Quotation information\u2019<\/strong> section on Opportunity\/Project entity which has two fields <strong>\u2018Total Amount\u2019<\/strong> and <strong>\u2018Prepared By\u2019<\/strong> field.<\/p>\n<p style=\"text-align: justify;\">Our flow will trigger on any upload of notes attachment on project entity, then it will call and pass the uploaded document to Form Processing Model and finally, will read and update the response returned by Model on opportunity fields.<\/p>\n<p>Add a <strong>\u2018Predict \u2013 Common Data Service (Current environment)\u2019<\/strong> action and select our newly created Form Processing Model.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19609\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/11Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png\" alt=\"Form Processing AI Model Microsoft Flow Power Apps\" width=\"1202\" height=\"585\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/11Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png 1202w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/11Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-300x146.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/11Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-768x374.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/11Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-1024x498.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/11Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-660x321.png 660w\" sizes=\"(max-width: 1202px) 100vw, 1202px\" \/><\/p>\n<p>In request payload pass JSON string in below format;<\/p>\n<p style=\"padding-left: 40px;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-19610\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/12Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png\" alt=\"Form Processing AI Model Microsoft Flow Power Apps\" width=\"609\" height=\"169\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/12Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png 609w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/12Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-300x83.png 300w\" sizes=\"(max-width: 609px) 100vw, 609px\" \/><\/p>\n<p>{<\/p>\n<p>&#8220;base64Encoded&#8221;: &#8220;EXPRESSION&#8221;,<\/p>\n<p>&#8220;mimeType&#8221;: &#8220;image\/jpeg&#8221;<\/p>\n<p>}<\/p>\n<p style=\"text-align: justify;\">This expression must return document content in base64 format. In case of CRM notes document, we can directly pass Document field. The expression must be enclosed by base64() based on which connector the files comes from. We can have SharePoint connector or any other connector which will give files to be passed to AI Model. The Mime type also depends on the type of document. If the document type is pdf then pass <strong>\u2018application\/pdf\u2019<\/strong> and if document type is image then pass correct mime type <strong>\u2018image\/jpeg\u2019<\/strong><\/p>\n<p style=\"text-align: justify;\">Now save the Flow and test it by clicking on <strong>\u2018Test\u2019<\/strong> button. Check the logs of Flow and copy the result of Predict action and past it in code editor i.e. either Visual Studio or Visual Code.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19611\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/13Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png\" alt=\"Form Processing AI Model Microsoft Flow Power Apps\" width=\"1228\" height=\"693\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/13Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png 1228w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/13Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-300x169.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/13Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-768x433.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/13Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-1024x578.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/13Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-660x372.png 660w\" sizes=\"(max-width: 1228px) 100vw, 1228px\" \/><\/p>\n<p>Remove <strong>\u201c\\\u201d<\/strong> characters from output that we copied from Predict action.<\/p>\n<p style=\"text-align: justify;\">The output will have result for the fields that we selected while creating a Model. Here you can see the value for Total Amount and Prepared By.<\/p>\n<p style=\"padding-left: 40px;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-19612\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/14Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png\" alt=\"Form Processing AI Model Microsoft Flow Power Apps\" width=\"578\" height=\"770\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/14Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png 578w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/14Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-225x300.png 225w\" sizes=\"(max-width: 578px) 100vw, 578px\" \/><\/p>\n<p style=\"text-align: justify;\">Add Parse JSON action, select <strong>\u2018Response Payload\u2019<\/strong> in the content and paste the JSON output copied in code editor (JSON string after removing \u201c\\\u201d character) in the Schema.<\/p>\n<p style=\"padding-left: 40px;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-19613\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/15Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png\" alt=\"Form Processing AI Model Microsoft Flow Power Apps\" width=\"611\" height=\"339\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/15Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png 611w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/15Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-300x166.png 300w\" sizes=\"(max-width: 611px) 100vw, 611px\" \/><\/p>\n<p style=\"text-align: justify;\">Now we are ready to use the response of Form Processing model to update the quote details in CRM. Add <strong>\u2018Update record\u2019<\/strong> action of Common data service and use the values from Parse JSON action.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-19614\" style=\"border: 1px solid #0a0a0a; padding: 1px; margin: 1px;\" src=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/16Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png\" alt=\"Form Processing AI Model Microsoft Flow Power Apps\" width=\"1168\" height=\"438\" srcset=\"https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/16Form-Processing-AI-Model-Microsoft-Flow-Power-Apps.png 1168w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/16Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-300x113.png 300w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/16Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-768x288.png 768w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/16Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-1024x384.png 1024w, https:\/\/www.inogic.com\/blog\/wp-content\/uploads\/2019\/07\/16Form-Processing-AI-Model-Microsoft-Flow-Power-Apps-660x248.png 660w\" sizes=\"(max-width: 1168px) 100vw, 1168px\" \/><\/p>\n<p><strong>body(<\/strong>&#8216;Parse_JSON&#8217;<strong>)<\/strong>?[&#8216;predictionOutput&#8217;]?[&#8216;labels&#8217;]?[&#8216;Prepared by &#8216;]?[&#8216;value&#8217;]\n<p><strong>body(<\/strong>&#8216;Parse_JSON&#8217;<strong>)<\/strong>?[&#8216;predictionOutput&#8217;]?[&#8216;labels&#8217;]?[&#8216;Total Amount&#8217;]?[&#8216;value&#8217;]\n<blockquote><p>Note: To use AI Builder Models in a flow we must create flow in solution.<\/p><\/blockquote>\n<h2><strong>Conclusion<\/strong><\/h2>\n<p style=\"text-align: justify;\">In this way, we can use Form Processing AI model of AI builder to process the documents, analyze it and extract data from it. Based on requirement we can adjust the Microsoft Flow to when it should trigger, call AI model to get data from the document and use that data.<\/p>\n<h2 style=\"text-align: left;\"><div class=\"su-heading su-heading-style-default su-heading-align-center\" id=\"\" style=\"font-size:15px;margin-bottom:5px\"><div class=\"su-heading-inner\">70% of global 2000 companies apply gamification to improve productivity and returns!<\/div><\/div><\/h2>\n<p><em><strong><a href=\"https:\/\/bit.ly\/3RD4lYW\" target=\"_blank\" rel=\"noopener noreferrer\">Gamifics365<\/a> <\/strong>\u2013 Spin the magic of games within Microsoft Dynamics 365 CRM to improve user adoption, enhance productivity, and achieve company goals!<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In our day to day business processes, we can use Artificial Intelligence to advance business operations. The AI Builder (preview feature) is the new Power Platform feature that allows us to use Artificial Intelligence to easily automate our business processes and predict outcomes. AI Builder currently supports four types of AI model, Form processing\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.inogic.com\/blog\/2019\/07\/form-processing-ai-model-microsoft-flow-power-apps-how-to-use-ai-builder-to-extract-data-from-form-documents\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":13,"featured_media":19663,"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":[1901,1902,16,36,38,1985],"tags":[1150,1337],"class_list":["post-19598","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-builder","category-artificial-intelligence","category-dynamics-365","category-microsoft-flow","category-microsoft-powerapps","category-power-automate","tag-microsoft-flow","tag-power-apps"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/19598","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\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/comments?post=19598"}],"version-history":[{"count":0,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/posts\/19598\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media\/19663"}],"wp:attachment":[{"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/media?parent=19598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/categories?post=19598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inogic.com\/blog\/wp-json\/wp\/v2\/tags?post=19598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}