You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/cognitive-services/form-recognizer/tutorial-form-recognizer-with-logic-apps.md
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: "Tutorial: Use Form Recognizer with Azure Logic Apps to analyze invoice - Form Recognizer"
2
+
title: "Tutorial: Use Form Recognizer with Azure Logic Apps to analyze invoices - Form Recognizer"
3
3
titleSuffix: Azure Cognitive Services
4
4
description: In this tutorial, you'll use Form Recognizer with Azure Logic Apps to create a workflow that automates the process of training a model and testing it using sample data.
5
5
services: cognitive-services
@@ -36,10 +36,10 @@ Form Recognizer is available in a limited-access preview. To get access to the p
36
36
37
37
## Understand the invoice to be analyzed
38
38
39
-
The sample data set that we use to train the model and test the model is available as a .zip file from [GitHub](https://go.microsoft.com/fwlink/?linkid=2090451). Download and extract the .zip file and open a receipt PDF file under the **/Train** folder. Notice how it has a table with the invoice number, invoice date, etc.
39
+
The sample data set that we use to train the model and test the model is available as a .zip file from [GitHub](https://go.microsoft.com/fwlink/?linkid=2090451). Download and extract the .zip file and open an invoice PDF file under the **/Train** folder. Notice how it has a table with the invoice number, invoice date, etc.
In this tutorial, we learn how to extract the information from such tables into a JSON format using a workflow created using Azure Logic Apps and Form Recognizer.
45
45
@@ -65,10 +65,10 @@ Copy the URL of the container. You will need this later in this tutorial. If you
65
65
66
66
## Create your logic app
67
67
68
-
You can use Azure Logic Apps to automate and orchestrate tasks and workflows. In this tutorial, you create a logic app that is triggered by receiving a receipt that you want to analyze as an email attachment. In this workflow, you perform the following tasks:
69
-
* Configure the logic app to trigger automatically when you receive an email with a receipt attached.
68
+
You can use Azure Logic Apps to automate and orchestrate tasks and workflows. In this tutorial, you create a logic app that is triggered by receiving an invoice that you want to analyze as an email attachment. In this workflow, you perform the following tasks:
69
+
* Configure the logic app to trigger automatically when you receive an email with an invoice attached.
70
70
* Configure the logic app to use a Form Recognizer **Train Model** operation to train a model using the sample data that you uploaded to the Azure blob storage.
71
-
* Configure the logic app to use a Form Recognizer **Analyze Form** operation to use the model that you already trained. This component will analyze the receipt that you provide to this logic app based on the model that it trained earlier.
71
+
* Configure the logic app to use a Form Recognizer **Analyze Form** operation to use the model that you already trained. This component will analyze the invoice that you provide to this logic app based on the model that it trained earlier.
72
72
73
73
Let's start! Follow these steps to set up your workflow.
74
74
@@ -94,7 +94,7 @@ Let's start! Follow these steps to set up your workflow.
94
94
95
95
### Configure the logic app to trigger the workflow when an email arrives
96
96
97
-
In this tutorial, you trigger the workflow when an email is received with an attached receipt. For this tutorial, we choose Office 365 as the email service but you can use any other email provider that you wish to use.
97
+
In this tutorial, you trigger the workflow when an email is received with an attached invoice. For this tutorial, we choose Office 365 as the email service but you can use any other email provider that you wish to use.
98
98
99
99
1. From the tabs, select All, select **Office 365 Outlook**, and then under **Triggers**, select **When a new email arrives**.
100
100
@@ -104,7 +104,7 @@ In this tutorial, you trigger the workflow when an email is received with an att
104
104
105
105
1. In the next dialog box, perform the following steps.
106
106
1. Select the folder that should be monitored for any new email.
107
-
1. For **Has attachments** select **Yes**. This ensures that only the e-mails with attachments trigger the workflow.
107
+
1. For **Has attachments** select **Yes**. This ensures that only the emails with attachments trigger the workflow.
108
108
1. For **Include attachments** select **Yes**. This ensures that the contents of the attachment are used in downstream processing.
109
109
110
110
> [!div class="mx-imgBorder"]
@@ -137,7 +137,7 @@ Before you can use the Form Recognizer service to analyze invoices, you need to
137
137
138
138
### Configure the logic app to use the Form Recognizer Analyze Form operation
139
139
140
-
In this section, you add the **Analyze Form** operation to the workflow. This operation uses the already trained model to analyze a new receipt that is provided to the logic app.
140
+
In this section, you add the **Analyze Form** operation to the workflow. This operation uses the already trained model to analyze a new invoice that is provided to the logic app.
141
141
142
142
1. Select **New step**, and under **Choose an action**, search for **Form Recognizer**. From the results that show up, select **Form Recognizer**, and then under the actions that are available for Form Recognizer, select **Analyze Form**.
143
143
@@ -151,33 +151,33 @@ In this section, you add the **Analyze Form** operation to the workflow. This op
151
151
> [!div class="mx-imgBorder"]
152
152
> 
153
153
154
-
2. Click the **Document** text box, and in the dialog box that opens up, under **Dynamic Content** tab, select **Attachments Content**. By doing this you configure the flow to use the sample receipt file that is attached in the email that is sent to trigger the workflow.
154
+
2. Click the **Document** text box, and in the dialog box that opens up, under **Dynamic Content** tab, select **Attachments Content**. By doing this you configure the flow to use the sample invoice file that is attached in the email that is sent to trigger the workflow.
155
155
156
156
> [!div class="mx-imgBorder"]
157
157
> 
158
158
159
159
1. Click **Save** from the toolbar at the top.
160
160
161
-
### Extract the table information from the receipt
161
+
### Extract the table information from the invoice
162
162
163
163
In this section, we configure the logic app to extract the information from the table within the invoices.
164
164
165
165
1. Select **Add an action**, and under **Choose an action**, search for **Compose** and under the actions that are available, select **Compose** again.
166
-

166
+

167
167
168
168
1. In the **Compose** dialog box, click the **Inputs** text box, and from the dialog box that pops up, select **tables**.
169
169
170
170
> [!div class="mx-imgBorder"]
171
-
> 
171
+
> 
172
172
173
173
1. Click **Save**.
174
174
175
175
## Test your logic app
176
176
177
177
To test the logic app, use the sample invoices in the **/Test** folder of the sample data set that you downloaded from [GitHub](https://go.microsoft.com/fwlink/?linkid=2090451). Perform the following steps:
178
178
179
-
1. From the Azure Logic Apps designer for your app, select **Run** from the toolbar at the top. The workflow is now active and waits to receive an email with the receipt attached.
180
-
1. Send an email with a sample receipt attached to the email address that you provided while creating the logic app. Make sure the email is delivered to the folder that you provided while configuring the logic app.
179
+
1. From the Azure Logic Apps designer for your app, select **Run** from the toolbar at the top. The workflow is now active and waits to receive an email with the invoice attached.
180
+
1. Send an email with a sample invoice attached to the email address that you provided while creating the logic app. Make sure the email is delivered to the folder that you provided while configuring the logic app.
181
181
1. As soon as the email is delivered to the folder, the Logic Apps Designer shows a screen with the progress of each stage. In the screenshot below, you see that an email with attachment is received and the workflow is in progress.
182
182
183
183
> [!div class="mx-imgBorder"]
@@ -190,7 +190,7 @@ To test the logic app, use the sample invoices in the **/Test** folder of the sa
190
190
191
191
From the **OUTPUTS** box, copy the output and paste it to any text editor.
192
192
193
-
1. Compare the JSON output with the sample receipt that you sent as an attachment in the email. Notice how the JSON corresponds to the data in the table within the receipt.
193
+
1. Compare the JSON output with the sample invoice that you sent as an attachment in the email. Verify that the JSON data corresponds to the data in the table within the invoice.
194
194
195
195
```json
196
196
[
@@ -376,7 +376,7 @@ To test the logic app, use the sample invoices in the **/Test** folder of the sa
376
376
}
377
377
]
378
378
```
379
-
Verify that the JSON data corresponds to the data in the table within the invoice. You have successfully completed this tutorial!
0 commit comments