# 🍲  How to import documents from Google Drive into Parsio with n8n

Source: https://help.parsio.io/data-export-integrations/how-to-import-documents-from-google-drive-into-parsio-with-n8n

This guide explains how to automatically import documents from Google Drive into **Parsio** using **n8n**.

Once the workflow is active, every new file uploaded to a specific Google Drive folder will be sent to Parsio and processed automatically using your parsing rules or extraction setup.

## What you will need

- A Google Drive account
- A Parsio account
- An n8n instance (cloud or self-hosted)
- An existing Parsio inbox with parsing rules or a configured parser

## Step 1: Create a folder in Google Drive

Create a dedicated folder in Google Drive.

This folder will be used for documents that should be parsed by Parsio.  
Every new file added to this folder will be picked up automatically by n8n.

## Step 2: Create a new workflow in n8n

Open n8n and create a new, empty workflow.

Add **Google Drive** as the first node and choose the trigger:

- **On changes involving a specific folder**

This trigger watches the selected folder for new files.

![Shot 2025-12-18 at 14.36.25@2x.jpg](https://cdn.eniston.com/bases/bc035352-b1ce-4e95-ba65-2f4b77bdd3b7/attachments/1766342894_694840eee1619.jpg)

## Step 3: Connect Google Drive to n8n

In the **Credentials** section, click **Create new credential**.

Connecting Google Drive requires creating a Google Cloud project and OAuth credentials.  
This process is outside the scope of this article, but it is well documented by n8n.

Follow this guide:  
<https://docs.n8n.io/integrations/builtin/credentials/google/oauth-single-service/>

Once connected:

- Select the Google Drive folder you created earlier
- Save the node

![Shot 2025-12-18 at 14.55.18@2x.jpg](https://cdn.eniston.com/bases/bc035352-b1ce-4e95-ba65-2f4b77bdd3b7/attachments/1766342926_6948410e0045c.jpg)

## Step 4: Test the Google Drive trigger

Upload a sample file into the Google Drive folder.

In n8n, click **Test this trigger** (or **Fetch test event**).

You should see the file metadata appear in the output panel.  
This confirms that the trigger is working correctly.

![Shot 2025-12-18 at 14.59.51@2x.jpg](https://cdn.eniston.com/bases/bc035352-b1ce-4e95-ba65-2f4b77bdd3b7/attachments/1766342948_69484124bbdc8.jpg)

## Step 5: Download the file from Google Drive

Close the trigger configuration and add a second node:

- **Google Drive → File actions → Download file**

![Shot 2025-12-18 at 15.02.16@2x.jpg](https://cdn.eniston.com/bases/bc035352-b1ce-4e95-ba65-2f4b77bdd3b7/attachments/1766343070_6948419e45802.jpg)

Configure the node:

- **Resource:** File
- **Operation:** Download
- **File:**
    
    
    - Select **By ID**
    - Use the expression: `{{ $json.id }}`

This ensures that n8n downloads the same file that triggered the workflow.

![Shot 2025-12-18 at 15.06.15@2x.jpg](https://cdn.eniston.com/bases/bc035352-b1ce-4e95-ba65-2f4b77bdd3b7/attachments/1766343091_694841b3bf036.jpg)

## Step 6: Install the Parsio node

Add a new node and search for **Parsio**.

If needed, click **Install node**, then select the action:

- **Import a binary file and parse document**

![Shot 2025-12-21 at 19.51.53@2x.jpg](https://cdn.eniston.com/bases/bc035352-b1ce-4e95-ba65-2f4b77bdd3b7/attachments/1766343130_694841da99680.jpg)

## Step 7: Connect your Parsio account

In the Parsio node:

1. Click **Create new credential**
2. Open your Parsio account settings
3. Copy your API key
4. Paste it into n8n and save

No OAuth setup is required.

![Shot 2025-12-21 at 19.30.22@2x.jpg](https://cdn.eniston.com/bases/bc035352-b1ce-4e95-ba65-2f4b77bdd3b7/attachments/1766343156_694841f45204a.jpg)

## Step 8: Configure the Parsio import

Configure the Parsio node with the following settings:

- **Inbox:** Select the Parsio inbox where documents should be imported
- **Document file (Binary):** `data`
- **Filename:** `{{ $json.name }}`

![Shot 2025-12-21 at 19.56.41@2x.jpg](https://cdn.eniston.com/bases/bc035352-b1ce-4e95-ba65-2f4b77bdd3b7/attachments/1766343429_6948430500c93.jpg)

Optional:

- You can pass additional metadata as JSON
- This metadata will be attached to the document and available in the parsed results

## Step 9: Run and publish the workflow

Click **Execute step** to test the workflow.

You should see the document appear in your Parsio inbox and get parsed automatically.

![Shot 2025-12-21 at 19.58.48@2x.jpg](https://cdn.eniston.com/bases/bc035352-b1ce-4e95-ba65-2f4b77bdd3b7/attachments/1766343541_694843750d57f.jpg)

When everything looks correct:

- Close the node settings
- Click **Publish workflow**

![Shot 2025-12-21 at 19.59.30@2x.jpg](https://cdn.eniston.com/bases/bc035352-b1ce-4e95-ba65-2f4b77bdd3b7/attachments/1766343583_6948439f573c8.jpg)

## Done 🎉

Your automation is now live. Every time you upload a document to the selected Google Drive folder:

- The file is downloaded by n8n
- Imported into Parsio
- Parsed using your configured extraction rules
