Templates / OCR document processing from LINE/Gmail using GPT-4o to Google Workspace

OCR document processing from LINE/Gmail using GPT-4o to Google Workspace

Ready for 3.0

by SOLOVIEVA ANNA ✓ · 126 views · created 2025-12-02 · Document Extraction, 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 AI workflow has 17 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Gmail, Google Drive, Google Sheets and OpenAI.

How it runs

Trigger: When an HTTP POST request hits its webhook URL (plus 1 other trigger).

  1. Workflow Configuration (Edit Fields (Set)): sets 2 fields: lineChannelAccessToken, googleDriveFolderId
  2. Tag Source - EMAIL (Edit Fields (Set)): sets 2 fields: source, googleDriveFolderId
  3. If: checks a condition and branches into true / false
  4. Code: runs custom JavaScript code
  5. HTTP Request: calls an HTTP API
  6. Merge: merges the data from its input branches
  7. Tag Source - LINE (Edit Fields (Set)): sets 1 field: source
  8. Upload to Google Drive (Google Drive): uses Google Drive
  9. Convert to Base (Code): runs custom JavaScript code
  10. HTTP Request: calls an HTTP API

…plus 5 more steps. See the full node list below.

Services it uses

GmailGoogle DriveGoogle SheetsOpenAI

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 IMAP Trigger).

Nodes used (12)

From the author

Who this is for Users who frequently receive images or documents via LINE or email Teams needing automatic OCR + AI summarization Anyone who wants hands-free document processing and structured storage How it works Triggers: LINE Webhook and Gmail IMAP Trigger…

Excerpt from SOLOVIEVA ANNA'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.