DEV Community

Cover image for Harness the power of robotic automation (RPA) with AI on UiPath
Eden AI
Eden AI

Posted on • Originally published at edenai.co

Harness the power of robotic automation (RPA) with AI on UiPath

By using a combination of RPA and AI, businesses can simplify tasks that involve a lot of data, verification, and analysis. In this tutorial, we'll show you how to integrate Eden AI's Invoice parser API into UiPath to make invoice processing more efficient.

The same process applies if you want to use other features like : Image taggingExplicit content detectionText analysis and many more AI APIs we offer.

Build RPA automation on UiPath with Eden AI

Processing invoices can be a time-consuming and error-prone task, particularly when it involves handling large volumes of unstructured data.

Robotic Process Automation (RPA) is a powerful tool for automating invoice processing, but to tackle the complexities of unstructured data, it needs the help of Artificial Intelligence.

Thanks to Eden AI, you can extract data from invoices on UiPath through a single API, allowing you to work with the best Invoice Parsing engines in the market.

With our unique API, UiPath can automate the process of extracting relevant information from invoices, such as vendor name, invoice number, date, total amount, and line item details. The extracted data can then be used to create automated workflows for tasks such as invoice approval, payment processing, and vendor management. Overall, it will improve the efficiency of your accounts payable process.

Eden AI was created to make AI available to as many people as possible, offering you the possibility to choose the AI engine of your choice and integrate several APIs. Additionally, Eden AI allows you to solve multiple AI tasks on UiPath:

What is Invoice Parsing?

Just like Receipt and Resume Parsing, Invoice Parsing is a tool powered by OCR to extract and digitalize meaningful data, Computer Vision to identify structure of the document, and NLP techniques to pin down the fields.

Invoice parser technology extracts key information from an invoice (.pdf, .png or .jpg formats) such as the invoice ID, total amount due, invoice date, customer name, etc.

Image description

Invoice parser APIs help ensure data accuracy by avoiding errors that can occur during manual data extraction. Therefore, this information can be used for a variety of purposes and makes it easier to generate reports or export data to other applications and is often used in conjunction with other business management applications.

Try Eden AI for FREE

How to bring Invoice Parsing to your UiPath project?

Follow the step-by-step guideline below or take a look at the video tutorial:

1. Get started with UiPath

Open UiPath and click on Process to create a new process.

https://uploads-ssl.webflow.com/61e7d259b7746e3f63f0b6be/641dc4d8e3f060859aabde0e_BhVz8TdNt21az_cAO9DskfOuEEnC_peJvsx86DjZIVAnfgMw5zcZB0QX_JZu30RNBOwZMAAcGvJXZgOczQ-j6ZEUNfSSbi0yYpnzdAYV2XxKyl5vOKYbTzwFul4A8SnBB79VjklfCrqkJ0UzFq1lOm3U0QX7MjxR.png

2. Create a new project

Set the name of your project, select your preferred language and click on Create.

https://uploads-ssl.webflow.com/61e7d259b7746e3f63f0b6be/641dc4ed67deea8d7f9fa022_syaQl5Za5J0tDQHB3D-eLDw9hmn--tAMd3Gp7SwTm3S-44Otwm3t-XdyBTuqU7PeIz9TQvMRJb0T4QYVxtHTYfilsWQ2P2G2YQ8hqlfEdyBKpPYaaeRxLc1Ovc6xFRn08-1nEhPRhpptz2VODvqJPy9sViGff7zy.png

3. Manage dependencies

Right click on Dependencies and then click on Manage.

https://uploads-ssl.webflow.com/61e7d259b7746e3f63f0b6be/641dc50013854f36c2a8c937_lyzM_PJJeGlVBGBNP7E0ArHm-eVz8rZw-4fqYAnATAVZ8COMgFJz_UK6CDYpqj6Cj2XZ93f6KfjZI9FJKOdra018rWTti-n-EOZs24nHpK5abJJRUFh2uzRw7rR_4MWOxS2BHb2Y3i64OUdbkQ98uyI9MTiE0axa.png

