OCR document processing from LINE/Gmail using GPT-4o to Google Workspace
Ready for 3.0What 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).
- Workflow Configuration (Edit Fields (Set)): sets 2 fields: lineChannelAccessToken, googleDriveFolderId
- Tag Source - EMAIL (Edit Fields (Set)): sets 2 fields: source, googleDriveFolderId
- If: checks a condition and branches into true / false
- Code: runs custom JavaScript code
- HTTP Request: calls an HTTP API
- Merge: merges the data from its input branches
- Tag Source - LINE (Edit Fields (Set)): sets 1 field: source
- Upload to Google Drive (Google Drive): uses Google Drive
- Convert to Base (Code): runs custom JavaScript code
- HTTP Request: calls an HTTP API
…plus 5 more steps. See the full node list below.
Services it uses
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)
- Webhook
n8n-nodes-base.webhook - Gmail Trigger
n8n-nodes-base.gmailTrigger - Edit Fields (Set)
n8n-nodes-base.set - Merge
n8n-nodes-base.merge - Google Drive
n8n-nodes-base.googleDrive - Code
n8n-nodes-base.code - Gmail
n8n-nodes-base.gmail - If
n8n-nodes-base.if - Google Sheets
n8n-nodes-base.googleSheets - HTTP Request
n8n-nodes-base.httpRequest - OpenAI
@n8n/n8n-nodes-langchain.openAi - Wait
n8n-nodes-base.wait
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…