A Step-by-Step Guide to bring AI to your App using Zapier

A Step-by-Step Guide to bring AI to your App using Zapier

In this tutorial, we'll show you how to integrate Eden AI's Invoice parser API into your software using Zapier to help streamline your financial operations and free up time for more important tasks.

The same process applies if you want to include other features like : Image tagging, Explicit content detection, Text analysis and many more AI APIs we offer.

Build AI on Zapier with Eden AI

Eden AI was created for no-coders having difficulties with choosing the right AI provider and/or integrating several APIs. Managing multiple accounts for each app can be a tough job, but with Eden AI, you can connect and manage all your APIs on a single account.

Since some AI providers can be complex to use, we wanted to simplify the “no code” part and make AI available to as many people as possible. 

Eden AI allows you to solve multiple AI tasks on Zapier:

Let's practice with 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 format) such as the invoice ID, total amount due, invoice date, customer name, etc.

Invoice Processing implies the necessity of software and technology to automate the processing and management of invoices. It includes tasks such as capturing invoice data, validating it in comparison to purchase orders, and routing it for approval, payment and archiving. The goal of AI in invoice processing is to improve efficiency, accuracy, and speed in handling invoices without any human intervention.

How to bring invoice parsing to your app using Zapier?

If you're looking for an easier and faster way to implement invoice parsing to your app, skip the tutorial and watch the video below:

1. Get started with Zapier

Go to the “Zaps” menu, then create a new Zap.

2. Create your first step in Zapier

Let's create our first step by choosing a “Trigger”. A trigger in Zapier is an event that starts a workflow or a series of automated actions. In other words, it is the initial event that sets the "zap" in motion. Triggers can be initiated by various events, such as the creation of a new item in a spreadsheet, the receipt of an email, or the submission of a form.

This step will allow you to get our invoice content to perform detection, for example, a trigger to get your invoice content from a Google Drive file.

Then, select the folder where your invoices will be stored:

3. Set up a “Code by Zapier” action

You can now add a new step that will perform an Action: run a Python code in order to call Invoice Parser API. Add a new Code by Zapier step as such and choose Run Python:


To use this Action with success, you will need a paid plan on your Zapier account. In fact, with the free plan, there is a 1 second timeout on the python script, which is not enough to call Eden AI APIs. 

Starter is the minimum, it allows 10 seconds requests, but we recommend plans from Professional to Company where you can run scripts up to 30 seconds.


Then you will to set up an Input Data to get your file from Drive trigger:

And write the code to call the Invoice Parser API:

Here is the code snippet that you can directly paste in the Code by Zapier module:

import json
import requests

headers = {"accept":"application/json","Authorization": "Bearer Your API Key"}

data={"providers": "microsoft", "language":"en"}

invoice= requests.get(input_data['file']).content
files = {"file": ("settings.jpg", invoice, "image/jpeg")}

response = requests.post(url, data=data, files=files, headers=headers)

result = json.loads(response.text)

You just need to replace Authorization value with your Eden AI API key.

🔑Note that in order to obtain your API key, you'll need to create an account on Eden AI beforehand:

This Action will return the extraction of the invoice in a structured output:

4. Parse extracted data in Google Sheet

Once invoice data has been extracted by Eden AI Invoice Parser API, you can get and store this data wherever you want (your ERP, Airtable, Google sheet, etc.).

Let's say you want to keep the results stored in a Google Sheet. you just need to add an Google Sheet action: Create Spreadsheet Row in Google Sheets

You can select all elements from the third step (Code by Zapier) that returns Eden AI API response.

You are now ready to use AI in Zapier thanks to Eden AI APIs!

Get a preview of our integration on Zapier

We released some ready-to-use modules of Eden AI that you can directly use here

This app allows you to use perform AI on text data such as summarization, text generation, sentiment analysis, keyword extraction, topic extraction, translation, language detection, etc.

More features will soon be added to the application: syntactic analysis of documents (receipt, invoice, CV, ID), voice recognition, and image processing (detection of objects, faces, explicit content, image generation, etc.).

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 Apps, Google App Script, Retool, Make, IFTTT, n8n, Bubble, and Dataiku.

Related Posts

Try Eden AI for free.

You can directly start building now. If you have any questions, feel free to schedule a call with us!

Get startedContact sales