{
  "name": "Automate business card management with LINE, AI, and Google Sheets",
  "nodes": [
    {
      "id": "2fad63fd-4433-407e-b759-6bb893930171",
      "name": "Workflow Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -272,
        96
      ],
      "parameters": {
        "width": 508,
        "height": 409,
        "content": "## How it works\n1. Receive business card image via LINE webhook\n2. Extract text using Google Gemini AI\n3. Parse structured data (company, name, email, phone, etc.)\n4. Save to Google Sheets and upload "
      }
    },
    {
      "id": "afc3a258-2988-4b82-b837-6c1bd6ae9750",
      "name": "Step 1 Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        256,
        96
      ],
      "parameters": {
        "width": 588,
        "height": 320,
        "content": "## Trigger & Config\nReceives LINE webhook events and loads configuration settings."
      }
    },
    {
      "id": "3800f883-4e1e-40b9-bbff-0124f24d1b27",
      "name": "Step 2 Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        864,
        96
      ],
      "parameters": {
        "width": 380,
        "height": 704,
        "content": "## AI Processing\nDownloads image from LINE and extracts business card info using Gemini."
      }
    },
    {
      "id": "1ca79a58-e64b-44f4-8dac-41e612048337",
      "name": "Step 3 Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1264,
        96
      ],
      "parameters": {
        "width": 1100,
        "height": 704,
        "content": "## Data Storage\nParses extracted text, uploads image to Drive, and saves data to Sheets."
      }
    },
    {
      "id": "bca6ea4d-6e54-40c3-93cc-5eff08010505",
      "name": "Step 4 Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2384,
        96
      ],
      "parameters": {
        "width": 396,
        "height": 704,
        "content": "## Notification\nSends thank-you email and replies to LINE with extracted info."
      }
    },
    {
      "id": "12bcda0e-bf0e-4620-b9fa-762fd6bce1e9",
      "name": "Config",
      "type": "n8n-nodes-base.set",
      "position": [
        496,
        256
      ]
    },
    {
      "id": "fef3f682-efa0-4690-977b-3e5ff2554af3",
      "name": "LINE Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        272,
        256
      ]
    },
    {
      "id": "d990bacc-ff90-4885-9397-b5e194277ea1",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        928,
        656
      ]
    },
    {
      "id": "d21403d1-5ea8-4708-9b30-edac6904f1f0",
      "name": "Check If Image",
      "type": "n8n-nodes-base.switch",
      "position": [
        736,
        256
      ]
    },
    {
      "id": "dc37f2b3-7e59-4517-a6f0-aabf30fa2992",
      "name": "Download Image from LINE",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1008,
        256
      ]
    },
    {
      "id": "9b07ef81-28e6-4217-8939-12bb259695bf",
      "name": "Extract Card Info",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        928,
        480
      ]
    },
    {
      "id": "9be197a9-8832-4550-8bce-dac50c87d59f",
      "name": "Parse Data",
      "type": "n8n-nodes-base.code",
      "position": [
        1552,
        304
      ]
    },
    {
      "id": "1ef2af98-caef-4fe3-bc9b-15c271a6152f",
      "name": "Save to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2224,
        208
      ]
    },
    {
      "id": "df3c9ba2-ea61-4025-bb93-4594f8deab42",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        1776,
        208
      ]
    },
    {
      "id": "85f0b504-a3c0-44dd-9aca-aaedf07205b6",
      "name": "Notify Analysis Failed",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1552,
        576
      ]
    },
    {
      "id": "8df1769e-bd52-4250-beec-d0d08d268b0d",
      "name": "Upload to Google Drive",
      "type": "n8n-nodes-base.googleDrive",
      "position": [
        2000,
        208
      ]
    },
    {
      "id": "8056dc52-6da6-40c8-badb-654798bb1b2f",
      "name": "Reply to LINE",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2656,
        208
      ]
    },
    {
      "id": "cd7514ad-f719-46b5-8927-3cd315d1fac2",
      "name": "Send Thank You Email",
      "type": "n8n-nodes-base.gmail",
      "position": [
        2432,
        208
      ]
    },
    {
      "id": "8d532d8b-d4f9-4a21-a5f9-2862432c8a79",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        1280,
        480
      ]
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Parse Data",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Notify Analysis Failed",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Upload to Google Drive",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Config": {
      "main": [
        [
          {
            "node": "Check If Image",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse Data": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "LINE Webhook": {
      "main": [
        [
          {
            "node": "Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check If Image": {
      "main": [
        [
          {
            "node": "Download Image from LINE",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Extract Card Info": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Thank You Email": {
      "main": [
        [
          {
            "node": "Reply to LINE",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Save to Google Sheets": {
      "main": [
        [
          {
            "node": "Send Thank You Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload to Google Drive": {
      "main": [
        [
          {
            "node": "Save to Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Download Image from LINE": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          },
          {
            "node": "Extract Card Info",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Extract Card Info",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}