リアルタイム航空券価格チェッカー – 瞬時に価格比較して節約

上級

これはMarket Research分野の自動化ワークフローで、19個のノードを含みます。主にSet, Merge, Function, EmailSend, HttpRequestなどのノードを使用。 Skyscanner、インド航空などのプラットフォームの航班価格を比較し、メールでアラートを送信する

前提条件
  • ターゲットAPIの認証情報が必要な場合あり

カテゴリー

ワークフロープレビュー
ノード接続関係を可視化、ズームとパンをサポート
ワークフローをエクスポート
以下のJSON設定をn8nにインポートして、このワークフローを使用できます
{
  "id": "UqtZtvt1uuLwA0JF",
  "meta": {
    "instanceId": "dd69efaf8212c74ad206700d104739d3329588a6f3f8381a46a481f34c9cc281",
    "templateCredsSetupCompleted": true
  },
  "name": "Real-Time Flight Fare Checker – Compare & Save Instantly",
  "tags": [],
  "nodes": [
    {
      "id": "9e9558e0-9b65-4748-8092-70986a9f11f0",
      "name": "Skyscanner API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -40,
        0
      ],
      "parameters": {
        "url": "https://api.skyscanner.net/flights",
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "4649ae50-1619-49c9-a2f8-2cb6f91ca966",
      "name": "Air India API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -40,
        400
      ],
      "parameters": {
        "url": "https://api.airindia.net/flights",
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "a336a80f-c147-4deb-ac14-c508f5db7a36",
      "name": "IndiGo API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -40,
        600
      ],
      "parameters": {
        "url": "https://api.idigo.com/v1/flights",
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "5f4c9323-af1a-45b3-a985-73ed231b0809",
      "name": "Akasa Air API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -40,
        200
      ],
      "parameters": {
        "url": "https://api.akasa.com/v1/flights",
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "66ec44a3-838a-4e81-b03c-c1b5e5f7b796",
      "name": "スケジュール設定",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -480,
        300
      ],
      "parameters": {
        "rule": {
          "interval": [
            {}
          ]
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "e3411c6a-c09b-4e86-bb54-13306212f254",
      "name": "入力データ設定",
      "type": "n8n-nodes-base.set",
      "position": [
        -260,
        300
      ],
      "parameters": {
        "values": {
          "string": [
            {
              "name": "origin",
              "value": "={{$node['Set Schedule'].json.body.origin}}"
            },
            {
              "name": "destination",
              "value": "={{$node['Set Schedule'].json.body.destination}}"
            },
            {
              "name": "departureDate",
              "value": "={{$node['Set Schedule'].json.body.departureDate}}"
            },
            {
              "name": "returnDate",
              "value": "={{$node['Set Schedule'].json.body.returnDate}}"
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 1
    },
    {
      "id": "6ae53558-26a6-4a4d-b9cf-730423f34c65",
      "name": "API データ統合",
      "type": "n8n-nodes-base.merge",
      "inputs": [
        "Skyscanner API",
        "Travelpayouts API"
      ],
      "position": [
        180,
        100
      ],
      "parameters": {
        "mode": "mergeByIndex"
      },
      "typeVersion": 1
    },
    {
      "id": "1ef09f04-4142-4997-b400-f53d04700eeb",
      "name": "両方のAPI データ統合",
      "type": "n8n-nodes-base.merge",
      "inputs": [
        "Skyscanner API",
        "Travelpayouts API"
      ],
      "position": [
        180,
        500
      ],
      "parameters": {
        "mode": "mergeByIndex"
      },
      "typeVersion": 1
    },
    {
      "id": "8e81a16c-2db0-4b71-982c-2ec4874507cf",
      "name": "全API 結果統合",
      "type": "n8n-nodes-base.merge",
      "inputs": [
        "Skyscanner API",
        "Travelpayouts API"
      ],
      "position": [
        400,
        300
      ],
      "parameters": {
        "mode": "mergeByIndex"
      },
      "typeVersion": 1
    },
    {
      "id": "79344599-53b8-4886-839b-82b149e980ad",
      "name": "データ比較と価格ソート",
      "type": "n8n-nodes-base.function",
      "position": [
        620,
        300
      ],
      "parameters": {
        "functionCode": "const results = [];\n\n// Process Skyscanner results\nif ($node['Merge API Results'].json[0].data) {\n  $node['Merge API Results'].json[0].data.forEach(flight => {\n    results.push({\n      provider: 'Skyscanner',\n      price: flight.price,\n      currency: flight.currency,\n      booking_url: flight.booking_url\n    });\n  });\n}\n\n// Process Travelpayouts results\nif ($node['Merge API Results'].json[1].data) {\n  $node['Merge API Results'].json[1].data.forEach(flight => {\n    results.push({\n      provider: 'Travelpayouts',\n      price: flight.price,\n      currency: flight.currency,\n      booking_url: flight.booking_url\n    });\n  });\n}\n\n// Sort by price\nresults.sort((a, b) => a.price - b.price);\n\nreturn results;"
      },
      "typeVersion": 1
    },
    {
      "id": "eaf33691-31a4-46ab-9525-d4d4eb0be91b",
      "name": "メールで応答送信",
      "type": "n8n-nodes-base.emailSend",
      "position": [
        840,
        300
      ],
      "webhookId": "f86081b8-8ff3-4315-8568-320e92e2337f",
      "parameters": {
        "text": "{json.results}",
        "options": {},
        "subject": "Real-Time Flight Fare Update",
        "toEmail": "abc@gmail.com",
        "fromEmail": "xyz@gmail.com",
        "emailFormat": "text"
      },
      "credentials": {
        "smtp": {
          "id": "G1kyF8cSWTZ4vouN",
          "name": "SMTP -test"
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "222fa851-d70b-4c32-9b1e-28bb3cc89181",
      "name": "付箋",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -520,
        160
      ],
      "parameters": {
        "width": 160,
        "height": 360,
        "content": "Triggers the workflow at a scheduled time to check flight fares automatically."
      },
      "typeVersion": 1
    },
    {
      "id": "bda7bcb8-35f0-4996-a1fc-7a09db87e173",
      "name": "付箋1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        -100
      ],
      "parameters": {
        "color": 6,
        "width": 160,
        "height": 360,
        "content": "Combines the flight data from Skyscanner and Akasa Air into a single dataset."
      },
      "typeVersion": 1
    },
    {
      "id": "b1b26d28-6609-4680-b7fd-3cc552864c2b",
      "name": "付箋2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        380,
        100
      ],
      "parameters": {
        "color": 3,
        "width": 160,
        "height": 360,
        "content": "Consolidates all API data (Skyscanner, Akasa Air, Air India, IndiGo) into one unified result."
      },
      "typeVersion": 1
    },
    {
      "id": "53e4599a-3bd4-4597-9661-b6364976a972",
      "name": "付箋3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        580,
        100
      ],
      "parameters": {
        "color": 5,
        "width": 160,
        "height": 360,
        "content": "Compares all flight fares and sorts them by price to find the best deals."
      },
      "typeVersion": 1
    },
    {
      "id": "e4b18281-8c98-4eea-b6af-5948c21cce04",
      "name": "付箋4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        100
      ],
      "parameters": {
        "color": 4,
        "width": 160,
        "height": 360,
        "content": "Sends the sorted flight fare comparison results to the user via email."
      },
      "typeVersion": 1
    },
    {
      "id": "f05b66c5-8f64-4328-8279-b5fd4b942f5c",
      "name": "付箋5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -300,
        160
      ],
      "parameters": {
        "color": 4,
        "width": 160,
        "height": 360,
        "content": "Sets the input parameters like origin, destination, and dates for flight searches"
      },
      "typeVersion": 1
    },
    {
      "id": "af7323e1-82fc-4a53-a532-0023a3942fde",
      "name": "付箋6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -60,
        -200
      ],
      "parameters": {
        "color": 3,
        "width": 160,
        "height": 960,
        "content": "Fetches live flight fare data from different airlines using the provided API endpoints."
      },
      "typeVersion": 1
    },
    {
      "id": "6354e9b7-f3de-47c8-b413-a6a38f76afae",
      "name": "付箋7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        160,
        300
      ],
      "parameters": {
        "width": 160,
        "height": 360,
        "content": "Merges the flight data from Air India and IndiGo with the previous dataset."
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "2d9aac0c-9714-44de-be94-c806fddd584d",
  "connections": {
    "a336a80f-c147-4deb-ac14-c508f5db7a36": {
      "main": [
        [
          {
            "node": "1ef09f04-4142-4997-b400-f53d04700eeb",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "66ec44a3-838a-4e81-b03c-c1b5e5f7b796": {
      "main": [
        [
          {
            "node": "e3411c6a-c09b-4e86-bb54-13306212f254",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "4649ae50-1619-49c9-a2f8-2cb6f91ca966": {
      "main": [
        [
          {
            "node": "1ef09f04-4142-4997-b400-f53d04700eeb",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "5f4c9323-af1a-45b3-a985-73ed231b0809": {
      "main": [
        [
          {
            "node": "6ae53558-26a6-4a4d-b9cf-730423f34c65",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "6ae53558-26a6-4a4d-b9cf-730423f34c65": {
      "main": [
        [
          {
            "node": "8e81a16c-2db0-4b71-982c-2ec4874507cf",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "e3411c6a-c09b-4e86-bb54-13306212f254": {
      "main": [
        [
          {
            "node": "9e9558e0-9b65-4748-8092-70986a9f11f0",
            "type": "main",
            "index": 0
          },
          {
            "node": "5f4c9323-af1a-45b3-a985-73ed231b0809",
            "type": "main",
            "index": 0
          },
          {
            "node": "4649ae50-1619-49c9-a2f8-2cb6f91ca966",
            "type": "main",
            "index": 0
          },
          {
            "node": "a336a80f-c147-4deb-ac14-c508f5db7a36",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "9e9558e0-9b65-4748-8092-70986a9f11f0": {
      "main": [
        [
          {
            "node": "6ae53558-26a6-4a4d-b9cf-730423f34c65",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1ef09f04-4142-4997-b400-f53d04700eeb": {
      "main": [
        [
          {
            "node": "8e81a16c-2db0-4b71-982c-2ec4874507cf",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "8e81a16c-2db0-4b71-982c-2ec4874507cf": {
      "main": [
        [
          {
            "node": "79344599-53b8-4886-839b-82b149e980ad",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "79344599-53b8-4886-839b-82b149e980ad": {
      "main": [
        [
          {
            "node": "eaf33691-31a4-46ab-9525-d4d4eb0be91b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
よくある質問

このワークフローの使い方は?

上記のJSON設定コードをコピーし、n8nインスタンスで新しいワークフローを作成して「JSONからインポート」を選択、設定を貼り付けて認証情報を必要に応じて変更してください。

このワークフローはどんな場面に適していますか?

上級 - 市場調査

有料ですか?

このワークフローは完全無料です。ただし、ワークフローで使用するサードパーティサービス(OpenAI APIなど)は別途料金が発生する場合があります。

ワークフロー情報
難易度
上級
ノード数19
カテゴリー1
ノードタイプ7
難易度説明

上級者向け、16ノード以上の複雑なワークフロー

作成者
Oneclick AI Squad

Oneclick AI Squad

@oneclick-ai

The AI Squad Initiative is a pioneering effort to build, automate and scale AI-powered workflows using n8n.io. Our mission is to help individuals and businesses integrate AI agents seamlessly into their daily operations from automating tasks and enhancing productivity to creating innovative, intelligent solutions. We design modular, reusable AI workflow templates that empower creators, developers and teams to supercharge their automation with minimal effort and maximum impact.

外部リンク
n8n.ioで表示

このワークフローを共有

カテゴリー

カテゴリー: 34