Skip to main content

Extract order details from LINE messages and photos to Google Sheets with OpenAI

Workflow preview

Workflow preview
100%
Extract order details from LINE messages and photos to Google Sheets with OpenAI preview
Open on n8n.io

1. Workflow Overview

Extract order details from LINE messages and photos to Google Sheets with OpenAI Automatically extract order information from text messages or handwritten memo photos sent via LINE, confirm with th...

Best for

  • Document Extraction automation workflows
  • AI Chatbot automation workflows
  • intermediate n8n builders looking for reusable templates

Tools used

n8n-nodes-base.stickynote, n8n-nodes-base.googlesheetstool, @aotoki/n8n-nodes-line-messaging.linemessaging, @aotoki/n8n-nodes-line-messaging.linemessagingdata, n8n-nodes-base.switch, @n8n/n8n-nodes-langchain.agent, @n8n/n8n-nodes-langchain.lmchatopenai, @n8n/n8n-nodes-langchain.memorybufferwindow

Source and attribution

This workflow is cataloged by N8N Workflows and links back to its original n8n.io source page by daisuke.

Original n8n.io source

1.1 Workflow description

Title
Extract order details from LINE messages and photos to Google Sheets with OpenAI
Workflow name
Extract order details from LINE messages and photos to Google Sheets with OpenAI

Extract order details from LINE messages and photos to Google Sheets with OpenAI

Automatically extract order information from text messages or handwritten memo photos sent via LINE, confirm with the user, and append to a Google Sheets tracking sheet.

How it works

  1. Receives text or image messages from LINE Messaging API
  2. Routes messages by type — text goes directly to the AI Agent, images are first downloaded via LINE API
  3. The AI Agent (GPT-4o) analyzes the input, extracts order details, and asks the user for confirmation
  4. Once approved, the order is appended as a new row in Google Sheets

Setup steps

  1. LINE Messaging API: Create a LINE channel and set the webhook URL to this workflow's trigger endpoint
  2. OpenAI Credentials: Set up your OpenAI API key in n8n Credentials
  3. Google Sheets Credentials: Set up Google Sheets OAuth2 in n8n Credentials
  4. Configure Spreadsheet: Open the "Append Row to Google Sheets" node and set your Spreadsheet ID and sheet name
  5. Activate the workflow

1.2 Logical Blocks

This catalog entry is organized from the workflow JSON. The node-level section below shows the executable blocks available for review before importing the template.

2. Block-by-Block Analysis

Block 1 - Workflow Overview

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 2 - Routing Section

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 3 - Append Row to Google Sheets

Type / Role
n8n-nodes-base.googleSheetsTool - googleSheetsTool
Config choices
Version 4.7

Block 4 - Reply via LINE

Type / Role
@aotoki/n8n-nodes-line-messaging.lineMessaging - lineMessaging
Config choices
Version 1

Block 5 - Download LINE Image

Type / Role
@aotoki/n8n-nodes-line-messaging.lineMessagingData - lineMessagingData
Config choices
Version 1

Block 6 - Route by Message Type

Type / Role
n8n-nodes-base.switch - switch
Config choices
Version 3.4

Block 7 - AI Processing Section1

Type / Role
n8n-nodes-base.stickyNote - stickyNote
Config choices
Version 1

Block 8 - AI Agent - Order Extractor1

Type / Role
@n8n/n8n-nodes-langchain.agent - agent
Config choices
Version 1.7

Block 9 - OpenAI GPT-4o1

Type / Role
@n8n/n8n-nodes-langchain.lmChatOpenAi - lmChatOpenAi
Config choices
Version 1.2

Block 10 - Simple Memory - Chat History1

Type / Role
@n8n/n8n-nodes-langchain.memoryBufferWindow - memoryBufferWindow
Config choices
Version 1.3

Block 11 - Line Messaging Trigger1

Type / Role
@aotoki/n8n-nodes-line-messaging.lineMessagingTrigger - lineMessagingTrigger
Config choices
Version 1

3. Summary Table

Workflow Extract order details from LINE messages and photos to Google Sheets with OpenAI
Complexity intermediate
Nodes 11
Categories Document Extraction, AI Chatbot
Author daisuke
Published 20 Feb 2026

4. Reproducing the Workflow from Scratch

  1. 1. Download the workflow JSON

    Use the JSON export at /data/workflows/13531/13531.json as the source template for this automation.

  2. 2. Import the template into n8n

    Open n8n, import the downloaded JSON, and review each node before activating the workflow.

  3. 3. Configure credentials and variables

    Replace placeholder credentials, API keys, webhook URLs, account IDs, and environment-specific values with your own settings.

  4. 4. Test with sample data

    Run the workflow manually or in a staging workspace, inspect node output, and confirm downstream systems receive the expected data.

  5. 5. Activate and monitor

    Enable the workflow only after testing, then monitor executions, errors, and rate limits during the first production runs.

5. General Notes & Resources

Review imported nodes carefully before activation. This catalog entry is intended to help you inspect the workflow structure, understand required services, and find related templates faster.

Node names, credentials, schedules, webhook paths, and external service limits may need adjustment for your workspace.

Frequently asked questions

What does Extract order details from LINE messages and photos to Google Sheets with OpenAI do?

Extract order details from LINE messages and photos to Google Sheets with OpenAI Automatically extract order information from text messages or handwritten memo photos sent via LINE, confirm with th...

What do I need before importing this workflow?

Review the workflow JSON, configure any required credentials in n8n, and test the automation in a safe workspace before using it in production.

Can I customize this workflow?

Yes. Use the block-by-block analysis and the downloadable JSON to inspect each node, then adjust credentials, prompts, schedules, filters, or destinations for your Document Extraction, AI Chatbot use case.