4. Install UiPath WebAPI

Click on All Packages and write “webapi” in the search box. Then, select UiPath.WebAPI.Activities. Click on Install and then Save.

https://uploads-ssl.webflow.com/61e7d259b7746e3f63f0b6be/641dc50db3a2f7774aecabc1_iGFcV2j9TEGz47Nq2hyncI3xIVEi3ynaL7RdO3w0HFx7NorLbdq-R298gbxZybquVwQA_dxWsNx95U34WRv1Jm5jPYrhMHOtyffVWRUV-gSelZWVd2AH4axq1OwV7MwDpeUQHxM_jtEWSac_FuY5aFtlPMO12vXu.png

Go to “Main.xaml”, then click on Drop Activity Here.

https://uploads-ssl.webflow.com/61e7d259b7746e3f63f0b6be/641dc52012254c8aa4d4b48b_uFdrPas0kYTffBTx0YfmQbQst0vtykh3jExhwdLm6-sM7v-CGVVlwBBtimQK7f5zkzGVx0ebqFgWI7zESvqfdS-tQ-1R0R5_Keft6weehVrZapVivu4h4B7bB-2m42wztQ8plLpN0Lwgyjsv37i2SavHM2t0vKNF.png

5. Set up an HTTP request to call the API

Search for “HTTP Request”, then select it.

https://uploads-ssl.webflow.com/61e7d259b7746e3f63f0b6be/641dc53467deea66189fa287_YbzTDXn6dy3xaZFVPU7tLXO8BKUjzZtq6vj5DZItY7d_8kXNx-mvEzub3t8r-dMeIZ4wSWJ0M-hc1MId7mWsk1NIqOmPnh4DVnAutozk-ifHV6VExrMsd7Dxou7bnMGITaJVU1S-pv8tbGwIWc39iuGXKRID6ApM.png

Click on Configure for the configuration purpose.

https://uploads-ssl.webflow.com/61e7d259b7746e3f63f0b6be/641dc54126d0c3b6b6da49fb_u2DtwGtuh87TpbXlNiyZhH1Lu2aav_49IAfkjvKvp05A1b3y4912vVfKVw5YQM3VlUZWoh88KD8OMsmmm_yIFDzts5w9oo1fsA8VxBROO4eNw4vQTqr1wkmc_9iQ6c0HhG-kJPsZx-8RWROOV6_vLXFUUrDXctdZ.png

