Exercise - Create the invoice Processing Model

Completed

Follow these steps to modify existing forms and views associated with the Showing and Real Estate Property tables.

Sign in to AI Builder

Follow these steps to sign in to AI Builder:

  1. Go to Power Automate and sign in with your organizational account.

  2. In the left navigation pane, select AI Hub, then AI Models. If you don't see the option for AI Hub, select the More option and you should be able to find AI Hub in the popup.

  3. Select AI Models, then select Extract customer information from documents.

  4. Select Create custom model.

  5. On the Select the type of document your model will process screen, select Fixed template documents, and choose Next.

  6. On the Chosen information to extract screen, select the Add button.

  7. On the Added screen, select Text field, then select Next.

  8. Set the Name field to Account, select Done.

  9. Repeat Steps 6 – 8 to add the following fields.

    Field name Type
    StreetAddress Text Field
    State Text Field
    PostalCode Text Field
    InvoiceNum Text Field
  10. Select the drop-down arrow next to Add and choose Date Field.

  11. Set the Name field InvoiceDate, and the Format to Year, Month, Day.

  12. Select the Done button.

  13. Select the Added drop-down again and choose Number Field.

  14. Set the Name field to InvoiceNum, and the Format to Use.dot(.) as decimal separator.

    Your fields should resemble the image below:

    Screenshot of choosing info screen.

  15. Select the Add drop-down menu, and from the menu that appears, select Table.

  16. Set the name of the table to LineItems,

  17. Select Column 1, choose Edit Column.

  18. Change the Name to Qty and the Type to Number.

  19. Select Confirm.

  20. Select the New column button.

  21. Set the Name to Description, the Type to Text, and select Add.

  22. Select the New column button again.

  23. Set the Name to Unit Price, the Type to Number, and select Add.

  24. Select the New column button again.

  25. Set the Name to Line Total, the Type to Number, and select Add.

    Your completed table should resemble the Image below:

    Screenshot of a new table.

  26. Select the Done button.

  27. Select the Next button.

    Next, we'll define the documents that will be used to train the model.

  28. On the Added collections of documents screen, select the New collection button.

  29. Select the + on Collection 1.

  30. Select Add Documents.

  31. Select My Device.

  32. Go to where you downloaded the files for this exercise.

  33. Open the Train folder and select the all the documents in the folder, select Open.

  34. Select the Upload 5 documents button.

  35. Once all files are uploaded, select Done.

  36. Select the Next button.

  37. On the Tag documents screen, drag a rectangle around the text Adatum Corporation.

  38. From the list of Tags that appear, select b.

  39. Repeat steps 37 & 38 for the items below.

    Text Tag
    234 France Ave StreetAdress
    WA State
    76328 PostaCode
    1783 (or similar) InvoiceNum
    Oct 23, 2016 InvoiceDate
    90.20 (Next to Total:) Total Amt
  40. Drag to select the entire table, from the menu that appears, select the LineItems tag.

  41. If a wizard appears, to help walk you through selecting the table, select the X to close it.

  42. Click under the text at the top of the table to make that a row.

  43. Click under the Solar heater mat row to make it a row.

  44. Click under the Water clarifier row to note that as a row as well.

  45. Hold Ctrl and click to the right of QUANTITY to make it a row.

  46. Repeat the process after DESCRIPTION, UNIT PRICE, and LINE TOTAL.

    Your selected table will resemble the image below:

    Screenshot of completed table.

  47. Select the A above the text QUANTITY and select the Qty tag.

  48. Repeat the process for DESCRIPTION, UNIT PRICE, and LINE TOTAL.

    Your completed tagged document will resemble the image below:

    Screenshot of tagged document.

  49. Select the Done Button.

    Note

    You'll know that you have tagged all fields once the document has a check mark on it.

  50. Repeat steps 37 through 49 for each of the documents in the collection.

  51. Once your screen looks like the image below, select the Next button.

    Screenshot of all tagged documents.

  52. Change the name of your model to Invoice Processor.

  53. On the model summary screen, select the Train button.

    Note

    It can take a while for the model to train. While it's training, you can select the Go to models button.

  54. Once the model has completed training, select the Publish button to make it available to consume.