Skip to main content

Extract invoice data from Google Drive to Sheets using PDF.co AI parser

Workflow preview

Workflow preview
100%
Extract invoice data from Google Drive to Sheets using PDF.co AI parser preview
Open on n8n.io

Important notice

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

1. Workflow Overview

This workflow looks inside a Google Drive folder , parses each PDF invoice with PDF.co’s AI Invoice Parser , and appends vendor, amount, dates, and a link to the file into a Google Sheet . ️ Setup...

Best for

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

Tools used

n8n-nodes-base.manualtrigger, n8n-nodes-base.stickynote, n8n-nodes-base.googledrive, n8n-nodes-base.set, n8n-nodes-pdfco.pdfco api, n8n-nodes-base.googlesheets

Source and attribution

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

Original n8n.io source

1.1 Workflow description

Title
Extract invoice data from Google Drive to Sheets using PDF.co AI parser
Workflow name
Extract invoice data from Google Drive to Sheets using PDF.co AI parser

This workflow looks inside a Google Drive folder, parses each PDF invoice with PDF.co’s AI Invoice Parser, and appends vendor, amount, dates, and a link to the file into a Google Sheet.


⚙️ Setup Instructions

1) Connect Google Drive (OAuth2)

  1. In n8n → Credentials → New → Google Drive (OAuth2)
  2. Sign in to the Google account that owns your invoice PDFs and allow access.
  3. In the Get Parent Folder ID node, set your search to the folder name (e.g., n8n Invoices).
  4. In Get Invoice ID’s, ensure Filter → folderId uses the ID from the previous node (already wired in this template).

> Tip: The workflow builds a Drive link like
> https://drive.google.com/file/d/<FILE_ID>
> Make sure those files are at least viewable via link (e.g., Anyone with the link – Viewer) so PDF.co can fetch them.


2) Connect PDF.co (AI Invoice Parser)

  1. Create a PDF.co account and copy your API Key.
  2. In n8n → Credentials → New → PDF.co API, paste your key and Save.
  3. In the AI Invoice Parser node, keep URL mapped to the Drive link coming from Convert to URL. The node is already set to use your PDF.co credentials.

> What it does: Sends each Drive file URL to PDF.co’s AI Invoice Parser and returns structured JSON (vendor, totals, dates, line items, etc.). The next Set Fields node maps those fields to simple columns for Sheets.


3) Connect Google Sheets (OAuth2)

  1. In n8n → Credentials → New → Google Sheets (OAuth2)
  2. Log in with your Google account and grant access.
  3. In the Store Data in Google Sheets node, select your Spreadsheet and Sheet (this template is set to:
    • Spreadsheet: Invoice Template (1a6QBIQkr7RsZtUZBi87NwhwgTbnr5hQl4J_ZOkr3F1U)
    • Tab: Due (gid: 1002294955)
  4. The node is configured to Append or Update by Url so repeats won’t duplicate.

Expected columns on the Due tab:

  • Url (Drive link we generated)
  • Vendor
  • Invoice Date
  • Total
  • Due Date

▶️ How to Run

  1. Put your PDF invoices in the “n8n Invoices” folder (or the folder name you used).
  2. Click Execute Workflow in n8n.
  3. Watch items flow:
    • Get Parent Folder ID → finds folder
    • Get Invoice ID’s → lists files in that folder
    • Convert to URL → turns each file ID into a shareable link
    • AI Invoice Parser → extracts JSON from each PDF
    • Set Fields → maps fields for Sheets
    • Store Data in Google Sheets → appends/updates the Due sheet

🧩 Troubleshooting

  • PDF.co can’t fetch the file: Ensure your Drive file link is accessible (e.g., Anyone with the link – Viewer), or use a URL that PDF.co can reach.
  • No rows added: Confirm the Google Sheets credential is selected and the Sheet tab (gid) matches your target.
  • Wrong folder: Update the search string in Get Parent Folder ID to match your Drive folder name.

📬 Contact

Need help customizing this (e.g., auto-sharing Drive links, enriching the Sheet, or pushing to Slack/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 - When clicking ‘Execute workflow’

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

Block 2 - Sticky Note2

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

Block 3 - Sticky Note55

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

Block 4 - Get Parent Folder ID

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

Block 5 - Get Invoice ID's

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

Block 6 - Convert to URL

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 7 - AI Invoice Parser

Type / Role
n8n-nodes-pdfco.PDFco Api - PDFco Api
Config choices
Version 1

Block 8 - Set Fields

Type / Role
n8n-nodes-base.set - set
Config choices
Version 3.4

Block 9 - Store Data in Google Sheets

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

Block 10 - Sticky Note61

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

Block 11 - Sticky Note62

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

Block 12 - Sticky Note64

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

3. Summary Table

Workflow Extract invoice data from Google Drive to Sheets using PDF.co AI parser
Complexity intermediate
Nodes 12
Categories AI Summarization, Multimodal AI
Author Robert Breen
Published 26 Aug 2025

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/7862/7862.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 invoice data from Google Drive to Sheets using PDF.co AI parser do?

This workflow looks inside a Google Drive folder , parses each PDF invoice with PDF.co’s AI Invoice Parser , and appends vendor, amount, dates, and a link to the file into a Google Sheet . ️ Setup...

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 AI Summarization, Multimodal AI use case.