Templates / Extract invoices from Gmail with Laiye ADP and save them to Google Drive

Extract invoices from Gmail with Laiye ADP and save them to Google Drive

Ready for 3.0

by Laiye-ADP · 106 views · created 2026-02-03 · Invoice Processing, AI Summarization

Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-10-19.

What this workflow does

This workflow has 10 nodes and runs on Gmail events. Along the way it connects Gmail and Google Drive. It also calls adp.laiye.com over HTTP.

How it runs

Trigger: On Gmail events.

  1. Extract attachment information (Code): runs custom JavaScript code
  2. Filter documents (If): checks a condition and branches into true / false
  3. Base64 Encode Document (Extract from File): extracts data from a file (binary to propery)
  4. Create a pending folder (Google Drive): work with folder
  5. Merge: merges the data from its input branches
  6. Laiye ADP HTTP Request (HTTP Request): calls adp.laiye.com (POST)
  7. Upload Unprocessed file (Google Drive): uses Google Drive
  8. Result Processor (Code): runs custom JavaScript code
  9. Upload the extracted result document (Google Drive): uses Google Drive

Services it uses

GmailGoogle Drive

HTTP calls to: adp.laiye.com

Before you upgrade to n8n 3.0

Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.

  • Still check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll) (Gmail Trigger).

Nodes used (7)

From the author

Workflow Introduction Core Competence Our invoice extraction workflow is completed end-to-end automatically: Gmail invoice email screening → extraction of key fields from multi-format invoices → automatic archiving of results to Google Drive, replacing the…

Excerpt from Laiye-ADP's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.