Skip to main content

Extract and save invoice data from Google Drive to Sheets with Dumpling AI

Workflow preview

Workflow preview
100%
Extract and save invoice data from Google Drive to Sheets with Dumpling AI preview
Open on n8n.io

Important notice

This workflow is provided as-is. Please review and test before using in production.

1. Workflow Overview

Who is this for? This workflow is perfect for operations teams, accountants, e commerce businesses, or finance managers who regularly process digital invoices and need to automate data extraction a...

Best for

  • Invoice Processing automation workflows
  • AI Summarization automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.googledrivetrigger, n8n-nodes-base.googledrive, n8n-nodes-base.extractfromfile, n8n-nodes-base.httprequest, n8n-nodes-base.code, n8n-nodes-base.splitout, n8n-nodes-base.googlesheets, n8n-nodes-base.stickynote

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by Yang.

Original n8n.io source

1.1 Workflow description

Title
Extract and save invoice data from Google Drive to Sheets with Dumpling AI
Workflow name
Extract and save invoice data from Google Drive to Sheets with Dumpling AI

Who is this for?

This workflow is perfect for operations teams, accountants, e-commerce businesses, or finance managers who regularly process digital invoices and need to automate data extraction and record-keeping.


What problem is this workflow solving?

Manually reading invoice PDFs, extracting relevant data, and entering it into spreadsheets is time-consuming and error-prone. This workflow automates that process—watching a Google Drive folder, extracting structured invoice data using Dumpling AI, and saving the results into Google Sheets.


What this workflow does

  1. Watches a specific Google Drive folder for new invoices.
  2. Downloads the uploaded invoice file.
  3. Converts the file into a Base64 format.
  4. Sends the file to Dumpling AI’s extract-document endpoint with a detailed parsing prompt.
  5. Parses Dumpling AI’s JSON response using a Code node.
  6. Splits the items array into individual rows using the Split Out node.
  7. Appends each invoice item to a preformatted Google Sheet along with the full header metadata (order number, PO, addresses, etc.).

Setup

  1. Google Drive Setup

    • Create or select a folder in Google Drive and place the folder ID in the trigger node.
    • Make sure your n8n Google Drive credentials are authorized for access.
  2. Google Sheets

    • Create a Google Sheet with the following headers: Order number, Document Date, Po_number, Sold to name, Sold to address, Ship to name, Ship to address, Model, Description, Quantity, Unity price, Total price
    • Paste the Sheet ID and sheet name (Sheet1) into the Google Sheets node.
  3. Dumpling AI

    • Sign up at Dumpling AI
    • Go to your account settings and generate your API key.
    • Paste this key into the HTTP header of the Dumpling AI request node.
    • The endpoint used is: https://app.dumplingai.com/api/v1/extract-document
  4. Prompt (already included)

    • This prompt extracts: order number, document date, PO number, shipping/billing details, and detailed line items (model, quantity, unit price, total).

How to customize this workflow to your needs

  • Adjust the Google Sheet fields to fit your invoice structure.
  • Modify the Dumpling AI prompt if your invoices have additional or different data points.
  • Add filtering logic if you want to handle different invoice types differently.
  • Replace Google Sheets with Airtable or a database if preferred.
  • Use a different trigger like an email attachment if invoices come via email.

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Google Drive Trigger – Watch Folder for New Files

Type / Role
n8n-nodes-base.googleDriveTrigger - googleDriveTrigger
Config choices
Version 1

Block 2 - Download Invoice File

Type / Role
n8n-nodes-base.googleDrive - googleDrive
Config choices
Version 3

Block 3 - Convert invoice File to Base64

Type / Role
n8n-nodes-base.extractFromFile - extractFromFile
Config choices
Version 1

Block 4 - Send file to Dumpling AI for Data Extraction

Type / Role
n8n-nodes-base.httpRequest - httpRequest
Config choices
Version 4.2

Block 5 - Parse Dumpling AI JSON Response

Type / Role
n8n-nodes-base.code - code
Config choices
Version 2

Block 6 - Split line Items from Invoice

Type / Role
n8n-nodes-base.splitOut - splitOut
Config choices
Version 1

Block 7 - Save Data to Google Sheet

Type / Role
n8n-nodes-base.googleSheets - googleSheets
Config choices
Version 4.5

Block 8 - Sticky Note

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

3. Summary Table

Workflow Extract and save invoice data from Google Drive to Sheets with Dumpling AI
Complexity intermediate
Nodes 8
Categories Invoice Processing, AI Summarization
Author Yang
Published 14 May 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/4059/4059.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Extract and save invoice data from Google Drive to Sheets with Dumpling AI do?

Who is this for? This workflow is perfect for operations teams, accountants, e commerce businesses, or finance managers who regularly process digital invoices and need to automate data extraction a...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Invoice Processing, AI Summarization use case.