In End point add the Eden AI Invoice Parser API (https://api.edenai.run/v2/ocr/invoice_parser). In Request Method, select “POST”.

🔑 Note that in order to obtain your API key, you must create an account on Eden AI for free:

https://uploads-ssl.webflow.com/61e7d259b7746e3f63f0b6be/6401bba86b48d8011bccfbe4_fAApLr6dnHvA2SKriXbxW8hMVAfL3s_UwQ5JIBcxkIzGDMA_MB9MuJReMveNk2fGQDqVOTlbv6M_MNRe02UZf5J9SWe0_1ZlbEQg8roHckElrmvbJtd7tdDg3oLCNPDUFIv0UGkNNpyLsqULvejGd2E.png

Get your API key for FREE

Then, proceed with the header and parameters. In Header, add “Authorization” with the value “Bearer YOUR API KEY”. In Parameters, add “providers” with the value “mindee”. Remember to add a second parameter “language” with the value “en”.

To access the complete range of providers and languages, you may refer to the API documentation of Eden AI's Invoice Parser.

https://uploads-ssl.webflow.com/61e7d259b7746e3f63f0b6be/641dc559eb554cac99a50bd5_rsfSpw1qHwgUFJ4LZXYMCcyUVpZ-avb3Lun-CKzIj5EgeEVXjdTPQ5d15Vhj5mie5lrQ-r-N1MrKZKFeoYnSGMOwDR4SBhRB_hl2npPV1FTZW5BBKUxh3WUuY23XEMQ7WYTfR7h4aa1MQl-80k7OxdfVUvLU2coY.png

Once you are done with the headers and parameters, you will find the attachments section right underneath it. Pull down the tab and click on Add Attachment. In Attachment, write “file”. In File Path write “YOUR FILE PATH”.

To ensure that everything has been set up properly, click the preview button.

https://uploads-ssl.webflow.com/61e7d259b7746e3f63f0b6be/641dc56b26d0c318c4da5261_ncDFNSaP74GMasVIB5ImcehT_L_QdbhFyXT-OIMzYJFvM2bkHcqBRgOAB2PMZqRRAMv5E0vLELC4Ulbbxy7rkCcL8mi2Ir6tQK5qlQgfe0ewS8sDrdbZifHZoxm3eyNVQsjsIfqGoglzKU0QbSQyzZlJTlD4ry6p.png

6. Preview Response from API

After clicking on the preview button, the API will return a JSON string response. Click OK to proceed.

https://uploads-ssl.webflow.com/61e7d259b7746e3f63f0b6be/641dc58065a4a3c7398d8f23_lkR_JymWFrQSG6fmlT3GZKnXK3Opg6Vyw9ZNd0RhvAZ3yfW-BPv_GwtwwtdUahByqGKxpTerqJ7FCbmzI6Jh1pq2ykR3pi7VcWZMbd5TllfqMCBqk6RZ2nKgT_DgrdJ5t2hu_Xmn7mzgivoES4rDRxY1TzC5VEAT.png

Search for “Deserialize JSON” to parse the JSON string into a JSON Object.

https://uploads-ssl.webflow.com/61e7d259b7746e3f63f0b6be/641dc58e12254c2db5d4b7c5_mCBdqfDwSONWF4XyHSU8q4KMCWwFezxRSpmnaePhEqDtAoYoiU9jk6dvFV7avkNa3hxkC01UzQ28IEwMDy0Ofgk37S0iKbhhD4FRhL3u5D_Okk0m9JXoU9Ad3agqSP3LS8N1sJeO3taGLW8g3TLulfLN3wfC8uPj.png

7. Create a Variable for HTTP Response Content

Click on HTTP Request. In its properties, look for the Output section. In Response Content, create a variable (use the shortcut Ctrl+K in UiPath) that you’ll name “JsonResponse” (you can choose any desired name).

https://uploads-ssl.webflow.com/61e7d259b7746e3f63f0b6be/641dc59a7bd97e0172b12097_19LUTCMZ2fBUu0vO-0VZfDTrtvNiut45KLMrGw08XNfKctGYxH-omgs2OjdN4nkPxpJcQkzgopweKzxv1K4u8vNjpaepCKYyD8luaBDCHdG55r_TYYfyT14_gmgGaR2EHykV3MAWhKE0a5kTfrCdduzplDSJmpyG.png

Parse the “JsonResponse” that you have received from the API in a JSON string format.

https://uploads-ssl.webflow.com/61e7d259b7746e3f63f0b6be/641dc5a6833a06c3e2d3b4b8_oRZy1okj0hU1PLJEqEzsFypTTclygCuoegKza87bfz-g2UOa3pVL3St9Fmd0JptVdVOxOAUmiPQANoMCsEo0-VhBeoC9Mq6MW1A4XkFa9OF2sdjTwWTFVows4RPKAIvikPdoekvrnq9EhHOJA32UIt9Ndb2RWyiZ.png

Create a variable in Deserialize JSON output which will store the result of the JSON object. In our case, the variable name is “JsonObject”.

https://uploads-ssl.webflow.com/61e7d259b7746e3f63f0b6be/641dc5a6833a06c3e2d3b4b8_oRZy1okj0hU1PLJEqEzsFypTTclygCuoegKza87bfz-g2UOa3pVL3St9Fmd0JptVdVOxOAUmiPQANoMCsEo0-VhBeoC9Mq6MW1A4XkFa9OF2sdjTwWTFVows4RPKAIvikPdoekvrnq9EhHOJA32UIt9Ndb2RWyiZ.png

8. Time to test the app!

Add a Message Box to get the result (you can also store it wherever you want).

https://uploads-ssl.webflow.com/61e7d259b7746e3f63f0b6be/641dc601f01ff52e5ee97c9c_dhO4JKU-0hbDyLDnN63jZuR3H1WMjnM-HM26BDm-c3_rJt0mubEI4acmsrJ7nfQGxEXWjh-sgEn6Jwq8EflS4XpcQljqOWNyJVq805HfBmbzDDfafNCZCPi8UT6Rv7syV78341ap0vSnlARdS3LcYikufig9xAWH.png

Specify the name of the variable that contains your JSON object and the SelectToken to extract the desired entity from the object. For instance, if you want to extract the invoice total from our JsonObject variable, you can use the following code:

"Invoice Total:" + JsonObject.SelectToken("mindee.extracted_data[0].invoice_total").ToString.

Note: Remember to call the .ToString function at the end, otherwise your result may change.

https://uploads-ssl.webflow.com/61e7d259b7746e3f63f0b6be/641dc60d186fe9bd261a0d69_N3Mi1ZpV087791MX859QQNzgqZ6V8jaaLzW54bbb2ITJDKzHlgRMl17VFW5tZ7S-ce7h4ylxOucgTBEogvFsUVg0NO84IR09HbVG3hPJnx9g4UC745QaIUepzAegbKW0UOP8nCoYRniFh1HGa6zZdvLXzgGIcQAO.png

For further clarification, we're also extracting the customer name from the JsonObject:

"Customer name:"+JsonObject.SelectToken("mindee.extracted_data[0].customer_information.customer_name").ToString

https://uploads-ssl.webflow.com/61e7d259b7746e3f63f0b6be/641dc619f85b922b97f1e330_ILceUg1i9gSAu9lUhjiX1Fc_mG0NiqGFUnioN7v6bg5kHvi8VAJqyoUY5G4FzsDJ046CpXjG3zB9rLQbFi-1uCqjMSYK33HlnCH5b-USh22NKGQd3rZitxQrhXIXQfHOhLFkCh0yxM-vJhR01rfurcAbsKarOKAN.png

Save your project and Run it.

https://uploads-ssl.webflow.com/61e7d259b7746e3f63f0b6be/641dc601f01ff52e5ee97c9c_dhO4JKU-0hbDyLDnN63jZuR3H1WMjnM-HM26BDm-c3_rJt0mubEI4acmsrJ7nfQGxEXWjh-sgEn6Jwq8EflS4XpcQljqOWNyJVq805HfBmbzDDfafNCZCPi8UT6Rv7syV78341ap0vSnlARdS3LcYikufig9xAWH.png

In the console screen you can see the Invoice Total and the Customer name.

https://uploads-ssl.webflow.com/61e7d259b7746e3f63f0b6be/641dc6336d516ce368ed9458_5Vegv1mcoaVJDhHORTZJGpWJ8H_J6vLtDqW8UjvOiDG96ai6VlqwkSlZzPN6bNoaHZTONVoZXdQWRVhLHLIMPwp4-nworwEwY7ZC1m5Z0JY-YBWTcA0W13H233KWuu0RTB1DshPn7JmF-TquWO5tAavGIXrZKIrW.png

Congrats 🥳 You're all set and ready to automate your invoice processing on UiPath!

If you're interesting in more low-code tools, have a look at our step-by-step tutorials on how to bring AI to your application with Power AppsGoogle App ScriptRetoolIFTTTMake, and n8n.

Create your Account on Eden AI

Top comments (0)