{
  "name": "Handle LINE real estate inquiries with Google Gemini and smart lead detection",
  "nodes": [
    {
      "id": "915497a7-0013-4783-8dff-13d955df32a3",
      "name": "Workflow Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -128,
        224
      ],
      "parameters": {
        "width": 540,
        "height": 688,
        "content": "## 🏠 LINE AI Real Estate Assistant\n\nThis workflow creates an intelligent real estate assistant that automatically responds to customer inquiries via LINE Bot, powered by Google Gemini AI.\n\n### How it "
      }
    },
    {
      "id": "89108961-a2de-4d8d-9aad-785deabf25e2",
      "name": "Step 1 - Reception & Parsing",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        432,
        224
      ],
      "parameters": {
        "width": 588,
        "height": 380,
        "content": "### Step 1 - Message Reception & Parsing\nLINE Webhook receives customer messages. Parser extracts budget, rooms, area, and classifies inquiry type (rental/purchase/viewing).\n\n**Setup:** LINE Channel A"
      }
    },
    {
      "id": "2e261384-3dcf-45cc-aa8c-33a2387b2def",
      "name": "Step 2 - AI Analysis",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1040,
        224
      ],
      "parameters": {
        "width": 420,
        "height": 536,
        "content": "### Step 2 - AI Property Advisor\nGoogle Gemini AI generates professional Japanese real estate responses. Personalized advice based on extracted budget, room, and area preferences.\n\n**Model:** Gemini 1"
      }
    },
    {
      "id": "84b68aa7-453a-4222-9a98-1c0c909f15e0",
      "name": "Step 3 - Logging & Routing",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1488,
        224
      ],
      "parameters": {
        "width": 588,
        "height": 616,
        "content": "### Step 3 - Logging & Lead Detection\nAll inquiries saved to Google Sheets. High-value leads (purchase intent or budget >¥30M) trigger email alerts to sales team.\n\n**Sheets:** Full interaction log\n**F"
      }
    },
    {
      "id": "361dcba5-9cdc-4da7-98c7-626129de4b02",
      "name": "Step 4 - Reply & Alerts",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2096,
        224
      ],
      "parameters": {
        "width": 588,
        "height": 616,
        "content": "### Step 4 - Reply & Notifications\nFormatted AI response sent back to customer via LINE API. Sales team receives email alerts for high-value inquiries.\n\n**LINE Reply:** Auto-response with AI advice\n**"
      }
    },
    {
      "id": "5d676ec2-b434-4acb-99fc-1595f5d2c1b0",
      "name": "LINE Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        464,
        432
      ]
    },
    {
      "id": "d6d72938-f7ce-4949-9255-a5391f3fcb91",
      "name": "Parse LINE Message",
      "type": "n8n-nodes-base.code",
      "position": [
        752,
        432
      ]
    },
    {
      "id": "598a5ce6-177d-49d8-9d75-1eeeda4018b0",
      "name": "AI Property Advisor",
      "type": "@n8n/n8n-nodes-langchain.chainLlm",
      "position": [
        1104,
        432
      ]
    },
    {
      "id": "90a507d3-a09a-48fc-9579-bd80793446c4",
      "name": "Google Gemini Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        1104,
        608
      ]
    },
    {
      "id": "7ee0df10-51f2-488d-89a3-3822d0c84c68",
      "name": "Process AI Response",
      "type": "n8n-nodes-base.code",
      "position": [
        1520,
        432
      ]
    },
    {
      "id": "5a65e3b9-bbe5-4118-bd7c-adbb8391c5d5",
      "name": "Log to Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1808,
        432
      ]
    },
    {
      "id": "66352073-d0b8-4d0f-9d83-5b55646f66f8",
      "name": "High-Value Lead Check",
      "type": "n8n-nodes-base.if",
      "position": [
        1808,
        688
      ]
    },
    {
      "id": "dcc95255-e221-406c-9f2f-415355a979a8",
      "name": "Send LINE Reply",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        2128,
        432
      ]
    },
    {
      "id": "87d5a2cb-c50d-4bcc-9485-a24d7b8145c6",
      "name": "Send Sales Alert",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        2128,
        688
      ]
    }
  ],
  "connections": {
    "LINE Webhook": {
      "main": [
        [
          {
            "node": "Parse LINE Message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Parse LINE Message": {
      "main": [
        [
          {
            "node": "AI Property Advisor",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Property Advisor": {
      "main": [
        [
          {
            "node": "Process AI Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Process AI Response": {
      "main": [
        [
          {
            "node": "Log to Google Sheets",
            "type": "main",
            "index": 0
          },
          {
            "node": "High-Value Lead Check",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Log to Google Sheets": {
      "main": [
        [
          {
            "node": "Send LINE Reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "High-Value Lead Check": {
      "main": [
        [
          {
            "node": "Send Sales Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Gemini Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Property Advisor",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  }
}