Back to Templates
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 information extraction, saving results to a Google Sheet.
This n8n workflow:
data
and the following columns Example Google Sheet:
book_id
, date
, subject
, to
, attach
, detail
, signed_by
, signed_by_position
, contact_phone
, contact_email
, download_url
googleDriveOAuth2Api
googleSheetsOAuth2Api
httpHeaderAuth
for LINE Messaging APIopenAiApi
mistralCloudApi
LINE_CHANNEL_ACCESS_TOKEN
GDRIVE_INVOICE_FOLDER_ID
GSHEET_ID
MISTRAL_API_KEY
/line-invoice
)Google Drive Trigger
Information Extractor
node to match your document layoutLINE Reply
message format or use Flex MessageMove File
node if you want to archive to a different folder@n8n/n8n-nodes-base.mistralAi