Skip to content

Commit 3c09cd3

Browse files
committed
more feedback incorporated
1 parent 2aa32c8 commit 3c09cd3

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

articles/cognitive-services/form-recognizer/tutorial-form-recognizer-with-logic-apps.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
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"
33
titleSuffix: Azure Cognitive Services
44
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.
55
services: cognitive-services
@@ -36,10 +36,10 @@ Form Recognizer is available in a limited-access preview. To get access to the p
3636

3737
## Understand the invoice to be analyzed
3838

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.
4040

4141
> [!div class="mx-imgBorder"]
42-
> ![Sample receipt](media/tutorial-form-recognizer-with-logic-apps/sample-receipt.png)
42+
> ![Sample invoice](media/tutorial-form-recognizer-with-logic-apps/sample-receipt.png)
4343
4444
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.
4545

@@ -65,10 +65,10 @@ Copy the URL of the container. You will need this later in this tutorial. If you
6565

6666
## Create your logic app
6767

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.
7070
* 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.
7272

7373
Let's start! Follow these steps to set up your workflow.
7474

@@ -94,7 +94,7 @@ Let's start! Follow these steps to set up your workflow.
9494
9595
### Configure the logic app to trigger the workflow when an email arrives
9696

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.
9898

9999
1. From the tabs, select All, select **Office 365 Outlook**, and then under **Triggers**, select **When a new email arrives**.
100100

@@ -104,7 +104,7 @@ In this tutorial, you trigger the workflow when an email is received with an att
104104

105105
1. In the next dialog box, perform the following steps.
106106
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.
108108
1. For **Include attachments** select **Yes**. This ensures that the contents of the attachment are used in downstream processing.
109109

110110
> [!div class="mx-imgBorder"]
@@ -137,7 +137,7 @@ Before you can use the Form Recognizer service to analyze invoices, you need to
137137

138138
### Configure the logic app to use the Form Recognizer Analyze Form operation
139139

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.
141141

142142
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**.
143143

@@ -151,33 +151,33 @@ In this section, you add the **Analyze Form** operation to the workflow. This op
151151
> [!div class="mx-imgBorder"]
152152
> ![Use the ModelID for Form Recognizer](media/tutorial-form-recognizer-with-logic-apps/analyze-form-model-id.png)
153153
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.
155155

156156
> [!div class="mx-imgBorder"]
157157
> ![Use email attachment to analyze invoices](media/tutorial-form-recognizer-with-logic-apps/analyze-form-input-data.png)
158158
159159
1. Click **Save** from the toolbar at the top.
160160

161-
### Extract the table information from the receipt
161+
### Extract the table information from the invoice
162162

163163
In this section, we configure the logic app to extract the information from the table within the invoices.
164164

165165
1. Select **Add an action**, and under **Choose an action**, search for **Compose** and under the actions that are available, select **Compose** again.
166-
![Extract table information from the receipt](media/tutorial-form-recognizer-with-logic-apps/extract-table.png)
166+
![Extract table information from the invoice](media/tutorial-form-recognizer-with-logic-apps/extract-table.png)
167167

168168
1. In the **Compose** dialog box, click the **Inputs** text box, and from the dialog box that pops up, select **tables**.
169169

170170
> [!div class="mx-imgBorder"]
171-
> ![Extract table information from the receipt](media/tutorial-form-recognizer-with-logic-apps/select-tables.png)
171+
> ![Extract table information from the invoice](media/tutorial-form-recognizer-with-logic-apps/select-tables.png)
172172
173173
1. Click **Save**.
174174

175175
## Test your logic app
176176

177177
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:
178178

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.
181181
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.
182182

183183
> [!div class="mx-imgBorder"]
@@ -190,7 +190,7 @@ To test the logic app, use the sample invoices in the **/Test** folder of the sa
190190
191191
From the **OUTPUTS** box, copy the output and paste it to any text editor.
192192

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.
194194

195195
```json
196196
[
@@ -376,7 +376,7 @@ To test the logic app, use the sample invoices in the **/Test** folder of the sa
376376
}
377377
]
378378
```
379-
Verify that the JSON data corresponds to the data in the table within the invoice. You have successfully completed this tutorial!
379+
You have successfully completed this tutorial!
380380

381381
## Next steps
382382

0 commit comments

Comments
 (0)