{
  "name": "Customer personality (BaZi, DISC, Numerology) with Gemini & Google Sheets",
  "nodes": [
    {
      "id": "1830c823-4513-4ef3-90d2-c76c32574cbe",
      "name": "Google Sheets Trigger",
      "type": "n8n-nodes-base.googleSheetsTrigger",
      "position": [
        -32,
        352
      ]
    },
    {
      "id": "872f99cc-9a63-4f54-8e17-ef77a04d19ab",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "position": [
        1200,
        848
      ]
    },
    {
      "id": "b6f1df09-ff2a-4f8d-82b4-be386cf60e7e",
      "name": "If1",
      "type": "n8n-nodes-base.if",
      "position": [
        1200,
        656
      ]
    },
    {
      "id": "8b03f1c0-4618-40aa-ae45-04db1c82fe82",
      "name": "If2",
      "type": "n8n-nodes-base.if",
      "position": [
        1200,
        448
      ]
    },
    {
      "id": "c9372ec7-1152-479a-95b3-d2b3a2b2a9ff",
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "position": [
        2096,
        624
      ]
    },
    {
      "id": "91c350a4-ae83-4973-b50f-584bd52032fe",
      "name": "Aggregate",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        2096,
        832
      ]
    },
    {
      "id": "21be391a-4121-4640-9889-3505a67f3e6d",
      "name": "Update row in sheet1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1840,
        432
      ]
    },
    {
      "id": "545ae9fb-af0a-4902-9112-ba923c106156",
      "name": "Update row in sheet2",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1840,
        640
      ]
    },
    {
      "id": "27578658-3119-4726-ba00-943e2b11b31f",
      "name": "Update row in sheet3",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1840,
        832
      ]
    },
    {
      "id": "546a1f41-9bf6-4a93-99ad-4e5882d46d96",
      "name": "Update row in sheet4",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        880,
        176
      ]
    },
    {
      "id": "d9a135fe-3522-4697-8638-abaffff61eca",
      "name": "Filter",
      "type": "n8n-nodes-base.filter",
      "position": [
        176,
        352
      ]
    },
    {
      "id": "720d5e54-999d-4c37-b7ab-b117d00b1675",
      "name": "Loop Over Items",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        880,
        352
      ]
    },
    {
      "id": "f9e5cbfa-e82e-4d9e-b252-baffcb4433a9",
      "name": "Get row(s) in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1200,
        224
      ]
    },
    {
      "id": "ed97228e-8590-4a9f-8b92-07a07cfef0f7",
      "name": "Update row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        2208,
        224
      ]
    },
    {
      "id": "5e06bfdc-4cce-4e24-9172-82e776b57231",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        0
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "bedb9097-a577-4705-9b82-0f8c9fc72b29",
      "name": "Compute Bazi",
      "type": "n8n-nodes-base.code",
      "position": [
        400,
        352
      ]
    },
    {
      "id": "4a551a1b-faa8-4c36-a31c-28ea7dcf3857",
      "name": "Compute Numerology",
      "type": "n8n-nodes-base.code",
      "position": [
        640,
        352
      ]
    },
    {
      "id": "02af4f4c-b58d-4284-bb58-1ca473cd8276",
      "name": "Numerology analysis",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        1456,
        432
      ]
    },
    {
      "id": "49c88283-828a-46d2-8a9e-425e423739ec",
      "name": "Bazi Analysis",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        1456,
        640
      ]
    },
    {
      "id": "1aa1c178-e987-4af3-939f-239cf6e7cd4d",
      "name": "DISC Analysis",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        1456,
        832
      ]
    },
    {
      "id": "ff31f356-4935-43e5-80a7-f83a752c093c",
      "name": "Summary Customer Insight",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        1456,
        224
      ]
    },
    {
      "id": "92866b3d-681f-44f4-b395-9a9ffa193b10",
      "name": "Writing Script for Salers",
      "type": "@n8n/n8n-nodes-langchain.googleGemini",
      "position": [
        1808,
        224
      ]
    },
    {
      "id": "5220ff92-68a2-4007-8c94-1285f4c2a1cd",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        512
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    },
    {
      "id": "63e91a2d-bd2b-40e9-8534-7880c9a89adb",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        0,
        768
      ],
      "parameters": {
        "width": null,
        "height": null,
        "content": ""
      }
    }
  ],
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "DISC Analysis",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "If1": {
      "main": [
        [
          {
            "node": "Bazi Analysis",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "If2": {
      "main": [
        [
          {
            "node": "Numerology analysis",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Aggregate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter": {
      "main": [
        [
          {
            "node": "Compute Bazi",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compute Bazi": {
      "main": [
        [
          {
            "node": "Compute Numerology",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Bazi Analysis": {
      "main": [
        [
          {
            "node": "Update row in sheet2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "DISC Analysis": {
      "main": [
        [
          {
            "node": "Update row in sheet3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Loop Over Items": {
      "main": [
        [
          {
            "node": "Get row(s) in sheet",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "If2",
            "type": "main",
            "index": 0
          },
          {
            "node": "If1",
            "type": "main",
            "index": 0
          },
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Compute Numerology": {
      "main": [
        [
          {
            "node": "Loop Over Items",
            "type": "main",
            "index": 0
          },
          {
            "node": "Update row in sheet4",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Get row(s) in sheet": {
      "main": [
        [
          {
            "node": "Summary Customer Insight",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Numerology analysis": {
      "main": [
        [
          {
            "node": "Update row in sheet1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet1": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Update row in sheet2": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Update row in sheet3": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 2
          }
        ]
      ]
    },
    "Google Sheets Trigger": {
      "main": [
        [
          {
            "node": "Filter",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Summary Customer Insight": {
      "main": [
        [
          {
            "node": "Writing Script for Salers",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Writing Script for Salers": {
      "main": [
        [
          {
            "node": "Update row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}