OCR Document Processing from LINE/Gmail using GPT-4o to Google Workspace

Go to Workflow
0 views
Built by SOLOVIEVA ANNA SOLOVIEVA ANNA
Created on June 15, 2026

Description

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 capture incoming messages or emails.

Source Tagging: Inputs are tagged as LINE or EMAIL for later branching.

File Handling: Files are uploaded to Google Drive and converted for analysis.

OCR: An AI vision model extracts all readable text from the document image.

AI Summarization: A text model produces a concise summary.

Logging: The summary is appended to Google Sheets for record-keeping.

Email Drafting: A Gmail Draft is generated containing the OCR text and summary.

How to set up

Connect your LINE, Gmail, OpenAI, and Google Drive/Sheets credentials.

Update folder IDs, sheet names, and authentication fields as needed.

Optional: customize summarization instructions.

Customization ideas

Add translation or classification steps

Modify output format for Slack/Notion

Store files in date-based Drive folders

Nodes Used (6)

Code
n8n-nodes-base.code
Gmail
n8n-nodes-base.gmail
Google Drive
n8n-nodes-base.googleDrive
Google Sheets
n8n-nodes-base.googleSheets
HTTP Request
n8n-nodes-base.httpRequest
OpenAI
@n8n/n8n-nodes-langchain.openAi