{
  "name": "【比較C】為替レートを取得して通知文を作る",
  "nodes": [
    {
      "parameters": {},
      "name": "手動で開始",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ],
      "id": "c1"
    },
    {
      "parameters": {
        "url": "https://api.frankfurter.app/latest?from=USD&to=JPY",
        "options": {}
      },
      "name": "為替レートを取得",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        220,
        0
      ],
      "id": "c2"
    },
    {
      "parameters": {
        "jsCode": "const r = $input.first().json;\nreturn [{ json: { 通知文: `${r.date} 時点：1ドル＝${r.rates.JPY}円` } }];"
      },
      "name": "通知文を作る",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        440,
        0
      ],
      "id": "c3"
    }
  ],
  "connections": {
    "手動で開始": {
      "main": [
        [
          {
            "node": "為替レートを取得",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "為替レートを取得": {
      "main": [
        [
          {
            "node": "通知文を作る",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}