{
  "name": "Monitor Japan Flight Prices & Generate Booking Alerts with GPT-4o & Multi-Source Analysis",
  "nodes": [
    {
      "id": "6852ea42-9190-456a-91ba-31017cdbb869",
      "name": "Schedule Price Check",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        -2400,
        144
      ]
    },
    {
      "id": "7a09668f-3b66-42ad-a865-05e3de17e439",
      "name": "Flight Search Parameters",
      "type": "n8n-nodes-base.set",
      "position": [
        -2176,
        144
      ]
    },
    {
      "id": "be067da4-69f9-44f8-88ba-695ca8f4ff4f",
      "name": "Check Kayak API",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1952,
        -48
      ]
    },
    {
      "id": "68eb13dc-452d-492e-85b5-b0bcd07eb32b",
      "name": "Check Google Flights",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1952,
        144
      ]
    },
    {
      "id": "8b8bef45-8f89-4b66-bb63-e553e32c3507",
      "name": "Check Skyscanner",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -1952,
        336
      ]
    },
    {
      "id": "db529cb3-750e-4f3b-98e2-02853c983380",
      "name": "Aggregate Flight Data",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        -1728,
        144
      ]
    },
    {
      "id": "c7e0751a-d3c9-4bec-a9e2-a4f9bdee677a",
      "name": "AI Analysis Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1056,
        624
      ]
    },
    {
      "id": "9265c117-2360-493e-ad7b-5c3347470206",
      "name": "Flight Price Analyzer",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1056,
        416
      ]
    },
    {
      "id": "450b5694-b64f-478c-8e15-543af4ab5d0a",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        -896,
        592
      ]
    },
    {
      "id": "18dd4132-baf4-4072-bce8-fc86ae39bce1",
      "name": "Store Price History",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -672,
        416
      ]
    },
    {
      "id": "f1ce8a94-89e9-470d-a505-6e8c0b5ea1fc",
      "name": "Check If Booking Ready",
      "type": "n8n-nodes-base.if",
      "position": [
        -608,
        608
      ]
    },
    {
      "id": "bf2343e6-e211-47b3-8af5-509b4628f9c0",
      "name": "Prepare Booking Data",
      "type": "n8n-nodes-base.set",
      "position": [
        -48,
        -64
      ]
    },
    {
      "id": "5ccc162a-b121-430c-abba-0431838aba68",
      "name": "Send Booking Alert to Slack",
      "type": "n8n-nodes-base.slack",
      "position": [
        208,
        -48
      ]
    },
    {
      "id": "3f29cab1-a8d9-4de3-a9d4-da4863221bca",
      "name": "Create WordPress Post",
      "type": "n8n-nodes-base.wordpress",
      "position": [
        208,
        144
      ]
    },
    {
      "id": "c46dabfd-a042-4db5-88d7-7af5947fc0ae",
      "name": "Send Price Update Summary",
      "type": "n8n-nodes-base.slack",
      "position": [
        -512,
        416
      ]
    },
    {
      "id": "91dde70a-d051-498b-a4cd-3558a7845260",
      "name": "Price Change Calculator",
      "type": "n8n-nodes-base.code",
      "position": [
        -1264,
        96
      ]
    },
    {
      "id": "66c6d0b4-9c8f-4c01-9320-d6a598ccc15d",
      "name": "Fetch Historical Prices",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        -1488,
        96
      ]
    },
    {
      "id": "12b232ee-03fb-4852-a6dc-b685d838ca02",
      "name": "Multi-Criteria Decision",
      "type": "n8n-nodes-base.switch",
      "position": [
        -688,
        -32
      ]
    },
    {
      "id": "2692ccdf-107c-41e8-9c63-e4a565e60107",
      "name": "Enhanced Analysis Prompt",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -1040,
        208
      ]
    },
    {
      "id": "b433af86-db71-4dce-8c9d-9f7a42fa0bea",
      "name": "Advanced Flight Analyzer",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -1040,
        -16
      ]
    },
    {
      "id": "299a2b0e-5c0c-4b3b-aee0-da2efff8993d",
      "name": "Risk Assessment Check",
      "type": "n8n-nodes-base.if",
      "position": [
        -384,
        16
      ]
    },
    {
      "id": "2a283c81-5f79-4a83-a026-a40fb02e21d7",
      "name": "Send Detailed Analytics Report",
      "type": "n8n-nodes-base.slack",
      "position": [
        -64,
        416
      ]
    },
    {
      "id": "30a5793a-8b86-4cb3-80f9-59e9db4efae8",
      "name": "Create Detailed WordPress Report",
      "type": "n8n-nodes-base.wordpress",
      "position": [
        160,
        416
      ]
    },
    {
      "id": "559155cb-bfa5-48d2-a56f-699f284804a1",
      "name": "High Urgency Booking Alert",
      "type": "n8n-nodes-base.slack",
      "position": [
        -48,
        176
      ]
    },
    {
      "id": "6675a09d-074d-4c4c-9a02-f21c67cc4774",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2576,
        -480
      ],
      "parameters": {
        "width": 656,
        "height": 240,
        "content": "## How It Works\nScheduled triggers run automated price checks across multiple travel data sources. The collected data is aggregated, validated, and processed through an AI analysis layer that compares"
      }
    },
    {
      "id": "e07f4664-1d3e-4b85-b4e3-a9872269a24d",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1296,
        -480
      ],
      "parameters": {
        "width": 496,
        "height": 144,
        "content": "## Prerequisites\nGoogle Flights API, Skyscanner API, flight booking service credentials, OpenAI API key, Google Sheets access, WordPress admin account, email service configured.\n\n"
      }
    },
    {
      "id": "4ef35334-48c7-4f5e-8ae5-185342c1def5",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1904,
        -480
      ],
      "parameters": {
        "width": 560,
        "height": 224,
        "content": "## Setup Steps\n1. Connect Google Flights and Skyscanner APIs using authenticated tokens.\n2. Configure the OpenAI API for enhanced analysis and multi-factor evaluation.\n3. Link Google Sheets for storin"
      }
    },
    {
      "id": "67897838-9cff-4b02-9a3c-6f1896206b99",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -736,
        -480
      ],
      "parameters": {
        "width": 688,
        "height": 208,
        "content": "\n## Use Cases\nTravel agencies automating client alerts for price drops. Corporate travel managers monitoring bulk bookings.  \n\n## Customization\nModify price thresholds in Multi-Criteria Decision node."
      }
    },
    {
      "id": "24fdda51-bf90-4404-a17e-5dc4d6a4f2f3",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -32,
        -480
      ],
      "parameters": {
        "width": 288,
        "height": null,
        "content": "## Benefits\nEliminates manual price monitoring. Reduces booking delays through automation. "
      }
    },
    {
      "id": "f9527f77-7c61-49c9-9fbf-1ba7065044c3",
      "name": "Sticky Note5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -2592,
        -176
      ],
      "parameters": {
        "width": 992,
        "height": 672,
        "content": "## 1. Data Collection Phase\nInitiates daily automated checks. Schedule node triggers workflows consistently. Flight Search Parameters configure search criteria (routes, dates, airlines). Fetch Histori"
      }
    },
    {
      "id": "5001ce96-bbeb-4a83-b1ec-f1a207a425dd",
      "name": "Sticky Note6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1568,
        -192
      ],
      "parameters": {
        "width": 800,
        "height": 928,
        "content": "## 2. Intelligence & Analysis Phase\nPrice Change Calculator identifies trends—whether prices rising or falling matters for timing. Advanced Flight Analysis enriches data with route patterns. Enhanced "
      }
    },
    {
      "id": "b403658d-e97e-4b67-a869-73fef6905585",
      "name": "Sticky Note7",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -736,
        -256
      ],
      "parameters": {
        "width": 512,
        "height": 464,
        "content": "## 3. Decision & Risk Management\nMulti-Criteria Decision filters by user preferences (budget, timing, airlines). Risk Assessment checks booking feasibility \n\nWhy: Prevents booking unsuitable options; "
      }
    },
    {
      "id": "325f615f-501c-40c3-a6ba-843112ca78f7",
      "name": "Sticky Note8",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -736,
        224
      ],
      "parameters": {
        "width": 512,
        "height": 528,
        "content": "## 4. Storage & Notification\nGoogle Sheets archives price history, enables trend analysis and historical comparison.  \nWhy: Persistent records build intelligence; alerts enable swift action on time-se"
      }
    },
    {
      "id": "8f88cdb7-b6bb-4930-b387-da2ec3aed1f8",
      "name": "Sticky Note9",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -208,
        -256
      ],
      "parameters": {
        "width": 656,
        "height": 1008,
        "content": "\n## 5. Reporting & Integration\nWordPress publishes analytics reports, builds credibility and transparency. Booking data flows to external reservation systems for instant ticketing. \nWhy: Reporting dem"
      }
    }
  ],
  "connections": {
    "Check Kayak API": {
      "main": [
        [
          {
            "node": "Aggregate Flight Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Skyscanner": {
      "main": [
        [
          {
            "node": "Aggregate Flight Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Analysis Model": {
      "ai_languageModel": [
        [
          {
            "node": "Flight Price Analyzer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Store Price History": {
      "main": [
        [
          {
            "node": "Send Price Update Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check Google Flights": {
      "main": [
        [
          {
            "node": "Aggregate Flight Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Booking Data": {
      "main": [
        [
          {
            "node": "Send Booking Alert to Slack",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create WordPress Post",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Price Check": {
      "main": [
        [
          {
            "node": "Flight Search Parameters",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Aggregate Flight Data": {
      "main": [
        [
          {
            "node": "Flight Price Analyzer",
            "type": "main",
            "index": 0
          },
          {
            "node": "Fetch Historical Prices",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Flight Price Analyzer": {
      "main": [
        [
          {
            "node": "Store Price History",
            "type": "main",
            "index": 0
          },
          {
            "node": "Check If Booking Ready",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Risk Assessment Check": {
      "main": [
        [
          {
            "node": "Prepare Booking Data",
            "type": "main",
            "index": 0
          },
          {
            "node": "High Urgency Booking Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check If Booking Ready": {
      "main": [
        [
          {
            "node": "Prepare Booking Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Fetch Historical Prices": {
      "main": [
        [
          {
            "node": "Price Change Calculator",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Multi-Criteria Decision": {
      "main": [
        [
          {
            "node": "Risk Assessment Check",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Detailed Analytics Report",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Send Price Update Summary",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Price Change Calculator": {
      "main": [
        [
          {
            "node": "Advanced Flight Analyzer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Advanced Flight Analyzer": {
      "main": [
        [
          {
            "node": "Multi-Criteria Decision",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Enhanced Analysis Prompt": {
      "ai_languageModel": [
        [
          {
            "node": "Advanced Flight Analyzer",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Flight Search Parameters": {
      "main": [
        [
          {
            "node": "Check Kayak API",
            "type": "main",
            "index": 0
          },
          {
            "node": "Check Google Flights",
            "type": "main",
            "index": 0
          },
          {
            "node": "Check Skyscanner",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "Flight Price Analyzer",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    },
    "Send Detailed Analytics Report": {
      "main": [
        [
          {
            "node": "Create Detailed WordPress Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}