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_urlgoogleDriveOAuth2ApigoogleSheetsOAuth2ApihttpHeaderAuth for LINE Messaging APIopenAiApimistralCloudApiLINE_CHANNEL_ACCESS_TOKENGDRIVE_INVOICE_FOLDER_IDGSHEET_IDMISTRAL_API_KEY/line-invoice)Google Drive TriggerInformation 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