{
 "name": "[노드 한 장] Schedule Trigger · Daily USD rates → Google Sheets",
 "nodes": [
  {
   "id": "b1",
   "name": "Every day 9AM",
   "type": "n8n-nodes-base.scheduleTrigger",
   "typeVersion": 1.2,
   "position": [
    0,
    0
   ],
   "parameters": {
    "rule": {
     "interval": [
      {
       "field": "days",
       "triggerAtHour": 9
      }
     ]
    }
   }
  },
  {
   "id": "b2",
   "name": "Get USD rates",
   "type": "n8n-nodes-base.httpRequest",
   "typeVersion": 4.2,
   "position": [
    240,
    0
   ],
   "parameters": {
    "url": "https://open.er-api.com/v6/latest/USD",
    "options": {}
   }
  },
  {
   "id": "b3",
   "name": "Pick KRW EUR JPY",
   "type": "n8n-nodes-base.set",
   "typeVersion": 3.4,
   "position": [
    480,
    0
   ],
   "parameters": {
    "assignments": {
     "assignments": [
      {
       "id": "g1",
       "name": "checked_at_kst",
       "type": "string",
       "value": "={{ $now.setZone('Asia/Seoul').toFormat('yyyy-MM-dd HH:mm:ss') }}"
      },
      {
       "id": "g2",
       "name": "mode",
       "type": "string",
       "value": "={{ $execution.mode }}"
      },
      {
       "id": "g3",
       "name": "usd_krw",
       "type": "number",
       "value": "={{ $json.rates.KRW }}"
      },
      {
       "id": "g4",
       "name": "usd_eur",
       "type": "number",
       "value": "={{ $json.rates.EUR }}"
      },
      {
       "id": "g5",
       "name": "usd_jpy",
       "type": "number",
       "value": "={{ $json.rates.JPY }}"
      },
      {
       "id": "g6",
       "name": "rate_updated_utc",
       "type": "string",
       "value": "={{ $json.time_last_update_utc }}"
      }
     ]
    },
    "options": {}
   }
  },
  {
   "id": "b4",
   "name": "Save to Google Sheets",
   "type": "n8n-nodes-base.googleSheets",
   "typeVersion": 4.2,
   "position": [
    720,
    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": {}
   }
  }
 ],
 "connections": {
  "Every day 9AM": {
   "main": [
    [
     {
      "node": "Get USD rates",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Get USD rates": {
   "main": [
    [
     {
      "node": "Pick KRW EUR JPY",
      "type": "main",
      "index": 0
     }
    ]
   ]
  },
  "Pick KRW EUR JPY": {
   "main": [
    [
     {
      "node": "Save to Google Sheets",
      "type": "main",
      "index": 0
     }
    ]
   ]
  }
 },
 "settings": {
  "timezone": "Asia/Seoul",
  "executionOrder": "v1"
 },
 "meta": {
  "templateCredsSetupCompleted": false,
  "source": "datapopcorn.ai/workflow/nodes"
 }
}