> For the complete documentation index, see [llms.txt](https://docs.mindee.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mindee.com/v1/3rd-party-integrations/zapier/create-a-zap-using-any-asynchronous-ocr-api.md).

# Create a zap using any asynchronous OCR API

In this post, we’ll build an ID Document processing system: Id documents that arrive on a Google Drive folder will be automatically extracted, and all the data inserted into a Google Sheet.

The best part: No coding required! It will “just work” and will be completely “hands-free” - all the work will be done automatically! If a Google Sheet is not your desired outcome - there are thousands of apps connected with Zapier, so this tutorial can be easily modified to interact with any other application.

The tools required:

1. A Google account.
2. A free Zapier account (sign up at [Zapier.com](https://zapier.com/))
3. A [Mindee account](https://platform.mindee.com/) with an API key.

Mindee proposes a large set of Asynchronous APIs, among which :

* Invoices & Financial Documents
* Any docTI products

## Zapier

Zapier is a no code service that connects different tools with a secure no-code interface.

They call the connections "Zaps". Each Zap has a "trigger" an event that starts the process, and an "action" that occurs after the trigger has fired.

In the case of the Zap we are building, you will need a premium account.

If you are a new user (or if you have a new Zapier account), you'll have free premium access for a week (but your Zap will turn off when the trial ends).

Once you have created a Zapier account, you’ll land at the app dashboard. Click the black "**Create**” button:

<figure><img src="/files/iJYlzR2bOQr2cvQmUkF6" alt=""><figcaption></figcaption></figure>

\
Then Click on **Zaps**

A workflow builder interface is then displayed, with a COPILOT. You can enter in the copilot chat the following text:

{% hint style="info" %}
*When a new ID Document is received, extract the data using Mindee OCR and then copy the extracted data on a Google Sheet.*
{% endhint %}

<figure><img src="/files/RBubCuZU2O7lUvFREGEV" alt=""><figcaption></figcaption></figure>

The Copilot will propose 3 zaps that you can validate by clicking on the “**+**”:

* Google Drive
* Mindee OCR
* Google Sheet

Let’s Now configure each step!

## Step 1 Google Drive

<figure><img src="/files/YpyQfC26bSorRjuFiJZ1" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Make sure the Trigger Event is **New File in Folder.**
{% endhint %}

Link it to your google account and click on continue.

<figure><img src="/files/GH45ZebnzRJNVOjjthyw" alt=""><figcaption></figcaption></figure>

Configure your Google Drive component :

* Choose My Google Drive (or a shared drive)
* Define your folder. In this example we defined it as “Zapier”
* Here we choose to not include deleted files.
* Add a file on the Google Drive folder. You can use this test file.

<figure><img src="/files/fjREvX5L8LRKIp1HVUDN" alt=""><figcaption></figcaption></figure>

Click on Continue, it’s time to choose a test file. Choose the file you just uploaded on your drive.

<figure><img src="/files/xL8FNQnP0REGmjLWQ7wl" alt=""><figcaption></figcaption></figure>

## Step 2 Mindee OCR

First define you **Action event** and validate “**Any Async API**” is chosen.

Then connect your Mindee Account.

<figure><img src="/files/1cb8mwYdKXeWZTNv4t9o" alt=""><figcaption></figcaption></figure>

A popup will open with a form, where you will be asked to:

* Enter your account name
* Enter an API key.

<figure><img src="/files/miwRcHZ1vjzz45WKlQi5" alt=""><figcaption></figcaption></figure>

If you do not have a Mindee Account, you can create one on the [Mindee platform](https://platform.mindee.com/).

Then create an API Key by following this [how to](/v1/get-started/create-api-key.md).

Once connected to your Mindee account, click on **Continue.**

<figure><img src="/files/s1J81ZlWMx1hEbm7n6Mk" alt=""><figcaption></figcaption></figure>

Let’s now configure the Mindee OCR Component:

* Define the API URL: Go on your product page ( [International Id](https://platform.mindee.com/mindee/international_id)) on Mindee platform and click on documentation menu.
* Copy the URL displayed and paste it under Your API URL on Zapier.
* Define the API version ( You can find it in the URL): 2 in our example.\
  [https://api.mindee.net/v1/products/mindee/international\_id\*\*/v2\*\*/predict\_async](https://api.mindee.net/v1/products/mindee/international_id/v2/predict_async)

<figure><img src="/files/kbSaEin7Ar28BhYv4gyx" alt=""><figcaption></figcaption></figure>

* Under Your document, choose the option: **File(Exists but not shown)** and click on **Continue.**

Click on **Continue** to test the Mindee OCR component.

<figure><img src="/files/X95jQ8d2eKldX10OZd44" alt=""><figcaption></figcaption></figure>

You should see the prediction of the document. Click on Continue to finalise your Zap with the extracted data copied on a google sheet row.

## Step 3 Google Sheet

We've extracted the data from the Google Drive file- now we want to do something with that attachment.

For the Setup, Select the following:

* Action Event: Create Spreadsheet Row.

Then, connect your Google account to Zapier.

<figure><img src="/files/1zEjWSFZRdf2841gb22b" alt=""><figcaption></figcaption></figure>

In this example, we'll add a row in a Google Sheet with all the details from the Id document:

First let’s create the google sheet:

On your Drive:

* Create a new Google Sheet: In our Example *Zapier extraction*.
* Rename the sheet: Ids
* Add as headers the fields you want to extract. You can propose the name your want here, as in a next step we will add a mapping between the payload of Mindee and the columns on the Google sheet. Don’t forget to add the name of the file !

Now, let’s configure the component. In this example we limited the number of fields to be copied to the Google Sheet but the International Id API propose more than 15 fields.

For each column of your file map it to a key from the Mindee payload. Each field can propose several features. By Default choose the **value**.

The following fields were mapped in the component:

* Document Name
* Document Type
* Given Names
* Birth Date
* Birth Place
* Document Number

<figure><img src="/files/awKRdQiQc9uTH91SLbBX" alt=""><figcaption></figcaption></figure>

\
Once the mapping is done Click on **Continue** to complete your test.

You can check your Google Sheet where the row have been added.

That’s it. Now you can name your Zap and publish it for use!

## Testing your Zap

Now you can test your Zap by adding another file to the Google drive, and after a few minutes - you’ll see the values appear in your spreadsheet automatically from the Zap.

## No Coding with Mindee

With just a few minutes of work (and with zero coding), we have build a fully functional KYC processing system - Ids are added to a google Drive and are automatically identified, extracted, and the results are placed in a Google Sheet.

We're very excited about the possible opportunities that no-coding options can bring to the Mindee Community!


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.mindee.com/v1/3rd-party-integrations/zapier/create-a-zap-using-any-asynchronous-ocr-api.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
