Extract and structure Thai documents to Google Sheets using Typhoon OCR and Llama 3.1
Ready for 3.0What this workflow does
This AI workflow has 7 nodes and runs manually, when you click “Execute workflow”. Along the way it connects OpenRouter Chat Model and Google Sheets.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Load PDFs from doc Folder (Read/Write Files from Disk): reads a file from disk
- Extract Text with Typhoon OCR (Execute Command): runs a shell command on the n8n host
- Structure Text to JSON with LLM (Basic LLM Chain): sends a prompt to an LLM, with model: OpenRouter Chat Model
- Parse JSON to Sheet Format (Code): runs custom JavaScript code
- Save to Google Sheet (Google Sheets): append
Services it uses
Other Google Sheets + OpenRouter templates (210)
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 (7)
- Manual Trigger
n8n-nodes-base.manualTrigger - OpenRouter Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenRouter - Execute Command
n8n-nodes-base.executeCommand - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Code
n8n-nodes-base.code - Google Sheets
n8n-nodes-base.googleSheets - Read/Write Files from Disk
n8n-nodes-base.readWriteFile
From the author
⚠️ Note: This template requires a community node and works only on self-hosted n8n installations. It uses the Typhoon OCR Python package and custom command execution. Make sure to install required dependencies locally. --- Who is this for? This template is…