{
  "name": "[실습 3-D] 들어온 것을 구글 시트에 쌓기",
  "nodes": [
    {
      "parameters": {
        "formTitle": "문의 접수",
        "formDescription": "내용을 남겨주시면 확인 후 연락드립니다",
        "formFields": {
          "values": [
            {
              "fieldLabel": "이름",
              "requiredField": true
            },
            {
              "fieldLabel": "연락처",
              "requiredField": true
            },
            {
              "fieldLabel": "금액",
              "fieldType": "number"
            },
            {
              "fieldLabel": "내용",
              "fieldType": "textarea"
            }
          ]
        },
        "options": {}
      },
      "id": "fdbec411-e08d-47d4-97d4-eea0efbd9552",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2.6,
      "position": [
        -416,
        0
      ]
    },
    {
      "parameters": {
        "conditions": {
          "options": {
            "caseSensitive": true,
            "leftValue": "",
            "typeValidation": "strict",
            "version": 3
          },
          "conditions": [
            {
              "id": "amount-gt-100000",
              "leftValue": "={{ $json['금액'] }}",
              "rightValue": 100000,
              "operator": {
                "type": "number",
                "operation": "gt"
              }
            }
          ],
          "combinator": "and"
        },
        "options": {}
      },
      "id": "7eaa20bc-0400-47c6-a434-a99c49443f6c",
      "name": "If",
      "type": "n8n-nodes-base.if",
      "typeVersion": 2.3,
      "position": [
        -208,
        0
      ]
    },
    {
      "parameters": {
        "operation": "append",
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": ""
        },
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0"
        },
        "columns": {
          "mappingMode": "defineBelow",
          "value": {
            "접수시각": "={{ $now.format('yyyy-MM-dd HH:mm') }}",
            "이름": "={{ $json['이름'] }}",
            "연락처": "={{ $json['연락처'] }}",
            "금액": "={{ $json['금액'] }}",
            "내용": "={{ $json['내용'] }}"
          },
          "schema": [
            {
              "id": "접수시각",
              "displayName": "접수시각",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "이름",
              "displayName": "이름",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "연락처",
              "displayName": "연락처",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "금액",
              "displayName": "금액",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            },
            {
              "id": "내용",
              "displayName": "내용",
              "required": false,
              "defaultMatch": false,
              "display": true,
              "type": "string",
              "canBeUsedToMatch": true
            }
          ]
        },
        "options": {}
      },
      "id": "3b6ab007-2f5a-478f-80dd-62a096f57771",
      "name": "Append row in sheet",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 4.7,
      "position": [
        32,
        -96
      ]
    },
    {
      "parameters": {
        "authentication": "webhook",
        "content": "=📩 {{ $('On form submission').item.json['이름'] }} / {{ $('On form submission').item.json['연락처'] }} — {{ $('On form submission').item.json['금액'] }}원\n{{ $('On form submission').item.json['내용'] }}",
        "options": {}
      },
      "id": "71a62c9d-11cb-47b8-8abd-650803fa293f",
      "name": "Discord",
      "type": "n8n-nodes-base.discord",
      "typeVersion": 2,
      "position": [
        240,
        -96
      ]
    }
  ],
  "connections": {
    "On form submission": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "If": {
      "main": [
        [
          {
            "node": "Append row in sheet",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Append row in sheet": {
      "main": [
        [
          {
            "node": "Discord",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "binaryMode": "separate",
    "availableInMCP": true,
    "timezone": "Asia/Seoul"
  },
  "nodeGroups": []
}
