Templates / Extract data from Thai Government letters with Mistral OCR and store in Google Sheets

Extract data from Thai Government letters with Mistral OCR and store in Google Sheets

Ready for 3.0

by Jaruphat J. ✓ · 1,864 views · created 2025-07-30 · 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 16 nodes and runs when an HTTP POST request hits its webhook URL (plus 1 other trigger). Along the way it connects Google Drive, Google Sheets and OpenAI Chat Model. It also calls api.line.me over HTTP.

How it runs

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

  1. Get Line File (HTTP Request): calls an HTTP API
  2. Download File (Drive) (Google Drive): download
  3. Set Line Data (Edit Fields (Set)): sets 3 fields: source, fileName, fileId
  4. Set Drive Data (Edit Fields (Set)): sets 3 fields: source, fileName, fileId
  5. Merge: merges the data from its input branches
  6. Check File Type (If): checks a condition and branches into true / false
  7. Extract text IMG (Mistral AI): uses Mistral AI
  8. Extract text PDF (Mistral AI): uses Mistral AI
  9. Information Extractor: extracts structured fields from text with AI, with model: OpenAI Chat Model
  10. Write to Google Sheet (Google Sheets): append

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

Services it uses

Google DriveGoogle SheetsOpenAI Chat Model

HTTP calls to: api.line.me

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.

Nodes used (11)

From the author

LINE OCR Workflow to Extract and Save Thai Government Letters to Google Sheets This template automates the extraction of structured data from Thai government letters received via LINE or uploaded to Google Drive. It uses Mistral AI for OCR and OpenAI for…

Excerpt from Jaruphat J.'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.