{
  "name": "Search flights with Gemini via Telegram and send SerpAPI price alerts",
  "nodes": [
    {
      "id": "a3ebedb4-2ef8-4367-b391-b13eaea0a337",
      "name": "📌 Workflow Introduction",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1264,
        240
      ],
      "parameters": {
        "width": 368,
        "height": 1424,
        "content": "# 🎯 Smart Flight Price Alert Bot with AI Assistant\n\n## Overview\nA comprehensive flight price monitoring system that combines:\n- **Automated price monitoring** (Schedule-based alerts)\n- **AI-powered fl"
      }
    },
    {
      "id": "e996622a-af73-4f69-8ff9-74029e7cbd6f",
      "name": "📊 Workflow 1 Documentation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1648,
        240
      ],
      "parameters": {
        "width": 1888,
        "height": 720,
        "content": "## 🔄 Workflow 1: Automated Price Monitoring\n\n### Purpose\nAutomatically check flight prices on a schedule and send alerts when price drops below threshold.\n\n### Flow Steps\n1. **Schedule Trigger** - Run"
      }
    },
    {
      "id": "3153c9c7-f80b-4587-9a7e-24f819a81b0f",
      "name": "💬 Workflow 2 Documentation",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1648,
        976
      ],
      "parameters": {
        "width": 1888,
        "height": 688,
        "content": "## 🤖 Workflow 2: AI Flight Assistant\n\n### Purpose\nInteractive flight search via Telegram with AI-powered natural language understanding.\n\n### Flow Steps\n1. **Telegram Trigger** - Receives user message"
      }
    },
    {
      "id": "fb9fc221-615f-4cde-90fc-395a4ceea2bf",
      "name": "⏰ Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        2208,
        592
      ]
    },
    {
      "id": "ae68ae9c-c891-41cf-ad05-fbd924d95a35",
      "name": "⚙️ Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        2432,
        592
      ]
    },
    {
      "id": "8ff7f716-49d2-46c7-9c85-211903f6037d",
      "name": "✈️ Google Flights Search",
      "type": "n8n-nodes-serpapi.serpApi",
      "position": [
        2656,
        592
      ]
    },
    {
      "id": "02b7753a-4706-40d1-ad42-dfcdf73dcb92",
      "name": "💰 Extract Best Price",
      "type": "n8n-nodes-base.code",
      "position": [
        2880,
        592
      ]
    },
    {
      "id": "319aa495-ca10-4de7-949d-a539094812a4",
      "name": "🔍 Filter by Price",
      "type": "n8n-nodes-base.filter",
      "position": [
        3104,
        592
      ]
    },
    {
      "id": "769937c5-3f66-426e-9b7c-f467ee5de94b",
      "name": "📱 Send Alert",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3328,
        592
      ]
    },
    {
      "id": "e8a8d4a9-5462-424d-a9db-b4ad89e40383",
      "name": "💬 Telegram Trigger",
      "type": "n8n-nodes-base.telegramTrigger",
      "position": [
        2208,
        1200
      ]
    },
    {
      "id": "7d4cdc16-b6e8-4629-b04d-2512c709e9d5",
      "name": "📨 Send Response",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3088,
        1200
      ]
    },
    {
      "id": "71a88953-79dc-4f91-96f8-e95e59a5a7f3",
      "name": "📈 Performance & Optimization",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        3552,
        240
      ],
      "parameters": {
        "width": 352,
        "height": 1424,
        "content": "## 📊 Workflow Statistics & Performance\n\n### Automated Monitoring (Section 1)\n- **Frequency:** Every 7 days\n- **Execution time:** ~5-10 seconds\n- **API calls:** 1 per execution\n- **Cost:** ~$0.01 per s"
      }
    },
    {
      "id": "8d41b7b0-e966-4aac-acce-85c52b808f53",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2160,
        528
      ],
      "parameters": {
        "width": 640,
        "height": 240,
        "content": "## EDIT THIS NODES"
      }
    },
    {
      "id": "e90365b4-0dac-4c57-873b-d9598234d7dc",
      "name": "🤖 AI Agent1",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        2592,
        1200
      ]
    },
    {
      "id": "a35f698a-6ac2-4bc9-8210-9f564a758927",
      "name": "🧠 Google Gemini Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatGoogleGemini",
      "position": [
        2480,
        1424
      ]
    },
    {
      "id": "2a037dad-725c-40f0-bd8e-2ef8b9527750",
      "name": "🔄 Round Trip Search1",
      "type": "n8n-nodes-serpapi.serpApiTool",
      "position": [
        2736,
        1424
      ]
    },
    {
      "id": "0b6635a3-54de-4151-9135-47fe45a7bec6",
      "name": "➡️ One-Way Search1",
      "type": "n8n-nodes-serpapi.serpApiTool",
      "position": [
        2864,
        1424
      ]
    },
    {
      "id": "fb4e98e5-7016-4100-835b-a78fabb96600",
      "name": "🧠 Conversation Memory1",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "position": [
        2608,
        1424
      ]
    }
  ],
  "connections": {
    "🤖 AI Agent1": {
      "main": [
        [
          {
            "node": "📨 Send Response",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "⚙️ Edit Fields": {
      "main": [
        [
          {
            "node": "✈️ Google Flights Search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "⏰ Schedule Trigger": {
      "main": [
        [
          {
            "node": "⚙️ Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔍 Filter by Price": {
      "main": [
        [
          {
            "node": "📱 Send Alert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "💬 Telegram Trigger": {
      "main": [
        [
          {
            "node": "🤖 AI Agent1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "➡️ One-Way Search1": {
      "ai_tool": [
        [
          {
            "node": "🤖 AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "💰 Extract Best Price": {
      "main": [
        [
          {
            "node": "🔍 Filter by Price",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "🔄 Round Trip Search1": {
      "ai_tool": [
        [
          {
            "node": "🤖 AI Agent1",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    },
    "🧠 Conversation Memory1": {
      "ai_memory": [
        [
          {
            "node": "🤖 AI Agent1",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "🧠 Google Gemini Model1": {
      "ai_languageModel": [
        [
          {
            "node": "🤖 AI Agent1",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "✈️ Google Flights Search": {
      "main": [
        [
          {
            "node": "💰 Extract Best Price",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}