{
 "name": "[노드 한 장] Webhook · 가입 폼 → Google Sheets",
 "nodes": [
  {
   "id": "b1",
   "name": "Webhook",
   "type": "n8n-nodes-base.webhook",
   "typeVersion": 2,
   "position": [
    0,
    0
   ],
   "parameters": {
    "httpMethod": "POST",
    "path": "node-hanjang-02",
    "responseMode": "responseNode",
    "options": {}
   }
  },
  {
   "id": "b2",
   "name": "Pick fields",
   "type": "n8n-nodes-base.set",
   "typeVersion": 3.4,
   "position": [
    260,
    0
   ],
   "parameters": {
    "assignments": {
     "assignments": [
      {
       "id": "g1",
       "name": "received_at",
       "type": "string",
       "value": "={{ $now.setZone('Asia/Seoul').toFormat('yyyy-MM-dd HH:mm:ss') }}"
      },
      {
       "id": "g2",
       "name": "name",
       "type": "string",
       "value": "={{ $json.body.name }}"
      },
      {
       "id": "g3",
       "name": "email",
       "type": "string",
       "value": "={{ $json.body.email }}"
      },
      {
       "id": "g4",
       "name": "plan",
       "type": "string",
       "value": "={{ $json.body.plan }}"
      },
      {
       "id": "g5",
       "name": "source",
       "type": "string",
       "value": "={{ $json.body.source }}"
      }
     ]
    },
    "options": {}
   }
  },
  {
   "id": "b3",
   "name": "Save to Google Sheets",
   "type": "n8n-nodes-base.googleSheets",
   "typeVersion": 4.2,
   "position": [
    520,
    0
   ],
   "parameters": {
    "operation": "append",
    "documentId": {
     "__rl": true,
     "mode": "id",
     "value": "YOUR_GOOGLE_SHEET_ID"
    },
    "sheetName": {
     "__rl": true,
     "mode": "id",
     "value": "gid=0"
    },
    "columns": {
     "mappingMode": "autoMapInputData",
     "value": {},
     "matchingColumns": [],
     "schema": []
    },
    "options": {}
   }
  },
  {
   "id": "b4",
   "name": "Respond to Webhook",
   "type": "n8n-nodes-base.respondToWebhook",
   "typeVersion": 1.1,
   "position": [
    780,
    0
   ],
   "parameters": {
    "respondWith": "json",
    "responseBody": "={{ JSON.stringify({ ok: true, message: 'Thanks ' + $('Pick fields').item.json.name + '! You are on the list.' }) }}",
    "options": {}
   }
  }
 ],
 "connections": {
  "Webhook": {
   "main": [
    [
     {
      "node": "Pick fields",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Pick fields": {
   "main": [
    [
     {
      "node": "Save to Google Sheets",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Save to Google Sheets": {
   "main": [
    [
     {
      "node": "Respond to Webhook",
      "type": "main",
      "index": 0
     }
    ]
   ]
  }
 },
 "settings": {
  "timezone": "Asia/Seoul",
  "executionOrder": "v1"
 },
 "meta": {
  "templateCredsSetupCompleted": false,
  "source": "datapopcorn.ai/workflow/nodes"
 }
}